From 09fe2e016df5c59138d947e3272af51748808fdf Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 24 Sep 2018 16:57:20 -0400 Subject: [PATCH 1/3] Add several new bib mappings for identifiers Adds several new mappings for remaining identifiers not yet mapped - discovered via sierra indexing rules. None of the additions are expected to have proper identifier types (e.g. bf:Issn). They're being mapped solely so that we can extract them into the store as generic identifiers, which can then be indexed to support search. We're anticipate leaving the `type` property of the blanknodes null both 1) to differentiate them from formal identifier mappings, and 2) because assigning meaning to statements is a metadata librarian's job. https://jira.nypl.org/browse/SCC-1229?jql=parent%3DSCC-944 --- .../recap-discovery/field-mapping-bib.json | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/mappings/recap-discovery/field-mapping-bib.json b/mappings/recap-discovery/field-mapping-bib.json index 91ec34a..6a56eee 100644 --- a/mappings/recap-discovery/field-mapping-bib.json +++ b/mappings/recap-discovery/field-mapping-bib.json @@ -263,12 +263,87 @@ } ] }, + "Government Document Classification Number": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "086", + "subfields": [ "a" ] + } + ] + }, + "Government Document Classification Number (Canceled)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "086", + "subfields": [ "z" ] + } + ] + }, + "GPO Item Number": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "074", + "subfields": [ "a" ] + } + ] + }, + "GPO Item Number (Canceled)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "074", + "subfields": [ "z" ] + } + ] + }, "Identifier": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", "paths": [ { "notes": "There are many mapped identifiers" + }, + { + "notes": "Other Standard Identifier", + "marc": "024", + "subfields": [ "a" ] + }, + { + "notes": "Other Standard Identifier (Canceled)", + "marc": "024", + "subfields": [ "z" ] + }, + { + "notes": "Report No.", + "marc": "027", + "subfields": [ "a" ] + }, + { + "notes": "Report No. (Canceled)", + "marc": "027", + "subfields": [ "z" ] + }, + { + "notes": "Publisher No.", + "marc": "028", + "subfields": [ "a", "b" ] + }, + { + "notes": "System Control Number", + "marc": "035", + "subfields": [ "a" ] + }, + { + "notes": "System Control Number (Canceled)", + "marc": "035", + "subfields": [ "z" ] } ] }, @@ -282,6 +357,16 @@ } ] }, + "ISBN (Canceled/invalid)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "020", + "subfields": [ "z" ] + } + ] + }, "ISSN": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", @@ -294,6 +379,26 @@ } ] }, + "ISSN (Incorrect)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "022", + "subfields": [ "y" ] + } + ] + }, + "ISSN (Canceled)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "022", + "subfields": [ "z" ] + } + ] + }, "Issuance": { "pred": "bf:issuance", "jsonLdKey": "issuance", @@ -347,6 +452,10 @@ { "marc": "010", "subfields": [ "a" ] + }, + { + "marc": "024", + "subfields": [ "a" ] } ] }, From d18622f95b10a7da144dc91b44b7435893ab4e42 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Wed, 26 Sep 2018 14:10:33 -0400 Subject: [PATCH 2/3] Change field-mapping-bib placement of un-typed ident.s --- .../recap-discovery/field-mapping-bib.json | 115 ++++++------------ 1 file changed, 36 insertions(+), 79 deletions(-) diff --git a/mappings/recap-discovery/field-mapping-bib.json b/mappings/recap-discovery/field-mapping-bib.json index 6a56eee..b590286 100644 --- a/mappings/recap-discovery/field-mapping-bib.json +++ b/mappings/recap-discovery/field-mapping-bib.json @@ -263,60 +263,12 @@ } ] }, - "Government Document Classification Number": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ - { - "marc": "086", - "subfields": [ "a" ] - } - ] - }, - "Government Document Classification Number (Canceled)": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ - { - "marc": "086", - "subfields": [ "z" ] - } - ] - }, - "GPO Item Number": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ - { - "marc": "074", - "subfields": [ "a" ] - } - ] - }, - "GPO Item Number (Canceled)": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ - { - "marc": "074", - "subfields": [ "z" ] - } - ] - }, "Identifier": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", "paths": [ { - "notes": "There are many mapped identifiers" - }, - { - "notes": "Other Standard Identifier", - "marc": "024", - "subfields": [ "a" ] - }, - { - "notes": "Other Standard Identifier (Canceled)", + "notes": "Other Standard Identifier (LCCN?) (Canceled)", "marc": "024", "subfields": [ "z" ] }, @@ -344,58 +296,63 @@ "notes": "System Control Number (Canceled)", "marc": "035", "subfields": [ "z" ] - } - ] - }, - "ISBN": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ + }, { - "marc": "020", + "marc": "086", + "notes": "Government Document Classification Number", "subfields": [ "a" ] - } - ] - }, - "ISBN (Canceled/invalid)": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ + }, + { + "marc": "086", + "notes": "Government Document Classification Number (Canceled)", + "subfields": [ "z" ] + }, + { + "marc": "074", + "notes": "GPO Item Number", + "subfields": [ "a" ] + }, { + "marc": "074", + "notes": "GPO Item Number (Canceled)", + "subfields": [ "z" ] + }, + { + "notes": "ISBN (Canceled/invalid)", "marc": "020", "subfields": [ "z" ] - } - ] - }, - "ISSN": { - "pred": "dcterms:identifier", - "jsonLdKey": "identifier", - "paths": [ + }, { + "notes": "ISSN (Incorrect)", "marc": "022", - "subfields": [ - "a" - ] + "subfields": [ "y" ] + }, + { + "notes": "ISSN (Canceled)", + "marc": "022", + "subfields": [ "z" ] } ] }, - "ISSN (Incorrect)": { + "ISBN": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", "paths": [ { - "marc": "022", - "subfields": [ "y" ] + "marc": "020", + "subfields": [ "a" ] } ] }, - "ISSN (Canceled)": { + "ISSN": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", "paths": [ { "marc": "022", - "subfields": [ "z" ] + "subfields": [ + "a" + ] } ] }, From fc3afbc89374c0ada92aafdedc0a0a7960d74201 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Fri, 28 Sep 2018 16:36:48 -0400 Subject: [PATCH 3/3] Change "Cancelled/Invalid" identifiers to root --- .../recap-discovery/field-mapping-bib.json | 45 ++++++++++++------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/mappings/recap-discovery/field-mapping-bib.json b/mappings/recap-discovery/field-mapping-bib.json index b590286..6eca4aa 100644 --- a/mappings/recap-discovery/field-mapping-bib.json +++ b/mappings/recap-discovery/field-mapping-bib.json @@ -316,21 +316,6 @@ "marc": "074", "notes": "GPO Item Number (Canceled)", "subfields": [ "z" ] - }, - { - "notes": "ISBN (Canceled/invalid)", - "marc": "020", - "subfields": [ "z" ] - }, - { - "notes": "ISSN (Incorrect)", - "marc": "022", - "subfields": [ "y" ] - }, - { - "notes": "ISSN (Canceled)", - "marc": "022", - "subfields": [ "z" ] } ] }, @@ -344,6 +329,16 @@ } ] }, + "ISBN (Canceled/Invalid)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "020", + "subfields": [ "z" ] + } + ] + }, "ISSN": { "pred": "dcterms:identifier", "jsonLdKey": "identifier", @@ -356,6 +351,26 @@ } ] }, + "ISSN (Canceled)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "022", + "subfields": [ "z" ] + } + ] + }, + "ISSN (Incorrect)": { + "pred": "dcterms:identifier", + "jsonLdKey": "identifier", + "paths": [ + { + "marc": "022", + "subfields": [ "y" ] + } + ] + }, "Issuance": { "pred": "bf:issuance", "jsonLdKey": "issuance",