Generate collection from citations in a Word document?

I have written a paper that cites articles from several of my different Zotero collections. I used Microsoft Word with the Zotero plugin.

I would like to have all of these items together as a single collection in Zotero (they're already all in Zotero, but they're scattered across several collections). Is there some way I can go back to the standalone Zotero program and tell it "make a collection consisting of all items cited in this Word document"?

I realize that a straightforward way to do this probably doesn't exist as a feature, since the Zotero plugin for Word is intended to be a one-way thing just for citing. But I am open to creative work-arounds for doing this, if anyone can think of any!
  • This feature is planned, but no estimate is available for exactly when it might be implemented. In the mean time, you can do this two ways.

    1) If there aren't too many citations, you could manually make a collection by opening the Zotero dialog for each citation, clicking on the reference, clicking "Show in My Library", then dragging the item to a collection.

    2) If that is too much work, you can install the Juris-M program (http://juris-m.github.io), a Zotero-variant that has this feature implemented using special Document Tags. You could use Juris-M to make a collection, sync, then switch back to using regular Zotero if you like.
  • Thank you bwiernik!
  • Hi, are there any updates on this? Would love to see this getting implemented!

    @01baftb that plugin in your mentioned solution would have been great. Unfortunately, it doesn't seem to work with my current version (6.0.36) anymore. You wouldn't happen to know of an update or newer plugin?
  • edited June 25, 2024
    @khenggel you can now also do this with ChatGPT and Bibtex import to a single collection. It only requires plain text, not live Zotero citations in a MS Word document like Reference Extractor (https://rintze.zelle.me/ref-extractor/). Anystyle is the other other method that only requires plain text (https://anystyle.io/).
    ChatGPT example here:
    https://x.com/MushtaqBilalPhD/status/1753785908266963066

    Since the OP's use case was for references that are already in Zotero - that they now wish to have in one collection - you would then need to merge the duplicates.

    You should also check the imported items against the reference list. As a new option that has not been widely tested, ChatGPT might have problems with some bibliography formats more than others.

  • I don't understand why you'd want to do this without ref-extractor if you have live citations? Using the "Select in Zotero" options, you're just one drag&drop away from creating a document collection (and, of course, without any loss of metadata)
  • @tim820
    Thank you for the tip. However, I agree with @adamsmith that it seems like a detour to do this with AI when I have live citations already linked to the sources. Moreover, the word plugin must already have the list stored somewhere to create the bibliography. Thus, going via ChatGPT just adds more work and a lot of room for making mistakes (wrong mappings, duplicates, etc.). And if I have to check everything in the end anyway, I can just manually go through my bibliography in word, search for the respective items in Zotero and add them to a collection (which is what I have been doing until now).

    So, yes, I'd much prefer a solution like ref-extractor. Unfortunately, I get an error message, when I try to install it: "The add-on "%S" could not be installed. It may be incompatible with this version of Zotero." (I downloaded the zip-file from https://github.com/rmzelle/ref-extractor#reference-extractor.) Thus, I was looking for another solution. Unless the above error message can be resolved?
  • Why are you trying to install ref-extractor? That's not a thing you can do. It's a web application linked above (it runs client-side only, so no privacy concerns).
    If you really want to, you can run your own version of the web app (completely independent of Zotero), but there's really no reason to.
  • edited June 25, 2024
    The actual link to Reference Extractor web app is the one I included earlier:
    https://rintze.zelle.me/ref-extractor/
  • okay, now I feel very stupid. I thought it was an add-on (and the interface a screenshot) all this time...

    Thank you for bearing with me and helping me out nonetheless!
  • Hello!

    Not sure whether I should continue this thread or start a new one. I have a similar desire to generate a collection from a list of citations not from a word file, but a markdown/ pandoc/ quarto (.qmd) file.

    I am not sure how to do it: I would like to share the literature which is currently embedded in a course manual (.qmd file) using citationkeys. I would like to put these in a group library, so that students have access to all the references for the course.

    I've started doing it manually, but there are 85 references to search, select, and then drag to a group library. A mechanism would make it easier also to maintain. I guess what I really need is the "select in Zotero" functionality provided by ref-extractor, but from a list of citationkeys.

    for info, I tried to create a .aux file to use the aux-scanner (mentioned in https://forums.zotero.org/discussion/comment/340693/#Comment_340693) which was mentioned as a possibility, but that didn't work. I'm still missing the ability to select existing references in my library; it makes new (and incorrect) references.

    thanks for any advice!
  • Are you using the BBT add-on? Otherwise, Zotero doesn't have stable citation keys at all, so this definitely wouldn't be possible. With BBT, @emilianoeheyns might have an idea how to make this happen, but generally the direction from Zotero to any citekey-based formats (like markdown, LaTeX, or quarto) is one way, so there's nothing obvious.
    This is a different story with Word and LibreOffice integration, where Zotero keeps live links to the citations, so extraction via ref-extractor works.
  • if you just want to select the items, zotero://select/library/items/@citationkey or zotero://select/library/items/bbt:libraryID:citationkey will work.
  • Cool! Does this work with multiple citationkeys as it does with itemIDs in Zotero (that's what refextractor uses), so: zotero://select/library/items/@citationkey, @citationkey2, @citationkey3 ?
  • I would have to test that when I get home. If not, it'd be trivial to add.
  • thanks so much! Yes, I am using the BBT add-on (sooo useful! :)). When I tried this - pasting zotero://select/library/items/@gerring2008 (example in my library), into my browser, Zotero selected the entire library. Tried using both safari and edge.

    the multiple citationkeys would be my one use case, so @emilianoheyns, I would love to hear if it works or not.

    For the record, I wanted to add a link to this discussion (now closed), which discusses zotero://select: https://forums.zotero.org/discussion/24241/linking-to-zotero-items-via-zotero-select.
  • Select links don't seem to work at all for me. Can someone open an issue on github to test/add this behavior?
  • it works for me (for individual citationkeys) if I remove 'library", so: (example) zotero://select/items/@gerring2008

  • Cool! Does this work with multiple citationkeys
    It doesn't right now, but I can change that. Please open an issue on github for this.
  • Hi again! Would it be possible to open up an issue on github for this? I don't know if I need to 'petition' anyone? Sorry for my ignorance!
Sign In or Register to comment.