Commit b071f2b8 authored by Fischer, Tim's avatar Fischer, Tim
Browse files

Updated reference

parent 4d45e362
......@@ -30,7 +30,7 @@ public class SmartExcelSheetBundlesSetSource implements BundlesSetSource {
this.reference = "excel-" + UUID.randomUUID().toString() + "@@" + sheetName;
switch (sheetName) {
case "journal article" : dcTypeStockMetadatum = new SimpleMetadatum("dc.type.stock", "article"); break;
case "article" : dcTypeStockMetadatum = new SimpleMetadatum("dc.type.stock", "article"); break;
case "monograph" : dcTypeStockMetadatum = new SimpleMetadatum("dc.type.stock", "monograph"); break;
case "collection" : dcTypeStockMetadatum = new SimpleMetadatum("dc.type.stock", "collection"); break;
case "incollection" : dcTypeStockMetadatum = new SimpleMetadatum("dc.type.stock", "incollection"); break;
......
......@@ -78,8 +78,8 @@ public class TemplateResource {
bundlesSource.setOwner(userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).get());
bundlesSource.setBundlesSourceState(BundlesSourceState.UNPROCESSED);
bundlesSource.setType(BundlesSourceType.EXCEL_SPREADSHEET);
bundlesSource.setReference("excel-database-" + result.getId());
bundlesSource.setData("excel-database-" + result.getId());
bundlesSource.setReference(file.getName());
bundlesSource.setData(file.getName());
BundlesSource resultBundlesSource = bundlesSourceRepository.save(bundlesSource);
result.setBundlesSource(resultBundlesSource);
......
Supports Markdown
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