ropensci / rcrossref

R client for various CrossRef APIs
https://docs.ropensci.org/rcrossref
Other
166 stars 20 forks source link

cr_journals does not return works that have two ISSN #238

Closed LukasWallrich closed 1 year ago

LukasWallrich commented 1 year ago

Some journals allocate both the electronic and physical ISSN to their articles, e.g., the International Journal of Stress Management, example JSON: https://api.crossref.org/v1/works/10.1037/str0000238, entry "ISSN":["1573-3424","1072-5245"],"issn-type":[{"value":"1573-3424","type":"electronic"},{"value":"1072-5245","type":"print"}]

With cr_journals(), I do not get these results, regardless of which ISSN I use - instead, only supplementary materials that only have one DOI allocated are returned. (See cr_journals(issn = "1072-5245", works = TRUE, sort = "published-print")

With the API, they are returned: https://api.crossref.org/v1/journals/1573-3424/works

I had a quick look at the code, but could not immediate spot where this goes wrong. If you can provide any directions, I can explore further and possibly propose a fix.

LukasWallrich commented 1 year ago

Actually, sorry, the issue was something else here - for some reason, the journal only reports published-print for supplementary materials - if I sort by published, all is good ... it is possibly still sub-optimal that the ISSNs get concatenated to "1573-3424,1072-5245", but list columns are not always ideal either, and this is probably due to the JSON parser rather than rcrossref. So closing this.