Problems with linking files + merging duplicates
I accidentally deleted all of my PDFs in a folder I was copying from my desktop to Zotero; I must have clicked and held the key commands in the wrong order or let go slightly too soon. Luckily I had a backup from this morning and was able to restore the files locally, but now they're mixed up with the renamed files from Zotero (I tried reversing it first by dragging and made a mess instead).
In Zotero, I now have between four and six different copies of the same citations with copied PDFs and linked PDFs and I'm manually merging them all--but that requires twice confirming that I want to merge, whereas the feature that got me into this mess didn't so much as generate a single prompt for what I wanted to have happen! Seems like a pretty big design flaw that could use some fixing.
Is there a better way to do this? I have about a dozen folders left to go, with hundreds of PDFs nested inside.
In Zotero, I now have between four and six different copies of the same citations with copied PDFs and linked PDFs and I'm manually merging them all--but that requires twice confirming that I want to merge, whereas the feature that got me into this mess didn't so much as generate a single prompt for what I wanted to have happen! Seems like a pretty big design flaw that could use some fixing.
Is there a better way to do this? I have about a dozen folders left to go, with hundreds of PDFs nested inside.
Note that we recommend using stored files. Linked files are an advanced, much more error-prone configuration.
Merging duplicate items also simply requires clicking one them in the Duplicate Items view and clicking the merge button.
I'm not a new user (going on five years over here, and I positively evangelize Zotero) but I haven't yet adopted a "save to Zotero first" workflow. This was one step towards adopting that workflow. I was in the process of migrating all my PDFs into Zotero as stored files when I ran out of space, and so I removed the stored files and began trying to create citations for each of my PDFs. Even when I have non-OCRed PDFs, it is still much more efficient than creating each citation individually--except when importing this set of files went dreadfully wrong.
I understand that stored files or copies are the default. It would make things much easier if I could change that default, because an impossible to gauge margin of error is what led to my files becoming stored files instead of linked files and created a real mess of my Zotero library as well as my desktop storage system.
I know how to merge duplicate items, and it is a good thing that I'm asked to confirm that I want to merge the items. That was my point: a similar prompt to confirm the format (probably not the right term, but I mean linked or stored files) of the imported files would have helped to forestall the problem I had. I had to merge items over 200 times, and I still have to go through each of those merged items manually to delete each of the stored files within the merged parent items.
I also had to restore my files using a backup, as there was no obvious way to reverse what I'd inadvertently done, because Zotero had automatically renamed my meticulously named PDFs and I could no longer easily determine what was a duplicate. I've since changed the file handling in the General pane so that attachments aren't automatically renamed using parent metadata, but because I hadn't tried to link files before I hadn't noticed that this default existed. Had I not already developed the habit of observing very consistent naming conventions that might have been very useful, but as it was, it completely disrupted my existing system.
I'm wishing now I'd been clearer in my initial comment, but that was mid-accidental mass deletion and I was more than a little panicked. My question still stands, though: is there a better way than drag-and-drop (with the associated risk of accidentally importing all the files as stored files rather than linked files) to import hundreds of PDFs as linked files in order to retrieve their metadata and create corresponding citations? I'm already moving folder-by-folder, so I have a built-in way to check if the import has gone awry and I'm never trying to get Zotero to import more than about 75-100 PDFs at a given time. If that number should be much smaller, that would be great to know.
Also note that most people who use a linked-file workflow use the ZotFile extension, as mentioned in Stored Files and Linked Files, rather than linking existing files manually. You can also configure ZotFile to automatically use a naming scheme of your choosing rather than naming files manually — we strongly encourage people not to waste time naming files manually (and a future version of Zotero will include more flexible renaming options).
There's also a plugin that can mass-import files from an existing folder structure, though we can't help with that. (A similar feature will be included in a future version of Zotero.)
Thank you for pointing out the plugin and Zotfile extension. I haven't looked into the Zotfile extension yet; it didn't seem to me to be particularly necessary for what I wanted to do. The future features sound very useful, but don't exactly help with my current situation.
My objection (not being able to change the default from stored files to linked files), suggestion (there should be a prompt to confirm the format as linked or stored files or a way to change the settings), and question (what should I actually be doing to accomplish this task of importing ~400 PDFs or even just their citations if not this) still stand.
Thank you for your suggestions. I really do appreciate them.
You're right that I conflated the content of the pages; it was not clear from your response which aspect of the entire story you meant to refer to when you wrote "things". I would have linked to each page, but am unable to do so (at the very least it is not obvious from my end) and frankly it seemed excessive. I further understand why you might not want to add a prompt every time someone drags a file into Zotero.
I am not saying you didn't answer the question. I thanked you for the suggestions! And I will thank you again for numbering them in your response; that was clarifying, because I hadn't registered the reference to Zotfile as a suggestion for the specific problem of managing the citations of existing PDFs. The Zotfile suggestion seemed to be about renaming files, not importing citations for my existing PDFs.
I was trying to link to the files in the first place. Apparently I did that wrong, even though I was following the instructions in the Stored and Linked Files page as precisely as I could. So when I wrote that my question still stands, it's because I wasn't sure what I should be doing other than what I had already tried to do.
The plugin seemed (and still does seem) like a possibility; thank you for bringing it to my attention. After the mess I made just trying to work within Zotero, I am not eager to complicate matters with an unfamiliar-to-me plugin. I look forward to the future version of Zotero which incorporates that function.
I obviously don't know as much about this as you do, so there are almost certainly things that seem self-evident to you that are not self-evident to me.
Thanks for your help.