View Single Post
Old 07-19-2018, 04:14 AM   #6
maddz
Wizard
maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.maddz ought to be getting tired of karma fortunes by now.
 
Posts: 1,405
Karma: 30039536
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
OK, I got this send to device template to work:

{#collection}/{author_sort}/{Series}/{Series} {Series_index:||-} {#Subseries} {#Subseries_index:||-} {title_sort} - {authors} {#shortstories:contains(Yes,Short,Long)}

However, there's a problem with multi-author series whereby you may have titles by the lead author, the lead author + someone else, or someone else - you have to go looking in multiple author directories for the complete series. To get round this problem, I have created a custom column called Lead Author {#lead}. But I'm running into problems with replacing {author_sort} with {#lead} if there is a value in the lead column. I've tried using {#lead}:test({#lead},{author_sort}) and {#lead}:ifempty({author_sort}) but neither seem to work as intended - does this functionality work in send to device templates or is it only for column templates?
maddz is offline   Reply With Quote