Commit a5f00387 authored by Steinberg, Jan's avatar Steinberg, Jan

excel import - isbn '-' replaced, recensiondate without '.0'

parent 77df158f
......@@ -173,7 +173,7 @@ public class SmartExcelSheetBundlesSetSource implements BundlesSetSource {
case "dc.source.recensioneditor": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.source.recensiontitle": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.source.recensioncity": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.source.recensiondateissued": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.source.recensiondateissued": result = extractDcDateKindMetadatumMetadatum(metadatumKey, cell); break;
case "dc.source.recensionpublisher": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.source.recensionisbn": result = extractCleanedMetadatum(metadatumKey, cell); break;
case "dc.subject.other": result = extractCleanedMetadatum(metadatumKey, cell); break;
......@@ -293,6 +293,10 @@ public class SmartExcelSheetBundlesSetSource implements BundlesSetSource {
String rawValue = cell.toString();
if ( isNotBlank(rawValue) ) {
String sanitizedValue = removeRedundantWhitespace(rawValue);
// special treatment for isbn
if (sanitizedValue.startsWith("978")) {
sanitizedValue = sanitizedValue.replaceAll("-", "");
}
Metadatum metadatum = new SimpleMetadatum(metadatumKey, sanitizedValue);
result.add(metadatum);
}
......
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