Hi Jordi, Thanks for finding this. It’s going to take some time to untangle; I’ve been trying to keep canceled IDs matched to their valid ones; didn’t see that sometimes you can/should have multiple $a’s in identifiers. I don’t think it makes sense to have multiple identifierValues in a single Identifier, so I’ll make lots of individual ones. Nate ----------------------------------------- Nate Trail LS/TECH/NDMSO LA308, Mail Stop 4402 Library of Congress Washington DC 20540 From: Jordi Pallares [mailto:[log in to unmask]] Sent: Thursday, January 08, 2015 10:17 AM To: Trail, Nate; Bibliographic Framework Transition Initiative Forum Subject: Question abot the 017 tag ( legalDeposit) using bibframe converter Hello, I use the bibframe converter downloaded this january from the bibframe.org link to convert 100.000 marc records to bibframe. I found a suspect behavior about the 017 tag conversion and I need help from you. I have serveral records with just one 017 tag with one subfield "a" and the conversor create one "<bf:legalDeposit>": Example in MARC21: <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL B. 23732-1990</subfield> </datafield> Result in bibframe instance: <bf:legalDeposit> <bf:Identifier> <bf:identifierScheme>legalDeposit</bf:identifierScheme> <bf:identifierValue>DL B. 23732-1990</bf:identifierValue> </bf:Identifier> </bf:legalDeposit> Other several records has different 017 tags with subfield "a" and the conversor create one "<bf:legalDeposit>" for each: Example in MARC21: <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL M. 22417-1975-v.1</subfield> </datafield> <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL M. 33617-1981-v.2</subfield> </datafield> Result in bibframe instance: <bf:legalDeposit> <bf:Identifier> <bf:identifierScheme>legalDeposit</bf:identifierScheme> <bf:identifierValue>DL M. 22417-1975-v.1</bf:identifierValue> </bf:Identifier> </bf:legalDeposit> <bf:legalDeposit> <bf:Identifier> <bf:identifierScheme>legalDeposit</bf:identifierScheme> <bf:identifierValue>DL M. 33617-1981-v.2</bf:identifierValue> </bf:Identifier> </bf:legalDeposit> The problems (for me and sorry if it's not a problem) are when I have several subfield "a" in the same 017 Marc21 tag: Example in MARC21: <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL B. 33336-1988</subfield> <subfield code="a">DL B. 37345-1992</subfield> <subfield code="b">Biblioteca de Catalunya</subfield> </datafield> Result in bibframe instance: <bf:legalDeposit> <bf:Identifier> <bf:identifierScheme>legalDeposit</bf:identifierScheme> <bf:identifierValue>DL B. 33336-1988</bf:identifierValue> <bf:identifierAssigner>Biblioteca de Catalunya</bf:identifierAssigner> </bf:Identifier> </bf:legalDeposit> I lost the second an all the other legal deposit informations from this record ( I have some records with 3 or 5 subfields on it) And another problem was in this records ( and I know why) when the conversor try to work with them it generate an error and don't convert the record: Example1 in MARC21: <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL B. 12185-1989 (1)</subfield> <subfield code="a">DL B. 19053-1989 (1)</subfield> <subfield code="a">DL B. 42323-1989 (1)</subfield> <subfield code="a">DL B. 12115-1990 (2)</subfield> <subfield code="a">DL B. 37831-1990</subfield> <subfield code="a">DL B. 12641-1991 (2)</subfield> <subfield code="a">DL B. 13607-1991 (3)</subfield> <subfield code="a">DL B. 22570-1991 (3)</subfield> <subfield code="a">DL B. 11237-1996 (corregit) (4)</subfield> <subfield code="b">Biblioteca de Catalunya</subfield> </datafield> bibframe converter error: /home/jordi/Lod/bibframe/temporal/URV/b10205160.xml Error on line 945 of module.MBIB-2-BIBFRAME-Shared.xqy: XPTY0004: A sequence of more than one item is not allowed as the first argument of fn:replace() ("DL B. 12185-1989 (1)", "DL B. 19053-1989 (1)", ...) at mbshared:generate-identifiers() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MBIB-2-BIBFRAME-Shared.xqy#726<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MBIB-2-BIBFRAME-Shared.xqy#726>) at mbshared:generate-instance-from260() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MBIB-2-BIBFRAME-Shared.xqy#2028<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MBIB-2-BIBFRAME-Shared.xqy#2028>) at mbshared:generate-instances() at bfdefault:generate-default-work() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#92<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MARCXMLBIB-2-BIBFRAME.xqy#92>) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported Example2 in MARC21: <datafield tag="017" ind1=" " ind2=" "> <subfield code="a">DL B. 45597-1971 (vol. 3)</subfield> <subfield code="a">DL B. 47889-1977 (vol. 5)</subfield> <subfield code="a">DL B. 43969-1990 (vol. 6)</subfield> <subfield code="a">DL B. 730-1994 (vol. 7) (corr.)</subfield> <subfield code="a">DL B. 10860-1975 (vol. 4)</subfield> <subfield code="a">DL B. 41478-1991 (vol. 2)</subfield> <subfield code="a">DL B. 41477-1990 (vol. 1)</subfield> <subfield code="a">DL B. 1699-1992 (vol. 4)</subfield> <subfield code="b">Biblioteca de Catalunya</subfield> </datafield> bibframe converter error: /home/jordi/Lod/bibframe/temporal/URV/b10814851.xml Error on line 945 of module.MBIB-2-BIBFRAME-Shared.xqy: XPTY0004: A sequence of more than one item is not allowed as the first argument of fn:replace() ("DL B. 45597-1971 (vol. 3)", "DL B. 47889-1977 (vol. 5)", ...) at mbshared:generate-identifiers() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MBIB-2-BIBFRAME-Shared.xqy#726<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MBIB-2-BIBFRAME-Shared.xqy#726>) at mbshared:generate-instance-from260() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MBIB-2-BIBFRAME-Shared.xqy#2028<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MBIB-2-BIBFRAME-Shared.xqy#2028>) at mbshared:generate-instances() at bfdefault:generate-default-work() (file:/home/jordi/Lod/bibframe/marc2bibframe-master/modules/module.MARCXMLBIB-2-BIBFRAME.xqy#92<file:///\\home\jordi\Lod\bibframe\marc2bibframe-master\modules\module.MARCXMLBIB-2-BIBFRAME.xqy#92>) at marcbib2bibframe:marcbib2bibframe() Query processing failed: Run-time errors were reported Sorry for the long mail Regards Jordi Pallarès Llorens -- Jordi Pallarès Llorens Tècnic d'Aplicacions Bib. i Documentals Àrea de Biblioteques, Documentació i Informació - CBUC Consorci de Serveis Universitaris de Catalunya (CSUC) Gran Capità, 2 (Edifici Nexus) - 08034 Barcelona T. 93 567 9806 - F. 93 205 6979 - [log in to unmask]<mailto:[log in to unmask]> www.csuc.cat<http://www.csuc.cat> - Twitter @CSUC_info - Facebook - Linkedin Subscriu-te al butlletí (www.csuc.cat/butlleti<http://www.csuc.cat/butlleti>)