Skip to content

ptoomey3/ref-extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reference Extractor

Reference Extractor is an online tool to extract Zotero and Mendeley references from Microsoft Word documents. This can be useful if, for instance, somebody sent you a Word document with Zotero or Mendeley references, and you'd like to add the cited items to your own reference manager. Or maybe you lost access to your original Zotero or Mendeley library and wish to retrieve the items you cited in your own Word documents.

Usage

The tool only works with Word files in the .docx format, to which references have been added through the Zotero or Mendeley word processor plugins. For Zotero references, the option "Store references in document" must have been checked in the Zotero document preferences, and references must be stored as "Fields", not "Bookmarks".

image

Once you have successfully extracted the references from a document, the output, in the CSL JSON format, can be either downloaded or copied to the clipboard. Currently, only Zotero seems to be capable of importing CSL JSON. Open Zotero's gear menu, and either select "Import..." and select the downloaded output file, or, if you first copied the CSL JSON to the clipboard, select "Import from Clipboard".

Developers

Examples of how Zotero and Mendeley embed cited items in Word .docx documents can be seen at https://github.com/rmzelle/ref-extractor/wiki.

Licensing

This repository is released under the MIT license, with the exception of the modified mammoth.js library used to parse .docx Word documents, which is released under the BSD-2-Clause license used by the original mammoth.js library by Michael Williamson.

About

Reference Extractor - Extract Zotero references from Microsoft Word files

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 62.6%
  • HTML 37.4%