datacite / bolognese

Ruby gem and command-line utility for conversion of DOI metadata
MIT License
40 stars 14 forks source link

Correctly parse affiliation name #99

Closed mfenner closed 3 years ago

mfenner commented 4 years ago

For example in 10.1177/0042098011428175:

"author": [{
    "given": "Norbert",
    "family": "Petrovici",
    "sequence": "first",
    "affiliation": [{
      "name": " "
    }]
  }]

is turned into

[{
  "name": "Petrovici, Norbert",
  "nameType": "Personal",
  "givenName": "Norbert",
  "familyName": "Petrovici",
  "affiliation": [{
    "name": {
      "__content__": " "
    }
  }]
}]
richardhallett commented 4 years ago

@mfenner Is this parsing crossref metadata?

mfenner commented 4 years ago

Yes. The bug is about handling whitespace as the only content for affiliation name.