CrossRef / rest-api-doc

Documentation for Crossref's REST API. For questions or suggestions, see https://community.crossref.org/
Other
740 stars 269 forks source link

Is there a good reason why title is an array? #114

Closed sckott closed 8 years ago

sckott commented 8 years ago

and not a string

e.g.,

curl 'http://api.crossref.org/works?rows=1' | jq .message.items[].title
#> [
#>   "Photoluminescent ZnO Nanoparticles and Their Biological Applications"
#> ]
sckott commented 8 years ago

I guess same goes for container-title and ISSN

I assume because these can have more than one value? If so, nevermind, makes sense :)

ioverka commented 8 years ago

At least, container-title and ISSN can have various entries, see:

http://api.crossref.org/works/10.1007/s11956-008-1009-1:

[...],"container-title":["Cytol. Genet.","Cytology and Genetics"],[...],"ISSN":["0095-4527","1934-9440"][...]

sckott commented 8 years ago

yeah, i figured that they can have multiple entries while I was writing the issue, closing