Commit bcb0ad4a authored by marceteau's avatar marceteau
Browse files

correctif du structureFichier

parent 2ef2008a
......@@ -320,12 +320,9 @@ public class DCToSeda21Converter extends AbstractArchiveConverter {
ArchiveUnitType archiveUnit = objectFactory.createArchiveUnitType();
DataObjectPackageType dataObjectPackage = null;
try {
dataObjectPackage = mapArchiveBlock(archiveUnit, sip);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
dataObjectPackage = mapArchiveBlock(archiveUnit, sip);
manifest.setDataObjectPackage(dataObjectPackage);
} else {
logger.error("L'archive Dublin Core ne contient pas bloc <Archive>");
......@@ -350,7 +347,10 @@ public class DCToSeda21Converter extends AbstractArchiveConverter {
e.printStackTrace();
} catch (TransformerFactoryConfigurationError e) {
e.printStackTrace();
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// On peuple avec les dataObjects, seul le chemin original est gardé
for (BinaryDataObjectTypeWithType oldBinary : binaryDataObjectWithTypeList) {
......@@ -1230,10 +1230,12 @@ public class DCToSeda21Converter extends AbstractArchiveConverter {
if(document.getStructureFichier() != null && !document.getStructureFichier().isEmpty()) {
TextTechnicalMetadataType text = objectFactory.createTextTechnicalMetadataType();
for(StructureFichier sf : document.getStructureFichier()) {
String[] structureFichier = sf.getValue().split("/");
JAXBElement<String> jaxbElementSchema = createXMLElement(structureFichier[structureFichier.length-1], "Schema");
//String[] structureFichier = sf.getValue().split("/");
//String schemaValue = structureFichier[structureFichier.length-1];
String schemaValue = sf.getValue();
JAXBElement<String> jaxbElementSchema = createXMLElement(schemaValue, "Schema");
text.getAny().add(jaxbElementSchema);
representation_information_files.add(structureFichier[structureFichier.length-1]);
representation_information_files.add(schemaValue);
}
metadata.setText(text);
}
......
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