View Single Post
Old 08-15-2023, 06:21 PM   #3
imnnrv
Member
imnnrv began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2023
Device: none
Quote:
Originally Posted by chaley View Post
You don't say what "category" is or what to do with multiple authors. I used 'tags' for category, which is probably wrong.
Category is my own column with hierarchy (for example: history.europe).
So perfect scenario for me is:

If Library = fiction:
If main author have less than X books:
Fiction/{languages}/{author_sort} - {pubdate} - {title}
If main author have more than X books:
Fiction/{languages}/{author_sort:sublist(0,1,&)}/{series}/{series:|| }{series_index:|| - }{pubdate} - {title}

If Library = nonfiction….:
If main author have less than X books in this category:
Non-fiction/Category/Subcategory/{author_sort} - {pubdate} - {title}
If main author have more than X books in this category:
Non-fiction/Category/Subcategory/{author_sort:sublist(0,1,&)}/{series}/{series:|| }{series_index:|| - }{pubdate} - {title}

Quote:
Originally Posted by chaley View Post
Customize this template to give the answer you want. I used the 'template()' function because that might be easier for you. If I was doing this for me then I would construct the results myself.
EXCEPTION: The function book_count can be used only in the GUI
imnnrv is offline   Reply With Quote