View Single Post
Old 02-20-2021, 06:13 AM   #13
norolim
Member
norolim began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
Quote:
Originally Posted by capink View Post
It is not clear what wanted here. Hierarchies cannot be displayed in list view.

If all you want is to separate or unpack the hierarchical genres into separate items, the solution would be a custom column with a template to replace the dot with ', '. You can use the following template to achieve this:

Code:
{#genre:'re($,'\.',', ')'}
That is, what I needed. No tree, just items separated by comas. Thank you very much.

Now, would it be possible to get rid of duplicates in some way? If a book has the following metadata:

Code:
Speculative fiction.Science fiction.Steampunk, Speculative fiction.Fantasy
Your template will return:
Code:
Speculative fiction, Science fiction, Steampunk, Speculative fiction, Fantasy
Is there a way to remove duplicates in such situations?
norolim is offline   Reply With Quote