![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
![]()
Hi. I'm a new user here, so hello everyone.
I've searched the internet for an answer, but failed to find anything, so here is my problem. I used this guide, to create a Genre column with hierarchical genre structure. This worked fine, bu I also wanted to display the genres and subgenres in the Genre column in the main view. Unfortunately, since the hierarchy is created using the A.B.C syntax, Calibre displays the genres in the column as exactly that: A.B.C. Is there a way to force Calibre to display genres and subgenres separately? I'm using Calibre 3.48, as I'm on Win7. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,190
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Here is a note from the link you provided:
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
Could you please elaborate? I don't seem to have any settings for that under that particular button. Please mind, I'm trying to change the display of subgenres in the main window, not the tab browser.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,190
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Tag browser not tab browser. Right at the bottom. This is the only place you can show hierarchies.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
Yeah, that was a typo, I couldn't correct, 'cause I can't edit posts.
Let me explain, what I mean in more detail. Following the guide, I created a custom Genre column and added it to Categories with hierarchical items. Then I populated metadata with genres and subgenres, such as:
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,338
Karma: 168808725
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Series (and others) also as main.sub
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The dotted representation of a hierarchical column can be shown in the Book List as A.B.C
The elements of such a column can be extracted in a template via the subitems function and loaded into a composite custom column. See Using functions in templates - Single Function Mode BR |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
Thanks for all the help. Unfortunately, I don't really have time to learn the templates language, so this will not help me. I guess I'll have do, what I need, using tags.
|
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If they don't I'll give 'em a nudge in the morning (my time). BR |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,190
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
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($,'\.',', ')'} |
![]() |
![]() |
![]() |
#12 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@norolim - I seem to have misunderstood what you want.
I thought you wanted a separate column named Genre containing the first subitem of your hierarchical Tags in the book list - probably because the dotted strings Speculative Fiction.Sci-fi.Steampunk etc take up too much horizontal space. capink is right, you cannot a show a taxonomy as a hierarchical tree in the book list. BR |
![]() |
![]() |
![]() |
#13 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
Quote:
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 Code:
Speculative fiction, Science fiction, Steampunk, Speculative fiction, Fantasy |
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,190
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Code:
program: genre = ''; for item in '#genre': l = re(item, '\.', ','); for subitem in l: res = str_in_list(genre, ', ', subitem, subitem, ''); if res == '' then genre = strcat(genre, ', ', subitem) fi rof rof; re(genre, '^[, ]+', '') |
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 12
Karma: 10
Join Date: Feb 2021
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a tweak for genres and tags to view all child items by default? | Whallup | Library Management | 0 | 07-16-2020 03:50 PM |
Sigil not displaying book view | carimbombin2020 | Sigil | 1 | 04-22-2020 08:33 PM |
Genres - How do I assign a book to 2 genres? | RPL | Library Management | 3 | 03-08-2018 06:37 PM |
replace in book view changes view to code view | cybmole | Sigil | 4 | 10-28-2012 01:20 PM |
Sigil highlight Book View No Longer Shows in Code View | Themus | Sigil | 4 | 10-04-2012 07:54 PM |