I have a tiddler tree with book subjects, and tiddlers about books in a small local library. The books are tagged with one or more subjects. There is no root subject, but there are a few subjects on the top level, marked as such with a special tag. Every subject has a one-letter code in a field named ‘spinecode’.
I will give an example in order to explain what I want to accomplish.
This is a path from head subject to a book, including the spinecodes:
History (A) - WWII (F) - Military operations (K) - book
So the book is tagged ‘Military operations’. Now I want to give the book a sticker on the spine marked ‘AFK’ in order to put all books on shelves, sorted by sticker code. (If a book has more subject tags, I would like to see all possible sticker codes and then decide where the book will be placed.) Also I want the sticker to have a unique number after the spinecode, but I will cross that bridge when I get to it.
So I need TW code that strings the spinecodes from the tree together, given a certain book. I have spent hours trying to write recursive filters and functions, also tried using the kin filter, but it is beyond me (also see earlier post).
Any suggestions?