Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform - $6 and item-related fields #443

Open
cspayne opened this issue Feb 16, 2024 · 6 comments
Open

Transform - $6 and item-related fields #443

cspayne opened this issue Feb 16, 2024 · 6 comments

Comments

@cspayne
Copy link
Collaborator

cspayne commented Feb 16, 2024

Currently, we mint a new item for each field that indicates the existence of an item in order to prevent wrongly assuming two items are the same (Decision I.C.1).
For fields that indicate the existence of an item and also have a $6 subfield, we know that the associated 880 field is referring to the same object as the original field, so we don't want to mint two separate items in this instance.

So each item template for a field should match on both the field and 880s with a $6 value of [field]-00. These fields will each have a unique item.
Then, if the field has a $6, match to the associated 880 field from within the template using the occurrence number, and perform the same mapping within the template so that this field is linked to the same item.

@cspayne
Copy link
Collaborator Author

cspayne commented Feb 16, 2024

@cspayne
Copy link
Collaborator Author

cspayne commented Feb 16, 2024

Test input (values just for testing):

 <marc:datafield tag="561" ind1=" " ind2=" ">
            <marc:subfield code="3">MoMA :</marc:subfield>
            <marc:subfield code="a">This publication was part of the Library of the Printed Web, a collection founded and organized by Paul Soulellis and acquired by the MoMA Library in 2016.</marc:subfield>
            <marc:subfield code="5">NNMoMA</marc:subfield>
            <marc:subfield code="6">880-01</marc:subfield>
        </marc:datafield>
        <marc:datafield tag="880" ind1=" " ind2=" ">
            <marc:subfield code="6">561-01</marc:subfield>
            <marc:subfield code="a">This is from a linked field</marc:subfield>
        </marc:datafield>
        <marc:datafield tag="880" ind1=" " ind2=" ">
            <marc:subfield code="6">561-00</marc:subfield>
            <marc:subfield code="a">This is from an unnassociated linked field</marc:subfield>
        </marc:datafield>

Test output:

<!--MARC data begins-->
   <fake:marcfield>F561 ## $3 MoMA : $a This publication was part of the Library of the Printed Web, a collection founded and organized by Paul Soulellis and acquired by the MoMA Library in 2016. $5 NNMoMA $6 880-01</fake:marcfield>
   <!--RDA data begins-->
   <rdf:Description rdf:about="http://fakeIRI2.edu/904019193ited14e551">
      <rdaid:P40001>ited14e551</rdaid:P40001><!--rdaid:P40001 = has identifier for item-->
      <rdf:type rdf:resource="http://rdaregistry.info/Elements/c/C10003"/>
      <rdaio:P40049 rdf:resource="http://fakeIRI2.edu/904019193man"/><!--rdaio:P40049 = has manifestation exemplified-->
      <rdaio:P40161 rdf:resource="http://marc2rda.edu/fake/colMan/nnmoma"/><!--rdaio:P40161 = is holding of-->
      <rdaid:P40026>This publication was part of the Library of the Printed Web, a collection founded and organized by Paul Soulellis and acquired by the MoMA Library in 2016. (Applies to: MoMA :)</rdaid:P40026><!--rdaid:P40026 = has custodial history of item-->
      <rdaid:P40026>This is from a linked field</rdaid:P40026><!--rdaid:P40026 = has custodial history of item-->
   </rdf:Description>
   <!--MARC data begins-->
   <fake:marcfield>F880 ## $6 561-00 $a This is from an unnassociated linked field</fake:marcfield>
   <!--RDA data begins-->
   <rdf:Description rdf:about="http://fakeIRI2.edu/904019193ited14e565">
      <rdaid:P40001>ited14e565</rdaid:P40001><!--rdaid:P40001 = has identifier for item-->
      <rdf:type rdf:resource="http://rdaregistry.info/Elements/c/C10003"/>
      <rdaio:P40049 rdf:resource="http://fakeIRI2.edu/904019193man"/><!--rdaio:P40049 = has manifestation exemplified-->
      <rdaid:P40026>This is from an unnassociated linked field</rdaid:P40026><!--rdaid:P40026 = has custodial history of item-->
   </rdf:Description>

@CECSpecialistI CECSpecialistI added this to To do in MARC21 to RDA-RDF Mapping via automation Feb 22, 2024
@CECSpecialistI CECSpecialistI added this to the MVP for Transformation milestone Feb 22, 2024
@CECSpecialistI
Copy link
Collaborator

Confirmed.

@CECSpecialistI CECSpecialistI moved this from To do to In Progress in MARC21 to RDA-RDF Mapping Mar 13, 2024
@cspayne
Copy link
Collaborator Author

cspayne commented Mar 13, 2024

Transformation guidance wiki has been updated.

Item templates that need to be checked and updated in code:

  • 500
  • 583
  • 585

@cspayne
Copy link
Collaborator Author

cspayne commented Mar 21, 2024

Additional question that is relevant to how the transform is coded: If a field contains both a subfield 5 and a subfield 6, will the associated 880 field also have the same subfield 5, or is it simply implied from the linked field?

i.e. if a 500 field has $5 wau and a $6 880-01, will the 880 field also have $5 wau?

cspayne added a commit that referenced this issue Mar 21, 2024
Accounting for 6s and 880s for note on item - issue #443
cspayne added a commit that referenced this issue Mar 25, 2024
accounting for $6s and working on metadata work IRIs #443
@cspayne
Copy link
Collaborator Author

cspayne commented Mar 28, 2024

Additional question that is relevant to how the transform is coded: If a field contains both a subfield 5 and a subfield 6, will the associated 880 field also have the same subfield 5, or is it simply implied from the linked field?

i.e. if a 500 field has $5 wau and a $6 880-01, will the 880 field also have $5 wau?

answer from meeting: No, the 880 may not be identical in what it holds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants