This repository contains an assortment of javascripts for Zotero 7. These scripts are designed to help with various bulk / batch operations within Zotero, such as editing metadata, renaming attachments, and detecting similar items.
- Download the desired script(s) from this repository.
- Open Zotero.
- Go to
Tools > Developer > Run JavaScript
. - Copy and paste the script content into the Zotero JavaScript console.
- Press
Run
.
This script allows you to perform bulk edits on various fields of your Zotero items. Bulk editing means you can apply changes to multiple items at once, rather than editing each item individually. This can save time and ensure consistency across your library.
Features:
- Search and replace text within fields.
- Support regular expression and wild cards
- Edit the fields of multiple items at once.
- Supports a wide range of fields including titles, abstracts, creator names, and notes.
Usage:
- Choose the field you want to edit.
- Enter the search term and replacement term.
- Select the items to edit (selected items, items in a collection, or items in a saved search).
This script allows for you to perform bulk renaming of multiple attachment filenames and or titles based on their parent item’s metadata.
Features:
- Rename attachment filenames and/or titles.
- Option to perform the renaming on all attachments of selected items, active collection, or saved search.
- You don't need to select the attachment itself.
Usage:
- Choose the items to rename (selected items, items in a collection, or items in a saved search).
- Choose whether to rename filenames, titles, or both.
This script helps in detecting and handling potential duplicate items based on a similarity threshold. This approach will identify duplicates that the built-in logic does not detect.
Features:
- Set a similarity threshold for detecting duplicates.
- Compare various fields such as titles, authors, dates, and publishers.
- Tag or move duplicates to the trash.
Usage:
- Set the similarity threshold.
- Choose the items to compare (selected items, items in a collection, or items in a saved search).
- Review and handle the detected duplicates.
This script helps manage tags within your Zotero library by allowing you to perform bulk operations, such as adding, removing, or replacing tags across multiple items. This script is designed to handle large collections efficiently while providing detailed feedback and user confirmations.
Features:
- Add one or more tags to multiple selected items at once.
- Remove specific tags from multiple selected items with a confirmation prompt before execution.
- Replace one tag with another across multiple selected items, ensuring only items with the original tag are modified.
- Detailed Logging: Provides progress feedback and logs detailed actions taken for each item.
- User Confirmation: Prompts for confirmation before performing significant operations like removing or replacing tags.
Usage:
- The script prompts you to choose items to process: selected items, items in the current collection, or items from a saved search.
- Add, Remove, or Replace a Tag
- Autosuggests tags to choose from for remove or replace operations
Refer to each script's README for detailed usage instructions.
Contributions are welcome! Please read the contributing guidelines for more information.
Special thanks to the Zotero community for their support and contributions.