Zotero Format Metadata Save Abandoned

An addon for Zotero to format item metadata. Shortcut to set rich text, set journal abbreviations, university places, item languages, etc.

Project README

Zotero Format Metadata

zotero target version version download number
code size license Using Zotero Plugin Template

简体中文 | English

An addon for Zotero to format item metadata.

Features

Shortcut to set subscripts, bold and italic, etc

The rich text content in Zotero's reference list requires manual insertion of HTML tags (See ^rich_text_bibliography), which is difficult for the common user. Although Zotero's documentation mentions that visual editing of rich text will be supported in future versions, years have passed without any progress on this issue, so this plugin provides a quick way to insert these HTML tags.

Shortcuts

Once the text is selected, press the following shortcut keys to quickly apply the corresponding style:

  • Supscript: Ctrl + Shift + +
  • Subscript: Ctrl + =
  • Bold: Ctrl + B
  • Italic: Ctrl + I
  • No case: Ctrl + N (Setting class="nocase" to prevent certain special names from being capitalized in CSL title cases mode, #17 )

BTW: These shortcuts are the same as the ones in Microsoft Word.

Set subscript via shoutcut

Toolbar

When editing the "Title" field, a toolbar pops up and can be closed automatically by clicking on the blank space when editing is complete. The toolbar can be closed completely in the preferences.

Set subscript via toolbar

Convert title from "heading case" to "sentence case"

The Zotero's documentation recommends storing titles in "sentence case" format, which will allow CSL to perform a "title case" transformation on them ^sentenceCase. Although Zotero has a built-in function to convert titles to "sentence case", this function only recognizes function words, not proper nouns such as chemical formulas, etc.

This plugin provides a similar function, but avoids converting words that should be capitalized to lower case.

Detailed test results are available at test/toSentenceCase.test.ts.

Look up the journal abbreviation according to the journal full name

The plugin has a built-in dataset of about 96,000 journal abbreviations (from JabRef), and the plugin will first look up the journal abbreviations in the local dataset;

If none are available, the abbreviations are inferred from the ISSN List of Title Word Abbreviations (optional);

If still no abbreviations are found, the full name of the journal is substituted (optional).

Look up the place of the university according to its name

The plugin has a built-in list of universities in mainland China and their locations. For the thesis items, the location is filled in according to the university of the thesis, which is helpful to meet the requirement of GB/T 7714-2015 for the thesis to show the location [^gb7714].

[^gb7714]: Chinese GB/T 7714-2015: http://www.cessp.org.cn/a258.html

Lookup the date, volume, issue, pages, etc according to DOI

Some items in the Zotero library may be added with incomplete information such as issue volume pages because the translator is not available, or the official publication is not in the journal at the time of record, etc. The plugin provides the ability to complete these fields based on the DOI.

Fill in the language of the item according to its title

The plugin determines the language of an item based on its title and fills in the "Language" field, which is important for CSL to perform bilingual layout of the bibliography (e.g., et al and 等 mixed). ^csl-etal .

By default, the plugin is restricted to recognize only Simplified Chinese and English. You can turn off the language restriction in the preferences or add ISO 639-3 codes for other common languages.

Others

  • Remove the URL prefix of DOI
  • Convert Date to ISO format
  • etc...

Install

  1. Go to the release page to download the latest .xpi file.
    • If you are in mainland China or cannot access GitHub easily, please download the plugin via the following mirror sites.
    • If you are using FireFox, right click on the link of the XPI file and select "Save As...".
  2. Then, in Zotero, click Tools -> Add-ons and drag the .xpi onto the Add-ons window. See how to install a Zotero addon.

Note: The latest version is only supported for Zotero 7. If you are using Zotero 6, please download version 0.4.4.

Changelog

See CHANGELOG.md.

Todo

See Project #1 .

Licence

GNU Affero General Public License v3.0

Permissions of this strongest copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide a service over a network, the complete source code of the modified version must be made available.

Alternatives

Rich Text HTML Tags

Some quicker actions are available:

Journal abbreviation

Both zotero-journalabbr and zotero-updateifsE plugins provide similar function.

where zotero-journalabbr's local dataset is essentially the same as this plugin, both being JabRef abbreviated data, while zotero-journalabbr uses journal abbreviated data provided by Columbia University Library, so if you only need journal abbreviation functionality, then this plugin is a good choice!

zotero-updateifsE is a plugin to update data such as impact factor, partition rank, etc. for journals. For journal abbreviations, its readme file mentions that it contains only about 5000 journal abbreviations and does not support Columbia University Library data and ISSN LTWA inferences. Its journal abbreviation function is more suitable for light use.

This plug-in adds the ability to infer abbreviations from ISSN LTWA to JabRef data, which basically covers most journals.

Place

A quicker action is available: 填充城市

Language

The Jasminum and Delitem plugins provide similar functionality, but the language recognition provided by Jasminum is based on nlp.js and seems is not pre-processed and does not work well for text with HTML tags or chemical formulas in the title, Delitem only provides direct specification of the two languages.

This plugin based franc and has been processed for HTML tags to improve the recognition accuracy. However, if you have no demand for the other features provided by this plugin and are a Jasminum user, then using the Jasminum plugin is already fully satisfying and there is no need to load tens of extra megabytes of plugins for this slight increase in accuracy.

Acknowledgements

Using Zotero Plugin Template

The code of the following plug-ins was referenced during the development of this plug-in:

The following data sets were used:

Open Source Agenda is not affiliated with "Zotero Format Metadata" Project. README Source: northword/zotero-format-metadata
Stars
25
Open Issues
3
Last Commit
1 year ago
License

Open Source Agenda Badge

Open Source Agenda Rating