View Single Post
Old 06-25-2016, 02:25 PM   #24
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
New & Improved Book Details View Label Alternative

@excaliber et al:

I came up with an easy way to automatically show the labels in the Detail View, but is also easily reversible since to use html in the Zotero custom columns corrupts them. They are not really "comments" at all. They are simple text that has to be stored in Calibre in a comments custom column because there is not a datatype of "non-normalized, simple text".

Because of data quality unreliability, inconsistency, user-defined columns and column usage, ZMI has to import them as text to avoid Calibre crashing due to datatype conflicts. They are static information of what Zotero knows about the books.

I have also changed ZMI to strip out the html that Calibre often automatically creates for a datatype=comments when ZMI does not want it to be there for the purposes of the Detail View.

Since your GUI has all of the datatype=comments columns shown in the Library View since they are not really comments, but are really simple text, you will have to endure having the Column Name at the beginning of every value in every row of every column once you have decided it is time to show the labels in the Detail View. Obviously that will not be until the very end of the metadata update process. If you cannot stand it for some reason, you can strip the labels (stripping all html) from the columns temporarily until you want the Detail View labels back again.

See an attached example.


DaltonST


n.b. do not forget to compress/vacuum/defragment your Calibre Library database via the "Library Maintenance" > "Check Library" menu option. Your metadata.db file will get enormous over time. That will compress it.
Attached Thumbnails
Click image for larger version

Name:	zmi_book_detail_view_example.jpg
Views:	661
Size:	515.1 KB
ID:	149676  

Last edited by DaltonST; 06-26-2016 at 08:36 AM.
DaltonST is offline   Reply With Quote