Automatic Rename file with parent metadata
Hi,
Is there any way to use the option "automatic rename file with parent metadata" at the moment we add it to zotero (When zotero automatically downloads the pdf from the webpage)?
Either that, or run a script or other way to do it for every new file?
Thank you.
Is there any way to use the option "automatic rename file with parent metadata" at the moment we add it to zotero (When zotero automatically downloads the pdf from the webpage)?
Either that, or run a script or other way to do it for every new file?
Thank you.
When I use the Zotero plugin in Chrome to capture a journal article, it pulls in the PDF if available, but it is given a default name "Full Text PDF" rather than renamed with the metadata. However, when I download the PDF manually and then drag it onto the Zotero database entry, it is renamed automatically as expected.
Having the label for automatically downloaded PDFs can be convenient (e.g. it allows easier searching for those files) and I see very little downside to it.
So it's definitely not a bug in the technical sense of the word. Whether it's still optimal UX given recent changes to Zotero's rename behavior I'm not sure. Personally I don't really think it matters much either way -- why do you care, for example?
E.g. for this article: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9299376/
I click on the Zotero connector icon (I'm in Firefox), it adds it in my library, and the PDF has the following name:
Cai et al_2022_ATM-TCR.pdf
Then, if I right click on this pdf, and click on "Rename File from Parent Metadata", then the new name is:
Cai et al. - 2022 - ATM-TCR TCR-Epitope Binding Affinity Prediction U.pdf
How can I do so that I don't have to manually ask to rename it?
I checked my preferences, and I have the "Automatically rename attachment files using parent metadata" box checked.
If instead on the ncbi webpage, I click on the link to get the PDF, I end up on this page https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9299376/pdf/fimmu-13-893247.pdf.
From there, the Zotero connector icon has changed to a PDF, and when I click it, the reference is added into Zotero with the right name for the pdf:
"Cai et al. - 2022 - ATM-TCR TCR-Epitope Binding Affinity Prediction U.pdf".
Is this difference of behaviors normal?
Finally, it seems like it's not possible to use the Zotero connector when the PDF has actually been downloaded (i.e. when it has a URL in "file:///home/..." instead of the website URL). This website is an example of it: https://www.frontiersin.org/articles/10.3389/fimmu.2020.01803/full
In that case, I have to go to my Downloads, and then drag it to Zotero. Is there a plan for supporting such a use case in the Zotero connector?
Thank you very much for all your work with Zotero, it's an amazing software!
Zotero always renames files from the web in that format, since files online often don't have filenames and when they do they're often meaningless. The "Automatically rename attachment files using parent metadata" setting is just for local files that you add, since those are more more likely to have filenames you want to keep. The extension can't run on file:// URLs. But you should always try to save from the article page anyway, which works fine on Frontiers.
Setup:
Zotero (version 6.0.26)
Zotero Connector (version 5.0.112)
Chrome (116.0.5845.140 (Official Build) (x86_64))
Macbook Pro 2019 16" (13.4.1 (c) (22F770820d))
You don't need to — and have never needed to — run Rename File from Parent Metadata to rename a file saved via the Zotero Connector, and in Zotero 7 that will no longer change the attachment title, which was incorrect behavior. Showing the filename in the items list is pointless, since the parent metadata is already shown in the parent row directly above the attachment.
Is there a way to change the Title to suit the same?
But can you explain why you want that? Again, the metadata used to rename the file is most likely already in the parent row, so showing the filename would just be adding redundant info to the items list that makes it harder to read. "Full Text PDF" (or other automatic names, such as "Submitted Version" for some open-access files) tells you what the file actually is. If you just know that Zotero always renames files automatically based on the pattern you've set, what's the point of seeing it in the items list?
It's only now that you've said that I've realized why this is like that... --'
For some reason, I was scared that if I leave "Full Text PDF" for the title, when I have a lot of PDFs opened in Zotero as tabs, all the tabs would say "Full Text PDF", and then I wouldn't know which one is which. But of course not, I just checked, and the tab title is the filename, not the label, which makes sense :)
Anyway, thank you for the clarification! I guess maybe that would deserve a bit of clarification for new users? It's also that the filename is kind of hidden, compared to the label. But it seems you have plans to address this in Zotero 7?