zotero-shortdoi icon indicating copy to clipboard operation
zotero-shortdoi copied to clipboard

COinS URL issue (when there is no DOI in field)

Open welpdx opened this issue 2 years ago • 2 comments

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/[email protected]&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:

<query key="555-555" status="malformed">
<msg>Either ISSN or Journal title or Proceedings title must be supplied.</msg>
</query

Using v0.1 var ctx = Zotero.OpenURL.createContextObject(item, "0.1"); :

https://www.crossref.org/[email protected]&sid=Zotero%3A2&id=pmid%3A19961353&genre=article&atitle=Stevia%20(Stevia%20rebaudiana)%20a%20bio-sweetener%3A%20a%20review&title=International%20Journal%20of%20Food%20Sciences%20and%20Nutrition&volume=61&issue=1&aufirst=S.%20K.&aulast=Goyal&au=S.%20K.%20Goyal&au=undefined&au=R.%20K.%20Goyal&date=2010-02-01&pages=1-10&spage=1&epage=10&issn=0963-7486&multihit=true

Crossref result:

Malformed DOI [pmid:19961353]()

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

https://www.crossref.org/[email protected]&url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=urn%3Aisbn%3A978-0-203-36199-3&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Handbook%20of%20Prejudice%2C%20Stereotyping%2C%20and%20Discrimination%3A%202nd%20Edition&rft.place=New%20York&rft.publisher=Psychology%20Press&rft.edition=2&rft.aufirst=Todd%20D.&rft.aulast=Nelson&rft.au=Todd%20D.%20Nelson&rft.date=2015-08-20&rft.tpages=532&rft.isbn=978-0-203-36199-3&multihit=true

v0.1. idk

https://www.crossref.org/[email protected]&sid=Zotero%3A2&isbn=978-0-203-36199-3&genre=book&title=Handbook%20of%20Prejudice%2C%20Stereotyping%2C%20and%20Discrimination%3A%202nd%20Edition&place=New%20York&publisher=Psychology%20Press&edition=2&aufirst=Todd%20D.&aulast=Nelson&au=Todd%20D.%20Nelson&date=2015-08-20&tpages=532&isbn=978-0-203-36199-3&multihit=true

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

https://www.crossref.org/[email protected]&url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_id=info%3Adoi%2F10.1177%2F0022022113520075&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Gender%20Stereotypes%20of%20Personality%3A%20Universal%20and%20Accurate%3F&rft.jtitle=Journal%20of%20Cross-Cultural%20Psychology&rft.stitle=Journal%20of%20Cross-Cultural%20Psychology&rft.volume=45&rft.issue=5&rft.aufirst=Corinna%20E.&rft.aulast=L%C3%B6ckenhoff&rft.au=Corinna%20E.%20L%C3%B6ckenhoff&rft.au=Wayne%20Chan&rft.au=Robert%20R.%20McCrae&rft.au=Filip%20De%20Fruyt&rft.au=Lee%20Jussim&rft.au=Marleen%20De%20Bolle&rft.au=Paul%20T.%20Costa&rft.au=Angelina%20R.%20Sutin&rft.au=Anu%20Realo&rft.au=J%C3%BCri%20Allik&rft.au=Katsuharu%20Nakazato&rft.au=Yoshiko%20Shimonaka&rft.au=Martina%20H%C5%99eb%C3%AD%C4%8Dkov%C3%A1&rft.au=Sylvie%20Graf&rft.au=Michelle%20Yik&rft.au=Em%C3%ADlia%20Fickov%C3%A1&rft.au=Marina%20Brunner-Sciarra&rft.au=Nora%20Leibovich%20de%20Figueora&rft.au=Vanina%20Schmidt&rft.au=Chang-kyu%20Ahn&rft.au=Hyun-nie%20Ahn&rft.au=Maria%20E.%20Aguilar-Vafaie&rft.au=Jerzy%20Siuta&rft.au=Barbara%20Szmigielska&rft.au=Thomas%20R.%20Cain&rft.au=Jarret%20T.%20Crawford&rft.au=Khairul%20Anwar%20Mastor&rft.au=Jean-Pierre%20Rolland&rft.au=Florence%20Nansubuga&rft.au=Daniel%20R.%20Miramontez&rft.au=Veronica%20Benet-Mart%C3%ADnez&rft.au=J%C3%A9r%C3%B4me%20Rossier&rft.au=Denis%20Bratko&rft.au=Iris%20Maru%C5%A1i%C4%87&rft.au=Jamin%20Halberstadt&rft.au=Mami%20Yamaguchi&rft.au=Goran%20Kne%C5%BEevi%C4%87&rft.au=Thomas%20A.%20Martin&rft.au=Mirona%20Gheorghiu&rft.au=Peter%20B.%20Smith&rft.au=Claudio%20Barbaranelli&rft.au=Lei%20Wang&rft.au=Jane%20Shakespeare-Finch&rft.au=Margarida%20P.%20Lima&rft.au=Waldemar%20Klinkosz&rft.au=Andrzej%20Sekowski&rft.au=Lidia%20Alcalay&rft.au=Franco%20Simonetti&rft.au=Tatyana%20V.%20Avdeyeva&rft.au=V.%20S.%20Pramila&rft.au=Antonio%20Terracciano&rft.date=2014-06-01&rft.pages=675-694&rft.spage=675&rft.epage=694&rft.issn=0022-0221&rft.language=en&multihit=true

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:

  • It doesn't have anything to do with COinS versions.
  • It doesn't have anything to do with the Item Type

Hunch:

  • Something to do with the CrossRef database?
  • Something to do with Example 1's id=pmid:19961353 or Example 2's rft_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.

welpdx avatar May 06 '22 23:05 welpdx

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.

bwiernik avatar May 07 '22 09:05 bwiernik

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.

welpdx avatar May 10 '22 19:05 welpdx