diegodlh / zotero-cita

Cita: a Wikidata addon for Zotero with citations metadata support
GNU General Public License v3.0
218 stars 10 forks source link

Right click on items to add them as citations to other item #230

Closed Futur3r closed 1 year ago

Futur3r commented 1 year ago

This PR fixes #39.

But I have trouble understanding how to create a citation. I got kind stuck with this error message : JavaScript error: chrome://cita/content/main.js, line 8471: ReferenceError: sourceItem is not defined

Futur3r commented 1 year ago

I've updated the code and now I get a JavaScript error: chrome://zotero/content/xpcom/data/item.js, line 767: Error: "item" is not a valid itemData field.

I've added the method to do the link, I think it's the one.

Dominic-DallOsto commented 1 year ago

Ok, thanks for the update! I modified it a bit to also handle multiple source items at once. And to do the linking to a related item automatically when creating the citations.

On my end it seems to work all good now - is it also good for you?

Dominic-DallOsto commented 1 year ago

Also, out of interest, did you get the vscode debugger to attach to Zotero successfully? I just saw it in your launch.json file.

Futur3r commented 1 year ago

All good !! Works fine. Thanks a lot :D

For the debugger, no, I tried a lot without any success.