Attachments not being retitled in Zotero 7 when updating the file to match the name
In Zotero 7, when you right-click on a file and choose "Rename File from Parent Metadata", it doesn't update the whole thing. It shows that the file was renamed, but it doesn't update the title to match like Zotero has done in past versions. This leaves me with file attachments that are often titled with complete nonsense because whatever publisher created the PDFs generated filenames with what looks to me like random gibberish. Some of these original filenames can be misleading, too. Yet this is what the title comes in as when you import an attachment, and it seems you have manually type in something else if you want to clean that up--that's not how it used to work.
Plus, if I have more than one file attached to a document, it's not instantly clear which file goes with which attachment--you have to click on each one and look for the filename in the side pane.
I've been trying Zotero 7 but just rolled back to Zotero 6 because the messiness is aggravating, and I don't want to have to manually retitle the attachments to match what I happened automatically in version 6. Is there a setting to have the title update to match the filename, like it has worked in the past?
Plus, if I have more than one file attached to a document, it's not instantly clear which file goes with which attachment--you have to click on each one and look for the filename in the side pane.
I've been trying Zotero 7 but just rolled back to Zotero 6 because the messiness is aggravating, and I don't want to have to manually retitle the attachments to match what I happened automatically in version 6. Is there a setting to have the title update to match the filename, like it has worked in the past?
I can see the logic for "Accepted Version," "Sage PDF," etc., but I think the informational value for most users would be higher for displaying the attachment filenames. I do realize that this would result in the attachment title appearing very similar to the bibliographic entry appearing directly under the parent item, but that would be more helpful for many people than "004825dfile.pdf" or "Sage PDF" or whatever other titles end up being generated depending on how PDFs are imported.
For example, I have an attachment named "Full Text PDF" in the main window, but the name of the file on the disk is "Emmanuel(2005).pdf", because my template is
{{ firstCreator suffix="(" }}{{ year suffix=")" }}
We're likely going to add an option to show filenames in the items list instead, but there's really no reason you should be worrying about filenames. Avoiding this sort of tedious task is the whole point of Zotero.
And just to be clear, Zotero always auto-renamed files downloaded from the web, as long as it has existed. You've never needed to run Rename File from Parent Metadata on such a file. Maybe you've been running that unnecessarily on every single file you ever downloaded to Zotero, but by default you'll see the exact same thing you've always seen in the items list. The only difference is that we're no longer incorrectly throwing away the attachment title when using the manual rename option if the title doesn't already match the filename.
First, drag and drop a file called "viewcontent.pdf" into your library. This results in an attachment with an unhelpful name in your library and is what often happens when viewing a PDF directly in the browser and adding it through Zotero: metadata is often not found for the attachment, so it's just dropped into your library without a parent. You then discover it has no parent item, and so you go back and create the parent item directly. However, the attachment remains "viewcontent.pdf", and the attachment is displayed in the main window as "viewcontent.pdf". Right-clicking and "Rename File from Parent Metadata" renames the file on the disk but Zotero 7 leaves the item with this unhelpful attachment name.
Under the rationale used in other discussions of this topic, it seems like this attachment title would be more usefully renamed "PDF Fulltext" or something like that, or else it would be retitled according to the filename, which was the point I was trying to make.
Hope I'm making sense here as I'm not sure I have described the scenario correctly.
Honestly, the use cases where they might be actually useful (i.e. submitted version) are so niche that most of the time they seem more like a hassle than a useful feature.
In any case, as we've said repeatedly, we plan to offer an option to show the filename instead of the attachment title for people who prefer that. We think that's pointless and distracting, but you'll be able to do whatever you want.
> No it doesn't. We specifically changed this only for cases where the attachment title doesn't match the filename.
To be clear: what would be the intended behavior here? If I drag a PDF named "viewcontent.pdf" into Zotero, create a parent item, populate the parent item's metadata, and then click on "Rename File from Parent Metadata", only the filename is modified, but the title remains "viewcontent.pdf". I'm using the latest version of Zotero 7.
But regardless, if you do add a PDF directly (either via the browser or from the filesystem) and either metadata is retrieved automatically or you create a parent item and run "Rename File from Parent Metadata", Zotero will rename the file and set the attachment title to the new filename, because, as I say above, it still changes the attachment title when it already matches the filename.
It's possible we'll be changing it to set the attachment title to just "PDF" in these cases, since it doesn't really make sense to have the attachment title only sometimes match the renamed file. That's certainly not intended behavior, and I can't reproduce it in 7.0.0-beta.40. If you drag in "viewcontent.pdf" (and it's not automatically recognized), you right-click and select Create Parent Item, you click Manual Entry, you fill in "Test" for the Title of the parent item, and you right-click on the attachment and select "Rename File from Parent Metadata", you should end up with a file named Test.pdf and an attachment with "Test.pdf" for the title. If that's not what you're seeing, disable all third-party plugins and try again, and if it's still happening, make a screen recording, upload it somewhere, and provide a link here or via email to support@zotero.org with a link to this thread.