lcnetdev / marc2bibframe2

Convert MARC records to BIBFRAME2 RDF
http://www.loc.gov/bibframe/
Creative Commons Zero v1.0 Universal
88 stars 35 forks source link

ISSNs contain extra punctuation #8

Closed osma closed 7 years ago

osma commented 7 years ago

I noticed a minor issue when converting records containing ISSNs. For example, the second record from this batch of two records has a 490 field containing an ISSN:

    <marc:datafield tag="490" ind1="1" ind2=" ">
      <marc:subfield code="a">Jyväskylä studies in humanities,</marc:subfield>
      <marc:subfield code="x">1459-4323 ;</marc:subfield>
      <marc:subfield code="v">187</marc:subfield>
    </marc:datafield>

The ISSN gets converted into this BIBFRAME2 RDF/XML:

        <bf:identifiedBy>
          <bf:Issn>
            <rdf:value>1459-4323 ;</rdf:value>
          </bf:Issn>
        </bf:identifiedBy>

Notice that the rdf:value still contains the space and semicolon. I would expect these to be stripped as they are not really part of the ISSN code.