Commit f29d0bb2 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

services: another go at DEICH-840

parent e650632f
......@@ -134,15 +134,13 @@ public class MARCMapper {
setUriObjectFixedValueWidth(dataField, 'h', THREE, work::addLanguage, this::languagePrefix);
if (dataField.getSubfields('h').isEmpty()) {
setUriObjectFixedValueWidth(dataField, 'a', THREE, work::addLanguage, this::languagePrefix);
if (!foundWorkLanguage) {
r.getControlFields()
r.getControlFields()
.stream()
.filter(f -> f.getTag().equals("008"))
.findFirst()
.ifPresent(s -> setUriObject(s, THIRTY_FIVE, THIRTY_SEVEN, work::addLanguage, MUL_FILTER, this::languagePrefix));
}
foundWorkLanguage = true;
}
foundWorkLanguage = true;
break;
case "082":
getSubfieldValue(dataField, 'a').ifPresent(extractClassificationAndSource(work, graphList, dataField));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment