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

Enrich isbn #1184

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/main/resources/alma/common/fields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,20 @@
</entity>
</entity>

<data source="020 .a" name="@cleanIsbn">
<isbn to="clean"/>
<unique />
</data>

<entity name="isbn[]" flushWith="record">
<data name="" source="020 .a">
<unique />
<data name="" source="@cleanIsbn">
<isbn to="isbn10"/>
</data>
<data name="" source="@cleanIsbn">
<isbn to="isbn13"/>
</data>
</entity>

<entity name="issn[]" flushWith="record">
<data name="" source="022? .a">
<replace pattern="-" with="" />
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma/(CKB)2560000000104439.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"label" : "Deutsch",
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger"
} ],
"isbn" : [ "3-642-32079-1" ],
"isbn" : [ "3642320791", "9783642320798" ],
"IdentifierDOI" : [ "10.1007/978-3-642-32079-8" ],
"edition" : [ "11th ed. 2013." ],
"publication" : [ {
Expand Down Expand Up @@ -111,7 +111,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-03-25T23:11:07",
"endTime" : "2021-04-01T16:13:11",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma/(DE-605)HT005207972.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"label" : "Deutsch",
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger"
} ],
"isbn" : [ "0256018243" ],
"isbn" : [ "0256018243", "9780256018240" ],
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT005207972",
"label" : "Culturegraph Ressource"
Expand Down Expand Up @@ -111,7 +111,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-03-24T09:26:31",
"endTime" : "2021-04-01T16:13:12",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma/(DE-605)HT017398609.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"label" : "Englisch",
"id" : "http://id.loc.gov/vocabulary/iso639-2/eng"
} ],
"isbn" : [ "9780415641043" ],
"isbn" : [ "0415641047", "9780415641043" ],
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT017398609",
"label" : "Culturegraph Ressource"
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-03-25T10:20:52",
"endTime" : "2021-04-07T09:38:37",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/alma/(DE-605)HT020202475.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"label" : "Deutsch",
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger"
} ],
"isbn" : [ "9783161546303" ],
"isbn" : [ "316154630X", "9783161546303" ],
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-HT020202475",
"label" : "Culturegraph Ressource"
Expand Down Expand Up @@ -81,7 +81,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-03-24T09:26:32",
"endTime" : "2021-04-07T09:38:37",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down