Editing multiple items at once
It would be very helpful, if it were possible to edit multiple items in one go.
The idea I have in mind is as follows:
1. Select the entries you want to edit.
2. Zotero updates the entry form to become a combined form:
a) Fields, which have the same values across all items, are displayed with this value
b) Fields, which have entries, but different values, are marked (e.g. with a grey background)
c) Fields, which are empty across all selected items, remain empty
3. If a user edits any field, the entered value is written to _all_ selected items.
It might be better to "hide" this feature in the menu, to prevent accidentally editing many, many items destroying your database. Zotero might display the entry form as described in 2., but an extra step is needed to unlock the editing feature …
Here is the scenario, where I desperately longed for this feature: I imported all pdf papers of a conference I attended. I had to go through each of them and change the Item type, the Conference name, the Proceeding name, the Date and the Place.
The idea I have in mind is as follows:
1. Select the entries you want to edit.
2. Zotero updates the entry form to become a combined form:
a) Fields, which have the same values across all items, are displayed with this value
b) Fields, which have entries, but different values, are marked (e.g. with a grey background)
c) Fields, which are empty across all selected items, remain empty
3. If a user edits any field, the entered value is written to _all_ selected items.
It might be better to "hide" this feature in the menu, to prevent accidentally editing many, many items destroying your database. Zotero might display the entry form as described in 2., but an extra step is needed to unlock the editing feature …
Here is the scenario, where I desperately longed for this feature: I imported all pdf papers of a conference I attended. I had to go through each of them and change the Item type, the Conference name, the Proceeding name, the Date and the Place.
The Zutilo functions for batch editing of item metadata are: "Copy item fields", "Paste into empty item fields", "Paste non-empty item fields", "Paste all item fields", and "Paste item type". They are explained in Zutilo's Command reference. Use cases are discussed in the Usage notes. For some functions you need to use a text editor for editing the JSON data that are copied to the clipboard.
It's also possible to script more complex operations with Zotero's JavaScript API.
Testing so far shows that Copy Item Fields > Paste into non-empty items works. However, as documented, it adds the Author from the copied item as an extra author on those pasted into, which is not correct in my case. A bit more testing needed.
A further workaround built upon what you said (thanks for the idea) would be to create an empty item in Zotero; you'll have to select at least an item type, but the rest of the fields would be empty, and you can fill there the field you're interested to paste to several other files as you said...
It could also be helpful to work with duplicated Zotero items. Right-click on an item and choose "Duplicate Item". This might be easier than working with the JSON text.
If you're still experiencing issues, you could share your JSON text as bwiernik suggested. Post your code to https://hastebin.com or https://pastebin.com/ and provide a link here.
- This means that the fields that have the same value should display that value, and those that have diverging values show a greyed out "(Multiple values)".
- When you edit fields in this view, the value is applied to all items. This can potentially be undesirable, so perhaps there should be a confirmation popup.
As it is currently, there is a vast empty frame on the right that only says "n items selected".