datacite / bolognese

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

Missing affiliationIdentiifer when used with schemaURI raises an error #116

Closed richardhallett closed 3 years ago

richardhallett commented 3 years ago

Specicially the problem is within https://github.com/datacite/bolognese/blob/4d6b6e4a674fa5a020f5e5fca275cde667fbe23e/lib/bolognese/author_utils.rb#L148

Namely if the affiliationIdentifier is not supplied then it fails to conconate a nil value.

e.g.

        <creator>
            <affiliation affiliationIdentifierScheme="ROR" schemeURI="https://ror.org">Acme Inc</affiliation>
        </creator>