lcnetdev / bibframe2marc

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

labels for multiple roles not retained #25

Open jodiw01 opened 1 month ago

jodiw01 commented 1 month ago

When an agent has multiple roles (more than one $e in MARC), bibframe2marc does not include the label for the second relator in the output.

Example, LCCN 23379763 original MARC

<marcxml:datafield ind1="1" ind2=" " tag="700">
<marcxml:subfield code="a">Erzetič, Manca,</marcxml:subfield>
<marcxml:subfield code="e">compiler,</marcxml:subfield>
<marcxml:subfield code="e">author.</marcxml:subfield>
</marcxml:datafield>

converted MARC

<marcxml:datafield tag="700" ind1="1" ind2=" ">
<marcxml:subfield code="a">Erzetič, Manca</marcxml:subfield>
<marcxml:subfield code="e">compiler</marcxml:subfield>
<marcxml:subfield code="4">http://id.loc.gov/vocabulary/relators/com</marcxml:subfield>
<marcxml:subfield code="4">http://id.loc.gov/vocabulary/relators/aut</marcxml:subfield>
<marcxml:subfield code="1">http://id.loc.gov/rwo/agents/n2024027312</marcxml:subfield>
</marcxml:datafield>

The label should be included in $e, not just the URI in $4