Zotero 7 and attachment titles
Zotero 7 is great. Many thanks for all your amazing work. Much appreciated.
I have a small problem. In Zotero 7.0.1, when I attach a PDF to a journal item and choose 'Rename File from Parent Metadata', in the main Zotero pane/window the title of that PDF remains as 'PDF'. The actual file stored in Finder is correctly named from the parent metadata.
Items that have previously been renamed from parent metadata show that correct name in the main Zotero pane/window. Only new PDFs appear to appear as 'PDF'.
I'd appreciate any support/suggestions about how I might change this back to how I think it used to function (to show the full PDF name in the main pane/window, rather than just 'PDF').
Many thanks and best wishes,
Wayne
I have a small problem. In Zotero 7.0.1, when I attach a PDF to a journal item and choose 'Rename File from Parent Metadata', in the main Zotero pane/window the title of that PDF remains as 'PDF'. The actual file stored in Finder is correctly named from the parent metadata.
Items that have previously been renamed from parent metadata show that correct name in the main Zotero pane/window. Only new PDFs appear to appear as 'PDF'.
I'd appreciate any support/suggestions about how I might change this back to how I think it used to function (to show the full PDF name in the main pane/window, rather than just 'PDF').
Many thanks and best wishes,
Wayne
I now understand the change. Thank you. Although..., sorry, I prefer the previous approach.
I'd use it when I have several PDFs attached to one item (e.g. 'First draft', 'Review', 'Resubmission' etc. - that's just one example).
For me, it is a little strange having the first attachment show as 'PDF' and subsequent ones by their filename.
If I was pushy... I'd request that we have the choice whether to show 'title' or 'filename'. But I'm not. ;-)
Thank you again to you and your colleagues for your amazing work.
Best,
Wayne
Also, unless you disabled automatic renaming, the first PDF you dragged to an item already had its filename automatically changed based on the parent metadata, so a filename like "First draft" that you set outside of Zotero would've been overwritten and wouldn't have appeared in the title anyway. In Zotero 7, you can actually create a custom filename format that conditionally incorporates the attachment title in the filename (e.g., if it doesn't include "PDF"), and then if you set the attachment title to something like "First draft", that would automatically be incorporated into the filename. (We'll be adding continuous renaming of files as metadata is changed in an upcoming version, which will make that even smoother.)
I think I will find 'don't interfere with searches' particularly useful.
FYI To change the title of the PDF, I was changing the item title name in Zotero (e.g., adding 'first draft'), then renaming the attachment title from parent metadata, then renaming the item back (removing 'first draft'). Made sense to me! ;-)
Best wishes, and thanks again.
Wayne
PS I would love a switch in settings to 'use attachment filename as attachment title'. But I'm sure you have much more important things to focus on.
A switch in settings would be great, that or it could easily display both, there's plenty of space after the word "PDF" in the line all by itself.....
https://s3.amazonaws.com/zotero.org/images/forums/u6843527/zpgsqdf2ufdk3jh7vzrt.png
e.g. the list under a parent item..
When you have a moment, please would you point me to some instructions on how I implement such a script in zotero. I simply have no idea.
Best wishes,
Wayne
https://github.com/windingwind/zotero-actions-tags?tab=readme-ov-file#-quick-start
Instead of the "copy item link" code used in the example there, use the code from either of the scripts linked above by @rdiaz02 (380 or 381).
Edit: looks like we posted responses at the same time. ;)
Now, if you want to go ahead, these are the steps:
1. Install Actions and Tags for Zotero from https://github.com/windingwind/zotero-actions-tags (there was a typo in my previous post, now fixed).
2. Make sure you read the quick start instructions https://github.com/windingwind/zotero-actions-tags#-quick-start paying particular attention to https://github.com/windingwind/zotero-actions-tags#create-your-own-actions . This is crucial, to know what you are supposed to do in the instructions that follow.
3. Go to https://github.com/windingwind/zotero-actions-tags/discussions/381 and/or https://github.com/windingwind/zotero-actions-tags/discussions/380 and install either one or both of these scripts.
If you've done step 2., you will see that you need to create a new action (or actions, if you install both scripts). The general steps are all in https://github.com/windingwind/zotero-actions-tags#create-your-own-actions. Briefly, you go to "Edit", then "Settings"; you will see the "Actions & Tags" tab, and then click on "+". You give the new action a name under "Name", give it a Menu Label under "Menu label", set the "Event" to none and the "Operation" to "script", and then copy the code (what is shown as "Data" in the github links for the scripts) under "Data".
@tim820: yes! ;-)