Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2012, 02:52 AM   #1
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Tag browser Series hierarchy

Is it possible to have series hierarchy like we are able to do for tags with periods in the tag browser. I mostly read series and usually just use a world or universe for a multiple series universe. I know one way is to use custom columns but I don't want to do that. I don't care if the series index is one but would like to have a hierarchy in the series name.
Dopedangel is offline   Reply With Quote
Old 06-15-2012, 03:00 AM   #2
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Should have checked before asking it works.
Dopedangel is offline   Reply With Quote
Old 06-15-2012, 03:14 AM   #3
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Ok now that it works I am wondering how to use it in send to device currently I am using

Ebooks/{tags:re([\.],/!)|!|}/{authors[0]}/{authors}/{series}/{series_index:0>5.2f| |-}{title}

That make a folder for each series thats ok but with series that are hierarchical I would only like the top series folder and the series name after the period added to the title something like

Series\01 - Subseries Title

Instead of Series.Subseries\01 - Title

As I usually use internal chronology for my series index instead of the publication order for most series they show up in different series folder.
Dopedangel is offline   Reply With Quote
Old 06-15-2012, 04:30 AM   #4
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: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I think that the following does what you are looking for.
Code:
Ebooks/{tags:re([\.],/!)|!|}/{authors[0]}/{authors}/{series:subitems(0,1)||/}{series_index:0>5.2f| | - }{series:subitems(1,10)| | - }{title}
It puts the first (or only) component of the series between two slashes, then puts the second through last components between the series index and the title. If there is no series then the second slash is omitted. I added some spaces and dashes that you might not want.

Note that if there is only one component (no hierarchy), then the result is the series index followed by the title. If you want some text that indicates "no hierarchy", then use something like the following:
Code:
Ebooks/{tags:re([\.],/!)|!|}/{authors[0]}/{authors}/{series:subitems(0,1)||/}{series_index:0>5.2f| | - }{series:'ifempty(subitems($, 1,10), 'No Subseries')'| | - }{title}
This template uses template program mode for the series+subitems call so that the function calls can be nested.

If you want something that indicates "No series" as well, then use something like
Code:
Ebooks/{tags:re([\.],/!)|!|}/{authors[0]}/{authors}/{series:'ifempty(subitems($, 0,1), 'No Series')'||/}{series_index:0>5.2f| | - }{series:'ifempty(subitems($, 1,10), 'No Subseries')'| | - }{title}
BTW: It is much easier to test templates of this complexity using a "column built from other columns" instead of actually sending books to the device.
chaley is offline   Reply With Quote
Old 06-15-2012, 06:20 AM   #5
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Thank Chaley the first one would be perfect for what I am trying to do. Now to actually put my series in hierarchies.
Dopedangel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fields in Tag Browser hellsworth Calibre 2 11-06-2011 07:11 AM
Tag browser searching Stampercam Calibre 2 06-25-2011 04:42 AM
Tag Browser partitioning dasimser Calibre 2 01-03-2011 12:18 PM
Tag Browser & Series oldbwl Calibre 7 10-06-2010 04:58 PM
Empty tag browser Rachel Calibre 18 07-26-2010 11:42 AM


All times are GMT -4. The time now is 02:32 PM.


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