Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2016, 05:58 AM   #1
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Custom series field bug (?)

In calibre I have custom column called series_id, it contains short form (abbreviation) of series name. Calibre also created field called series_id_index. Everything works nice when I'm sending files to my devices, but... When I'm trying to set the file naming scheme for CC it works bit different than in calibre.
Filed {series} contains only series name, by {#series_id} includes also number in it, so I have "HP [1]" where I should have only "HP". Moreover {#series_id_index} is unknown to CC.

Is it bug or it should work like this?

My scheme: {author_sort}/{#series_id}{series_index:02%d| - | - }{title}
Nitro is offline   Reply With Quote
Old 01-12-2016, 09:33 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,946
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Series type fields ALWAYS have an index value. ( 0 is a valid value. I use that for pieces that have no set order)

You can go through some template gyrations to suppress that when the series_index is 0 , but 0 will ALWAYS show in the Calibre Library View
theducks is offline   Reply With Quote
Advert
Old 01-12-2016, 09:40 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,365
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nitro View Post
In calibre I have custom column called series_id, it contains short form (abbreviation) of series name. Calibre also created field called series_id_index. Everything works nice when I'm sending files to my devices, but... When I'm trying to set the file naming scheme for CC it works bit different than in calibre.
Filed {series} contains only series name, by {#series_id} includes also number in it, so I have "HP [1]" where I should have only "HP". Moreover {#series_id_index} is unknown to CC.

Is it bug or it should work like this?
Sort of a bug, sort of a feature. The template processor currently handles the following columns:
  • {title}, {title_sort} (title is the real title. No articles are moved)
  • {authors}, {first_author}, {author_sort}, {first_author_sort}
  • {series}, {series_index}
  • {id} (the calibre database identifier, which is a number)
  • text-type custom columns {#col_lookup_name}
Currently custom series columns are classed as text-type and are converted to text.

However, it is reasonable to treat custom series as special cases. I will change CC to return the bare series for #series and to format #series_index as it does the standard series column.
Quote:
My scheme: {author_sort}/{#series_id}{series_index:02%d| - | - }{title}
Even after I make the change that template won't work. The format specifications for CC are different from those in calibre. In this case you would want %02d, not 02%d. For more info see the FAQ answer What can I use in a CC file name template?, in particular the info on series index formatting.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about populating custom field jmricker Plugins 3 08-09-2014 02:10 PM
[Bug?] Field(s) in prefix/suffix Backi Library Management 5 03-13-2012 06:22 AM
Custom metadata field sort lathom Library Management 3 12-12-2011 08:25 AM
How do I populate a custom field on import? himitsuhieki Library Management 7 08-19-2011 03:37 PM
Custom Metadata Field gpp Sigil 6 02-22-2011 08:39 AM


All times are GMT -4. The time now is 09:23 PM.


MobileRead.com is a privately owned, operated and funded community.