jlegewie / zotfile

Zotero plugin to manage your attachments: automatically rename, move, and attach PDFs (or other files) to Zotero items, sync PDFs from your Zotero library to your (mobile) PDF reader (e.g. an iPad, Android tablet, etc.), and extract PDF annotations.
4.05k stars 281 forks source link

Improper rename/move of attachements during Bibtex import, when imported item has more than 1 attachment #635

Open ZBiener opened 2 years ago

ZBiener commented 2 years ago

When I try to import a bibtex entry with two attachements, the attachmenets are not moved to the directory specified in the Zotfile preferences. These attachements remain in the standard Zotero storage folder.

However, once the import is complete, if the item is manually selected and a "Rename and Move" initiated, the attachements are moved to the proper directory and renamed.

This only occurs when more than one attachement is specified. If there is only a single attachement, the file is renamed/moved properly.

Apologies, but I don't know how to get a Zotfile-specified log. Will be glad to do so.

An example bibtex file is the following:

@book{gocl1613,
    address = {Hildesheim},
    author = {Goclenius, Rudolph},
    category = {Primary},
    date = {1964},
    keywords = {Dictionaries, Scholasticism},
    file = {/Users/..../Goclenius - Lexicon philosophicum, quo tanquam clave philosophicae (1964)a.pdf},
    file = {/Users/..../Goclenius - Lexicon philosophicum, quo tanquam clave philosophicae (1964).pdf},
    note = {Rodolphus Goclenius. Reprint (1st work). Originally published: Francofurti : M. Becker, 1613. Added title page, engr. of original edition.},
    origdate = {1613},
    publisher = {G. Olms},
    title = {Lexicon philosophicum, quo tanquam clave philosophicae fores aperiuntur},
    annote = {B51 .G576 1964}}