Display template values not saved to metadata.calibre
seaquay pointed out in my Create Kindle Collections plugin thread that I was not able to display values from custom columns that use a template using the Calibre data saved to the Kindle.
It appears that Calibre saves the metadata.calibre information for the custom columns but it only saves the template in the 'display' field and leaves the current value blank in the 'value' field, e.g. in metadata.calibre:
"user_metadata": {
"#specialcolumn": {
"#value#": null,
"display": {
"composite_template": "{#section}{#subsection:| - |}"
}
...
}
Can you update Calibre to save the actual value that is displayed in Calibre in the 'value' field along with the 'display' template info?
I understand why you don't at the moment - Calibre doesn't need it since it has the template information. But since its saving a static image of the book data, and I don't think Calibre reads this file to get the template information, if you saved the current value it would enable other programs to use it easier.
I've also thought about looking for a function to parse the template information, but I'd like to check if you'd consider modifying Calibre first.
|