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

351 repeatability issues #239

Open kirkhess opened 6 months ago

kirkhess commented 6 months ago

https://github.com/lcnetdev/marc2bibframe2/blob/cdff84cf049834bb6f9035a773b1b8a9d4935e41/xsl/ConvSpec-3XX.xsl#L257-L301

https://www.oclc.org/bibformats/en/3xx/351.html

Subfield $c is not repeatable so you don't need the code to repeat it in the xslt.

Subfield $a and $b are grouped together. They way it does it now is you have a CollectionArrangement with $c, all the $a and all the $b. When it goes back to MARC it is going to group them the same way, all the a together and all the b together.

Exmaple ocn 10227986: `

Organized in five series:
      <subfield code="c">Series I. Minutes and correspondence, 1936-1942,</subfield>
      <subfield code="b">alphabetical and chronological arrangement;</subfield>
      <subfield code="a">Series II. Correspondence re protection of the corporate name of the Presbyterian Church in the U.S.A., 1936-1940,</subfield>
      <subfield code="b">chronological arrangement;</subfield>
      <subfield code="a">Series III. Correspondence with other judicatories, 1936-1942,</subfield>
      <subfield code="b">arranged alphabetically by correspondent within category (synods, presbyteries, local churches);</subfield>
      <subfield code="a">Series IV. Correspondence, Auburn Theological Seminary,</subfield>
      <subfield code="b">arranged chronologically;</subfield>
      <subfield code="a">Series V. Miscellaneous.</subfield>
</datafield>`

m2bf version: `

Series I. Minutes and correspondence, 1936-1942 Organized in five series Series II. Correspondence re protection of the corporate name of the Presbyterian Church in the U.S.A., 1936-1940 Series III. Correspondence with other judicatories, 1936-1942 Series IV. Correspondence, Auburn Theological Seminary Series V. Miscellaneous alphabetical and chronological arrangement chronological arrangement arranged alphabetically by correspondent within category (synods, presbyteries, local churches) arranged chronologically ` bf2m version: ` Series I. Minutes and correspondence, 1936-1942 Series III. Correspondence with other judicatories, 1936-1942 Organized in five series Series IV. Correspondence, Auburn Theological Seminary Series V. Miscellaneous Series II. Correspondence re protection of the corporate name of the Presbyterian Church in the U.S.A., 1936-1940 arranged alphabetically by correspondent within category (synods, presbyteries, local churches) alphabetical and chronological arrangement chronological arrangement arranged chronologically ` Finally, you could fix this specific field, but there are a bunch of 3xx and 5xx that have this pattern where the subfields repeat.