diegodlh / zotero-cita

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

Citations to deleted items makes Citation Network not show #265

Open emstruong opened 8 months ago

emstruong commented 8 months ago

Describe the bug Citation Network does not show-up.

To Reproduce

Expected behavior Expected some graph or UI to pop-up

Screenshots image

Environment:

diegodlh commented 5 months ago

Hi! Thank you for reporting this.

Yes, as you have expected this should at least have opened a new window, even if there are no known citations between the items selected.

Maybe you can try disabling all other addons, restarting Zotero and trying again, to see if there is a conflict with another addon.

If this doesn't fix it, maybe you can try getting and posting a debug log so we can better understand what may be going on?

If possible, attach a debug output log:

  1. Enable logging: in Zotero, go to Help > Debug Output Logging > Enable.
  2. Follow the steps to reproduce the behavior described above.
  3. Go to Help > Debug Output Logging > View Output.
  4. On the window that opens, go to File > Save to save the log. Attach this file to this bug report.
  5. Close the Debug Output window and disable logging: Help > Debug Output Logging > Disable.

If it doesn't affect your privacy, you can also export the item or collection causing trouble to a file and attach it to this bug report:

  1. Select the item(s) or collection causing trouble, right click on your selection and choose Export Item/Collection.
  2. Choose "Zotero RDF" as format and make sure to check Export Notes (because Cita saves citations metadata to note attachments). Hit OK to save.
DanielRunningen commented 5 months ago

I ran into a similar issue, for me it was because I had citations to things I had deleted (they were in pre-print before and I had to update them, and it was admittedly a little bit of a mess). The console didn't show any errors, the whole process just kinda... stopped? I had to do a binary elimination search in my library to figure out what item(s) were the problem. It was only then did I notice the citations to the deleted items. Deleting the old citations seemed to work.

emstruong commented 4 months ago

Hi! Thank you for reporting this.

Yes, as you have expected this should at least have opened a new window, even if there are no known citations between the items selected.

Maybe you can try disabling all other addons, restarting Zotero and trying again, to see if there is a conflict with another addon.

If this doesn't fix it, maybe you can try getting and posting a debug log so we can better understand what may be going on?

If possible, attach a debug output log:

  1. Enable logging: in Zotero, go to Help > Debug Output Logging > Enable.
  2. Follow the steps to reproduce the behavior described above.
  3. Go to Help > Debug Output Logging > View Output.
  4. On the window that opens, go to File > Save to save the log. Attach this file to this bug report.
  5. Close the Debug Output window and disable logging: Help > Debug Output Logging > Disable.

If it doesn't affect your privacy, you can also export the item or collection causing trouble to a file and attach it to this bug report:

  1. Select the item(s) or collection causing trouble, right click on your selection and choose Export Item/Collection.
  2. Choose "Zotero RDF" as format and make sure to check Export Notes (because Cita saves citations metadata to note attachments). Hit OK to save.

Sorry, I don't think I can do a log or disable all add-ons in my case. Please feel free to close the issue, though the problem does still persist.

Dominic-DallOsto commented 4 months ago

No problem.

In any case we will check and fix this as part of the update of the addon for Zotero 7. Thanks @DanielRunningen for the info that citations to deleted items are causing problems.