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 01-01-2021, 05:46 PM   #1
Grebenshchikov
Junior Member
Grebenshchikov began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2021
Device: Kobo Clara HD
Need Template help

Hey there, I've been trying to figure this out for a while but haven't yet been able to.

What I'm needing is a send-to-device template to sort a fiction and non-fiction library. Ideally, something like:

if fiction: fiction/author_sort/title - authors
if non-fiction: non-fiction/subject/title - authors

I'm just using tags for this, where the first tag is fiction or non-fiction, and the second is used only for non-fiction, and that's the subject matter. So tags for a fiction book is just "fiction". And tags for a non-fiction might be "non-fiction, world history".

If anyone can provide some help or insight, that'd be much appreciated!
Grebenshchikov is offline   Reply With Quote
Old 01-01-2021, 06:02 PM   #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,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Moderator Notice
please do not hijack another thread. Use the New Post button Upper Left in each forum
theducks is offline   Reply With Quote
Advert
Old 01-01-2021, 06:12 PM   #3
Grebenshchikov
Junior Member
Grebenshchikov began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2021
Device: Kobo Clara HD
Oh, shoot, I'm sorry. I figured that was the right place to put it. Thanks for moving it!
Grebenshchikov is offline   Reply With Quote
Old 01-01-2021, 07:22 PM   #4
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,190
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
This is very ugly/unreadable, but here you go:

Code:
{tags:'str_in_list($,',','fiction',strcat('fiction/',field('author_sort')),strcat('non-fiction/',list_difference(field('tags'),'non-fiction',',')))'}/{title} - {authors}
capink is offline   Reply With Quote
Old 01-01-2021, 08:45 PM   #5
Grebenshchikov
Junior Member
Grebenshchikov began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2021
Device: Kobo Clara HD
Thank you very much! It works perfect, thanks for your help.
Grebenshchikov is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Normal" template inside GPM template ownedbycats Library Management 20 12-02-2020 09:40 PM
Template if -- then -- else chaley Library Management 6 09-06-2020 06:57 AM
Help with a template dunhill Library Management 10 06-04-2020 06:34 AM
Using built-in template functions in a custom template function ilovejedd Library Management 4 01-28-2018 12:20 PM
Help with template... or something else Glottis Library Management 5 10-07-2015 12:55 PM


All times are GMT -4. The time now is 05:42 PM.


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