Skip to content

Commit

Permalink
Erratic choose construct in entity
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 18, 2021
1 parent e07854c commit ccc34fc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
22 changes: 16 additions & 6 deletions src/main/resources/alma/common/subjects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<!-- 610 CorporateBody -->
<entity name="" flushWith="610??" sameEntity="true" reset="true">
<entity name="type[]" sameEntity="true" reset="true">
<data source="610??.a">
<constant value="Concept"/>
</data>
<choose sameEntity="true" reset="true" flushWith="610??.a">
<data source="610?0.a">
<constant value="Concept"/>
</data>
<data source="610?4.a">
<constant value="Keyword"/>
</data>
</choose>
</entity>
<entity name="source" sameEntity="true" reset="true" flushWith="610??">
<data source="610?0.a" name="label">
Expand All @@ -28,9 +33,14 @@
<!-- 650 Topical Term -->
<entity name="" flushWith="650??" sameEntity="true" reset="true">
<entity name="type[]" sameEntity="true" reset="true">
<data source="650??.a">
<constant value="Concept"/>
</data>
<choose sameEntity="true" reset="true" flushWith="650??.a">
<data source="650?0.a">
<constant value="Concept"/>
</data>
<data source="650?4.a">
<constant value="Keyword"/>
</data>
</choose>
</entity>
<entity name="source" sameEntity="true" reset="true" flushWith="650??">
<data source="650?0.a" name="label">
Expand Down
12 changes: 2 additions & 10 deletions src/test/resources/alma/(DE-605)HT003176544.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-05-05T13:50:10",
"endTime" : "2021-05-18T15:59:07",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand All @@ -94,63 +94,55 @@
} ]
},
"subject" : [ {
"type" : [ "Concept" ],
"label" : "Berlin",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Bremen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Hamburg",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Nordrhein-Westfalen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Niedersachsen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Rheinland-Pfalz",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Saarland",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Schleswig-Holstein",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"type" : [ "Keyword" ],
"label" : "Hotel- und Gaststättengewerbe",
"source" : {
"label" : "Freie Verschlagwortung",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/alma/(DE-605)HT019246898.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-05-03T16:15:52",
"endTime" : "2021-05-18T15:59:08",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/alma/(DE-605)HT020202475.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-04-30T10:28:50",
"endTime" : "2021-05-18T15:59:08",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand All @@ -115,14 +115,14 @@
} ]
},
"subject" : [ {
"type" : [ "Concept" ],
"type" : [ "Keyword" ],
"label" : "Critical theory",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"type" : [ "Keyword" ],
"label" : "Electronic books",
"source" : {
"label" : "Freie Verschlagwortung",
Expand Down

0 comments on commit ccc34fc

Please sign in to comment.