Skip to content

Schoeneh/zotero-s-n-r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zotero-S'n'R - Search and Replace for Zotero

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.

What it does:

  1. First, provide the $field that should be searched (full list of available fields and their names).
  2. Next, you need to provide the $search-string and $replace-string (2 further prompts).
  3. Then the script will start a search in your current library ($field contains $search-string); just as the normal 'Advanced Search' would do.
  4. 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.

What you should do:

Back up your local Zotero-library before using my script (or doing any batch-editing)!

How to use it -- 1: "Run JavaScript"

The easiest way of running Zotero-S'n'R is to copy the code from 'src/basic_script.js' into Tools --> Developer --> Run Javascript:

Screenshot showing the menu and submenus: Tools, Developer, Run JavaScript

How to use it -- 2: Plugin

--- in development ---