View Single Post
Old 01-06-2017, 02:24 PM   #103
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
Creating Virtual Tabs via "Protect/Unprotect Custom Columns"

Quote:
Originally Posted by Tanjamuse View Post
Hello Dalton.

In the "Protect/Unprotect Custom Columns", would it be possible to add an option to merge hidden metadata?

As I would like to hide some of my columns which I don't want to accidentally edit, but I would still like to add metadata to them if I merge 2 books?

Thanks
@Tanjamuse:

That particular JS GUI Tool just tweaks a table that tells standard Calibre to create or not create input widgets in the Edit Metadata dialogs for Custom Columns. Calibre loads that table into memory at startup only. That is why you must restart Calibre after tweaking that table using that particular JS GUI Tool. It is also one reason that you must restart Calibre after creating or changing any Custom Columns.

The best way to do what you want is to create a "Virtual Tab" within that JS GUI Tool called something like "Merge Books", and set all appropriate Custom Columns to "enabled/not hidden/editable". Then, whenever you are going to merge books, temporarily activate that Virtual Tab so all of your Custom Columns are displayed and editable. Merge your books. Then, using that GUI Tool reset the active Virtual Tab to what you were usually previously. Don't forget to restart Calibre after clicking the JS button "Update 'Editable' Per Current Settings".

See the attached example. Hope that helps.



DaltonST
Attached Thumbnails
Click image for larger version

Name:	2017-01-06 12_19_45-JS+ GUI Tool_ Protect_Unprotect Custom Columns.jpg
Views:	478
Size:	292.7 KB
ID:	153991  
DaltonST is offline   Reply With Quote