UB-Mannheim / zotero-ocr

Zotero Plugin for OCR
GNU Affero General Public License v3.0
529 stars 36 forks source link

Problem with isolated PDFs with no parent item #78

Open aborel opened 1 month ago

aborel commented 1 month ago

If the plugin is used on a PDF with no parent item, the output (OCRed PDF, html files) will also be attached to Zotero as isolated files. There will be no visible relation between these scattered items and it will be difficult to find them in a medium or large library. This risk of such a case is significant as image PDFs might not contain much recognizable metadata recognizable by Zotero at import time.

Maybe it would be good to check for the existence of a parent record, and create one with suitable minimal information if there is none?

aborel commented 1 month ago

Commit b61ca1fc96e3359f956f5bf1198387bc1e7c6626 addresses the issue, as well as #55 . Can someone check (and maybe test with Zotero 6 )?

stweil commented 2 weeks ago

As there was no further feedback, I just prepared a new release 0.8.0. So everybody will get the fix, and hopefully some people will report whether it works or not.