Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2018, 06:01 AM   #16
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,119
Karma: 1404167
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Tanjamuse provide me an example library where I did some tests. In order to tie up my loose ends in this thread, here is the solution that fits to her needs.

Code:
program: 

tmp1 = template('{#fandoms:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,\,)}/{author}/{title} ({#story_id})');
tmp2 = template('Crossovers/{#fandoms:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,&)}/{author}/{title} ({#story_id})');
tmp3 = template('Multiple Crossovers/{author}/{title} ({#story_id})');
    cmp(
        count(
            field('#fandoms'), 
            ','), 
        2, 
        re(re(tmp1,': ','_'),',',' - '), 
        re(re(tmp2,': ','_'),',',' - '), 
        tmp3)
Divingduck is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving ebooks problems Tanjamuse Calibre 12 07-15-2018 09:37 PM
Help with a 'Saving Books to Disk' Template Vortex Calibre 5 12-04-2014 10:18 AM
help with saving template having multiple authors? miquele Library Management 2 04-16-2013 05:49 PM
Save template problem antoon Library Management 12 08-17-2012 01:47 PM
Saving to Disk Template hurricane51 Conversion 2 07-07-2011 02:22 AM


All times are GMT -4. The time now is 06:14 PM.


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