06-10-2016, 11:53 PM | #1 |
Enthusiast
Posts: 43
Karma: 70238
Join Date: Jun 2014
Device: none
|
{TOC} is always empty (BOOK_STRUCTURE_FIELDS not loaded?)
Project description
getting the number of entries in the toc to show in a custom column. Similar project that works getting the number of authors in a custom column ==> {authors:count(,)} The solution should be {toc:count(,)} but somehow the TOC field is not loaded with the rest of the metadata (it seems). I also tried to load the missing metadata with template functions, like {:field(toc):count(,)} but no luck. Can someone shed a light of this problem? |
06-11-2016, 12:10 AM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
toc is not a metadata field.
|
06-11-2016, 07:11 PM | #3 |
Enthusiast
Posts: 43
Karma: 70238
Join Date: Jun 2014
Device: none
|
The reason I tried for so long is that TOC is defined in the template language somewhere. It has a value, it's empty. What I mean is that
{potato} is undefined {toc} is empty. Dammit, I just realized, while typing this, that {toc} is my own godd*mm custom column isnt it? |
06-11-2016, 10:58 PM | #4 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah, probably, it certainly isn't a builtin field.
|
06-11-2016, 11:12 PM | #5 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Were you populating it based upon a result fro the Quality Check PI? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub created with Sigil : empty when loaded with Calibre | jpomart | Calibre | 12 | 12-12-2015 01:48 PM |
Problem with TOC with empty chapters | Matak | Conversion | 1 | 09-27-2014 11:54 PM |
Multiple HTML files w/ TOC to MOBI, not added in order listed in TOC | dysfunction | Conversion | 3 | 01-03-2014 12:40 AM |
Can a toc.ncx point to an empty content tag? | twedigteam | ePub | 7 | 02-08-2013 11:57 AM |
toc.ncx navpoint content=src empty? | KevinH | Sigil | 6 | 11-23-2009 01:39 PM |