Zotero was and still is in dire need of a simple search and replace function. Consequently, I decided to learn JavaScript and coded a basic solution.
- First, provide the
$field
that should be searched (full list of available fields and their names). - Next, you need to provide the
$search-string
and$replace-string
(2 further prompts). - Then the script will start a search in your current library (
$field contains $search-string
); just as the normal 'Advanced Search' would do. - After that, you will see how many items will be updated and a preview. Once you confirm, the script will perform the operation and tell you how many items were changed.
Back up your local Zotero-library before using my script (or doing any batch-editing)!
The easiest way of running Zotero-S'n'R is to copy the code from 'src/basic_script.js' into Tools --> Developer --> Run Javascript:
--- in development ---