Skip to content

Commit

Permalink
Update label for video, use only lobid types when merging (RPB-184)
Browse files Browse the repository at this point in the history
See also RPB-250 and RPB-251
  • Loading branch information
fsteeg committed Jan 14, 2025
1 parent 90f599a commit 32b5761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,7 @@ private static JsonNode mergeRecords(JsonNode transformedJson, JsonNode lobidJso
MapType mapType = TypeFactory.defaultInstance().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> transformedMap = objectMapper.readValue(transformedJson.toString(), mapType);
Map<String, Object> lobidMap = objectMapper.readValue(lobidJson.toString(), mapType);
transformedMap.remove("type");
transformedMap.keySet().forEach(key -> {
Object transformedObject = transformedMap.get(key);
Object lobidObject = lobidMap.getOrDefault(key, new ArrayList<Object>());
Expand Down
2 changes: 1 addition & 1 deletion conf/nwbib.conf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ medium.labels={
"http://rdaregistry.info/termList/RDAMediaType/1002" : ["Mikroform","octicon octicon-versions", 4],
"http://purl.org/ontology/bibo/AudioDocument" : ["Audio","glyphicon glyphicon-headphones", 5],
"http://purl.org/ontology/bibo/AudioVisualDocument" : ["Audio-Visuell","glyphicon glyphicon-film", 6],
"http://rdaregistry.info/termList/RDAMediaType/1008" : ["Kombination","glyphicon glyphicon-asterisk", 7],
"http://rdaregistry.info/termList/RDAMediaType/1008" : ["Video","glyphicon glyphicon-asterisk", 7],
"http://purl.org/library/BrailleBook" : ["Braille","glyphicon glyphicon-eye-close", 8],
"http://purl.org/ontology/mo/Vinyl" : ["Schallplatte","glyphicon glyphicon-record", 9],
"http://id.loc.gov/vocabulary/carriers/ss" : ["Tonband", "octicon octicon-link", 10],
Expand Down

0 comments on commit 32b5761

Please sign in to comment.