View Single Post
Old 06-23-2016, 10:12 AM   #12
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
@excaliber:


Quote:
Is not possible for Calibre to import files if their path is known? I mean, If there is a file attached in Zotero then this is reflected in the "File Attachments" column
Yes, which is why I am currently doing final testing on the next release that will detect missing books and ask if you want to use Calibre to add them. I will likely post the new release tonight. See the attached image.

The criterion is Zotero's Key in the CSV being matched against Calibre's Custom Column #zotero_key a.k.a. ZKey.

If you mess with the Calibre ZKey column value for a book, it will no longer match the CSV...not good.

The next release will add missing books by looking for Zotero Keys in the CSV that are not represented anywhere in the current Calibre Library. It will then invoked Calibre's calibredb command-line utility to add the files represented in the CSV field "File Attachments". See note #1 below.


Quote:
For example I have installed the ISBN extraction plugin and Words count plugin
By definition those 2 plug-ins are hardcoded to do only a single thing (ISBN and Word Count/Pages) by reading the .pdf text, and parsing it.


Quote:
How does the matching between the Zotero entries and the Calibre entries work? With the help of which criterion? How does it find the right entries in Calibre?
It matches by finding a Calibre book Path with a book filename that is identical to the Zotero file attachment filename. It ignores everything in the Paths except the final filename. If you change the Calibre filename in any way, it will no longer match. Hence, the strong warning about not changing Calibre Author or Title prior to completing the ZMI update.

Perhaps you should create a new Calibre Library, and start from scratch importing the books from Zotero, and then running ZMI before touching the books at all.

You can then move the books from your old Library to the new, 'uncorrupted' Library. Just be sure to set your Calibre > Preferences for merging duplicates properly first.

Note #1: for the auto-add missing Keys to work, all of your Zotero books must be in the same Calibre Library for the same logical Zotero "library" equivalent. Otherwise, books would be deemed as missing even though you had previously added them and then moved them to another Library. Not good.



DaltonST
Attached Thumbnails
Click image for larger version

Name:	zmi_new_add_missing_books_question_dialog.jpg
Views:	1087
Size:	60.8 KB
ID:	149616  

Last edited by DaltonST; 06-23-2016 at 10:50 AM. Reason: Changes
DaltonST is offline   Reply With Quote