PubPeerFoundation / pubpeer_zotero_plugin

Plugin to show if references in Zotero have PubPeer comments
146 stars 2 forks source link

Show alert when referencing an article with PP comments? #2

Open brandonStell opened 5 years ago

brandonStell commented 5 years ago

This would have to be in the wordprocessor plugins?

retorquere commented 5 years ago

According to https://groups.google.com/d/msg/zotero-dev/fu0LpM6AOdE/CK8WQgv7CAAJ it should be possible (and proper) to do this in the zotero client. I'm awaiting their feedback to see how they've done it for retractionwatch.

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.11.3 ("create test builds")

Install in Zotero by downloading test build 0.0.11.3, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 2 years ago

@brandonStell 0.0.33.3 is a prototype of what could be shown. What is actually shown can still be tweaked, but as far as I can tell, that toast cannot show hyperlinks.

The change turned out to be fairly simple in the end, but it's a case of the proverbial "knowing which screw to turn"; it took me a bit of time to find the patch point that wouldn't have undesirable side-effects.

brandonStell commented 2 years ago

Hi @retorquere This looks really good and even works on Google Docs (Chrome on Ubuntu 21.10).

I just wonder if there is a way to make the alert more obvious?

Could we make it stay until the user dismisses it? Maybe we could also change the text to something like "ALERT: this article ['title'] has comments on PubPeer: [URL] (even if it's not clickable the user could copy and paste the URL into the browser)?

perhaps @borisbarbour has suggestions?

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.11.5 ("keep popup until user clicks it away")

Install in Zotero by downloading test build 0.0.11.5, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 2 years ago

I just wonder if there is a way to make the alert more obvious?

Could we make it stay until the user dismisses it?

That's now in the .5 build.

Maybe we could also change the text to something like "ALERT: this article ['title'] has comments on PubPeer: [URL]

Also in the .5 build

(even if it's not clickable the user could copy and paste the URL into the browser)?

I don't think that will work, because when the user clicks the toast, it is dismissed.

brandonStell commented 2 years ago

in the .5 build

Great!

I don't think that will work, because when the user clicks the toast, it is dismissed.

OK then let's add some more info (e.g. year, journal, first author)?

One issue I see is that once I have inserted a reference with a PubPeer comment into my document, the toast appears for all subsequent references inserted (regardless of whether or not they have PubPeer comments).

retorquere commented 2 years ago

I don't think that will work, because when the user clicks the toast, it is dismissed.

OK then let's add some more info (e.g. year, journal, first author)?

We could just use a citation style for this. That should get the most consistently useful results. The best citation style is APA of course.

One issue I see is that once I have inserted a reference with a PubPeer comment into my document, the toast appears for all subsequent references inserted (regardless of whether or not they have PubPeer comments).

It should be possible to do this only once per citation per document session (sessions start when a document connects to Zotero and ends when the document is closed. I think), or only once every N seconds per citation.

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.11.6 ("only show once per session")

Install in Zotero by downloading test build 0.0.11.6, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 2 years ago

.6 only shows an alert once per session per DOI.

brandonStell commented 2 years ago

Nice.

For me this is ready to push out but let's wait to see if @borisbarbour has any suggestions.

retorquere commented 2 years ago

.6 doesn't use citeproc BTW, it just displays the title.

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.11.7 ("add APA-formatted entry")

Install in Zotero by downloading test build 0.0.11.7, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 2 years ago

But .7 does.

brandonStell commented 2 years ago

I am no longer seeing the toasts in ,7

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.11.8 ("full locale")

Install in Zotero by downloading test build 0.0.11.8, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 2 years ago

.8 should bring back the toasts.

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.13.20 ("Merge branch 'master' into gh-2")

Install in Zotero by downloading test build 0.0.13.20, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

github-actions[bot] commented 2 years ago

:robot: this is your friendly neighborhood build bot announcing test build 0.0.13.21 ("cleanup")

Install in Zotero by downloading test build 0.0.13.21, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".