Open welpdx opened 2 years ago
To clarify, OpenURL has nothing to do with COins. I’d have to dig into what the issue is with those URLs. CrossRef’s OpenURL implementation is often rather buggy.
To clarify, OpenURL has nothing to do with COins.
Opps! Sorry. I just learned about COinS and OpenURL and I thought they were related because they are always mentioned together.
Though, would it be fair to say that COinS output metadata in a span that can be converted to an URL to be sent to some resolver? And in our case, we send the URL to CrossRef's OpenURL as a query to isolate the item in question and receive back more metadata on that item, right?
Many thanks for the clarification! I'm learning :)
I’d have to dig into what the issue is with those URLs. CrossRef’s OpenURL implementation is often rather buggy.
Thank you! I really appreciate you looking into it.
Yea it is really strange! I can't figure out if it is something wrong with the URL output from Zotero's COinS function, or is it to do with CrossRef's end. But I think I am probably just not knowledgeable enough in this area.
Issue Description
In cases where items do not have a DOI in the DOI field, I want to see if I can use this plugin to get the DOI.
As I see your code, I saw and learned that this plugin uses Zotero's COinS function. (Which is some brilliant stuff, I might add. And a really cool idea.)
Anyways, the problem I am having is not really to do with the plugin, but to do with COinS. The generated OpenUrl outputs gets either
malformed DOI error
or has something to do with a missing ISSN or title? I feel like there is something wrong with the OpenUrl query thingy. Since you know way more about COinS than me, I was wondering if I can pickle your brain as to why I am not getting a resolved query from OpenUrls. Your time and help is greatly appreciated!Example 1. Type: Journal Article
Source URL: https://www.tandfonline.com/doi/full/10.3109/09637480903193049 (If item does not have doi in doi field) Context Menu -> Manage DOIs -> get Long DOIs ->
0 updated
Zotero debug:(3)(+0001026): Zotero DOI Manager: CrossRef lookup: Unknown status code: malformed
When I try debugging to see what is wrong
Zotero COinS output url v1.0:
https://www.crossref.org/openurl?pid=zoteroDOI@wiernik.org&url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Apmid%2F19961353&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Stevia%20(Stevia%20rebaudiana)%20a%20bio-sweetener%3A%20a%20review&rft.jtitle=International%20Journal%20of%20Food%20Sciences%20and%20Nutrition&rft.volume=61&rft.issue=1&rft.aufirst=S.%20K.&rft.aulast=Goyal&rft.au=S.%20K.%20Goyal&rft.au=undefined&rft.au=R.%20K.%20Goyal&rft.date=2010-02-01&rft.pages=1-10&rft.spage=1&rft.epage=10&rft.issn=0963-7486&multihit=true
Crossref result:
Using v0.1
var ctx = Zotero.OpenURL.createContextObject(item, "0.1");
:Crossref result:
Example 2. Type Book.
Source URL:https://www.taylorfrancis.com/books/mono/10.4324/9780203361993/handbook-prejudice-stereotyping-discrimination-todd-nelson Context Menu -> Manage DOIs -> get Long DOIs ->
v1.0. Similar issue. Malformed
v0.1. idk
Example 3. Working. Type: Journal Article
Source URL: https://journals.sagepub.com/doi/10.1177/0022022113520075 Context Menu -> Manage DOIs -> get Long DOIs -> Works V1.0
Do you know what is the issue here?
It looks like a majority work with COinS OpenUrls, but some others don't? Why is that? Observations:
Hunch:
Something to do with Example 1's
id=pmid:19961353
or Example 2'srft_id=urn:isbn:978-0-203-36199-3
Many many thanks! ~ Welp
Edit: Clarification: Plugin has no issue. Having problems with COinS. Want to ask for your help as you are very knowledgeable.