View Single Post
Old 03-11-2015, 02:04 PM   #41
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: 31,142
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaley View Post
Makes sense, although it opens the door for wanting to process the hierarchy in a template.
I modified one you did for me years ago
I get a Pern series that contains:
books in the Parent
Folders for the children (1 layer only)
Code:
save_template = u'program:test(field(\'series\'),strcat(\nsubstr(field(\'series\'), 0, 1),template("-series/{series:subitems(0,1)||/}{series:subitems(1,2)||/}{series_index:0>5.2f}-{title}_{authors}_{id}")\n),template("00noseries/{author_sort[0]}_authors/{author_sort}/{title}-{authors}_{id}")\n)'
theducks is offline   Reply With Quote