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

URIs created from coded fields can be invalid #77

Closed wafschneider closed 6 years ago

wafschneider commented 6 years ago

Some records may have bad data in a coded field. The conversion should do some rudimentary URI-escaping to ensure that invalid URIs are not created.

Sample record: http://lx2.loc.gov:210/LCDB?query=rec.id=84726&recordSchema=marcxml&maximumRecords=1

<datafield tag="042" ind1=" " ind2=" ">
  <subfield code="a">pcc record</subfield>
</datafield>