PolMine / cwbtools

Tools to create and manage CWB-indexed corpora
4 stars 2 forks source link

as_bibentry() from Zenodo | doi shows link to unparsed record info instead of real doi #20

Closed ChristophLeonhardt closed 4 years ago

ChristophLeonhardt commented 4 years ago

In the return value of as_bibentry() the field "doi" doesn't contain the actual doi but the link to the zenodo record itself (in which a lot of metadata, among others the doi, are stored). I think that this can be remedied easily. In the line here:

https://github.com/PolMine/cwbtools/blob/f64db4394c83c295d3d2276131af40ffdbd2ab3d/R/zenodo.R#L67

Instead of "self", "doi" does contain the doi of the current version.

ablaette commented 4 years ago

Good point, thanks a lot for your scrutiny. I modified the line accordingly:

doi_http <- x[["links"]][["doi"]]