"Find and Replace" for Fields (revisited)
Summary Question:
I wish to use this feature to make global changes on sources. I found this thread: https://forums.zotero.org/discussion/84745/find-and-replace-for-fields, which is quite old. dstillman said, in August of 2020, that this was planned. It is now about 5 1/2 years later and if it has been integrated, I cannot figure out where it is. If it hasn't been integrated, is there a projected date?
If I use the JAVA example (linked to below) do I only need to change:
var fieldName = "publicationTitle";
var oldValue = "Foo";
var newValue = "Foo2";
Using the field and not localized in the API list (also linked below)?
Further Explanation (just in case it matters):
My vision is not very good. I am going blind in one eye and the other eye isn't much better. Here, I need to replace something that I can't believe I misspelled, which makes it rather embarrassing.
One of the reasons I use Zotero is to document learning videos for a variety of reasons. When it comes to videos, I document whether or not it was a "live streaming video" or if it were just a regular "streaming video." Unfortunately for me, I spelled the 2nd one "steaming video" and never even noticed until now. It looks like all of these videos are instructional porn. XDD!!! To make matters even worse, I even misspelled "steaming audio" too!
I do not speak JAVA either, as I looked at these pages as well: https://www.zotero.org/support/dev/client_coding/javascript_api#batch_editing and https://api.zotero.org/itemFields?pprint=1
Can anyone kind of give me a push in the right direction on how to handle this? I have hundreds that need fixing and that is going to be incredibly difficult by hand.
I wish to use this feature to make global changes on sources. I found this thread: https://forums.zotero.org/discussion/84745/find-and-replace-for-fields, which is quite old. dstillman said, in August of 2020, that this was planned. It is now about 5 1/2 years later and if it has been integrated, I cannot figure out where it is. If it hasn't been integrated, is there a projected date?
If I use the JAVA example (linked to below) do I only need to change:
var fieldName = "publicationTitle";
var oldValue = "Foo";
var newValue = "Foo2";
Using the field and not localized in the API list (also linked below)?
Further Explanation (just in case it matters):
My vision is not very good. I am going blind in one eye and the other eye isn't much better. Here, I need to replace something that I can't believe I misspelled, which makes it rather embarrassing.
One of the reasons I use Zotero is to document learning videos for a variety of reasons. When it comes to videos, I document whether or not it was a "live streaming video" or if it were just a regular "streaming video." Unfortunately for me, I spelled the 2nd one "steaming video" and never even noticed until now. It looks like all of these videos are instructional porn. XDD!!! To make matters even worse, I even misspelled "steaming audio" too!
I do not speak JAVA either, as I looked at these pages as well: https://www.zotero.org/support/dev/client_coding/javascript_api#batch_editing and https://api.zotero.org/itemFields?pprint=1
Can anyone kind of give me a push in the right direction on how to handle this? I have hundreds that need fixing and that is going to be incredibly difficult by hand.
Upgrade Storage
If you want it fixed now, the JavaScript snippet that you linked to is your best bet. And correct, you only need to change those three values -- the script ensures that only items with the
oldValueinfieldNameare affected. The trick is thatfieldNameis not what you see in the interface; you need to use the lookup available at https://api.zotero.org/itemFields?pprint=1 -- find the line that contains the user-friendly name of the field and copy the value offieldintofieldName.It might be worth backing up your Zotero database before doing the batch change, in case you need to revert it.