lcnetdev / bibframe2marc

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

incorrect L/06 value assigned to ebooks and eserials #27

Open jodiw01 opened 1 month ago

jodiw01 commented 1 month ago

When an electronic book or serial title is converted from MARC to BIBFRAME, the Work receives several rdf:types https://preprod-8288.id.loc.gov/data/bibs/23360918.bibframe_raw.rdf

<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Text"/>
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Monograph"/>
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Multimedia"/>

It appears that the bibframe2marc conversion uses the final rdf:type to set the code in L/06 https://preprod-8288.id.loc.gov/resources/instances/23360918.bf2m.xml

<marcxml:leader xml:space="preserve"> cmm a22 8c 4500</marcxml:leader>

It would be better if the program could set the code for L/06 based on the first rdf:type and ignore subsequent ones.