lcnetdev / bibframe2marc

XSLT application to generate MARCXML from BIBFRAME RDF/XML
Creative Commons Zero v1.0 Universal
15 stars 5 forks source link

language code and label in MARC 041 #29

Open jodiw01 opened 1 month ago

jodiw01 commented 1 month ago

Using LCCN 2022472344 as the example.

The 041 field in a bibframe2marc record contains both language codes and labels. Just the codes should appear.

Original MARC:

<marcxml:datafield ind1="0" ind2=" " tag="041">
<marcxml:subfield code="a">bul</marcxml:subfield>
<marcxml:subfield code="a">ger</marcxml:subfield>
</marcxml:datafield>

Converted to BIBFRAME:

<bf:language>
<bf:Language>
<rdf:value rdf:resource="http://id.loc.gov/vocabulary/languages/bul"/>
</bf:Language>
</bf:language>
<bf:language>
<bf:Language>
<rdf:value rdf:resource="http://id.loc.gov/vocabulary/languages/ger"/>
</bf:Language>
</bf:language>

Converted to MARC:

<marcxml:datafield tag="041" ind1=" " ind2=" ">
<marcxml:subfield code="a">bul</marcxml:subfield>
<marcxml:subfield code="a">Bulgarian</marcxml:subfield>
<marcxml:subfield code="a">German</marcxml:subfield>
</marcxml:datafield>

The language labels do not appear in the BF output.