Import Zotero-Bibliography from a Word document into Zotero - solved!
Hello, I have a Word-Document with a Bibliography made by Zotero, but the books/references were stored in the Zotero of a different computer which I can´t access. Can I somehow import these references into my Zotero?
I tried endnote, but this will not import a Zotero-made Bibliography but only one made in Word, so this does not work. I tried copying the citations and pasting them into Zotero, but it says that this file format cannot be read.
I´m glad for all helpful comments!
Thank you!
I tried endnote, but this will not import a Zotero-made Bibliography but only one made in Word, so this does not work. I tried copying the citations and pasting them into Zotero, but it says that this file format cannot be read.
I´m glad for all helpful comments!
Thank you!
(@adamsmith This is a pretty common request. Currently the easiest method is to install Juris-M and use the feature there. Until document collections are added to Zotero, would it be possible to make a CSL style that displays CSL JSON, so that items could be easily copied into a library?)
My concern with any export format is that CSL is really poorly suited to write code (because it applies formatting rules designed for text) and I worry about offering a hack as a solution.
It should be possible (for someone) to build something that (a) just extracts references from a document for import, without preserving links in the document, and (b) doesn't require installation of software.
Both *.docx and *.odt documents can be exploded to XML. By walking the appropriate component files, field codes with embedded CSL JSON strings could be extracted. The CSL JSON could then be converted to arbitrary formats. This could all be done in one go by a single Python, Ruby, or Node script with a few command-line options.
It would take some work, but once you had a working extractor, it could be offered as a service on the Web. Seems like a neat idea and a broadly useful gadget, if someone wanted to take it on as a side-project.
Even if Zotero (or Mendeley) adds a feature to extract bibliographic info from existing Word documents, such a web tool might still be handy, so I might try putting it together.
What would be the best way to present CSL JSON to Zotero once extracted? Apart from a download button, how would I make the metadata accessible to Zotero via a translator? Dedicated translator?
If you do want to go the translator route, I think dedicated web translator is likely the way, though you could likely make something work with unAPI.
The exported CSL JSON file can be imported into Zotero via the gear menu (using either "Import..." and selecting the file, or, if you have opened the file and copied its contents, via "Import from Clipboard").
It's still a bit rough, but feedback is welcome. It works for me with small test documents. I plan to add a "Copy to Clipboard" button, and I need to figure out the licensing (I'm using a customized version of the above-mentioned mammoth.js, which is "BSD-2-Clause"-licensed, but my own code should be MIT licensed). It should also be pretty easy to extract embedded Mendeley references.
I did not understand the part you were discussing inbetween, but with your website I could do it within 1 Minute!!!
My mother in law had that problem and she is so happy right now, she says it´s like Christmas right now! And she says I´m her hero, but actually you are! :)
Just as a small warning: I'm pretty sure the tool currently doesn't extract any uncited references yet (Zotero items that have been added directly to the bibliography via Zotero's "Edit Bibliography" button in Word), but many people don't ever do that.
<w:instrText xml:space="preserve">ADDIN ZOTERO_BIBL {"uncited":[["http://zotero.org/users/1031436/items/HU4NC489"],["http://zotero.org/users/1031436/items/WZFNPG9D"]],"custom":[]} CSL_BIBLIOGRAPHY</w:instrText>
Assuming this never worked and isn't a bug, can I put in a feature request for it? It would be more logical if the scope of the "Store references in Document" option extended to such uncited items.