Commit fe3fc575 authored by marceteau's avatar marceteau
Browse files

correctif mapping IDENTIFIANT_DOC_PRODUCTEUR

parent 9c49108f
...@@ -476,24 +476,27 @@ public class Seda1ToSeda21Converter extends AbstractArchiveConverter { ...@@ -476,24 +476,27 @@ public class Seda1ToSeda21Converter extends AbstractArchiveConverter {
// Identifiant du service versant d'origine - peut être null // Identifiant du service versant d'origine - peut être null
ArchivesIDType origAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier(); // ArchivesIDType origAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier();
//
if (origAgencyId != null) // if (origAgencyId != null)
content.getOriginatingAgencyArchiveUnitIdentifier().add(origAgencyId.getValue()); // content.getOriginatingAgencyArchiveUnitIdentifier().add(origAgencyId.getValue());
String originatingAgencyBool = properties.getProperty(ORIGINATING_AGENCY_IDENTIFIER_BOOL); String originatingAgencyBool = properties.getProperty(ORIGINATING_AGENCY_IDENTIFIER_BOOL);
if (currentArchive.getTransferringAgencyArchiveIdentifier() != null) { // if (currentArchive.getTransferringAgencyArchiveIdentifier() != null) {
ArchivesIDType transferringAgencyId = currentArchive.getTransferringAgencyArchiveIdentifier(); // ArchivesIDType transferringAgencyId = currentArchive.getTransferringAgencyArchiveIdentifier();
content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue()); // content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue());
} // }
if(properties.getProperty(IDENTIFIANT_DOC_PRODUCTEUR).equalsIgnoreCase("OriginatingAgencyArchiveUnitIdentifier")) { if(properties.getProperty(IDENTIFIANT_DOC_PRODUCTEUR).equalsIgnoreCase("OriginatingAgencyArchiveUnitIdentifier")) {
ArchivesIDType transferringAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier(); ArchivesIDType transferringAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier();
content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue()); content.getOriginatingAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue());
} else if(properties.getProperty(IDENTIFIANT_DOC_PRODUCTEUR).equalsIgnoreCase("OriginatingSystemId")) { } else if(properties.getProperty(IDENTIFIANT_DOC_PRODUCTEUR).equalsIgnoreCase("OriginatingSystemId")) {
// ArchivesIDType transferringAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier(); // ArchivesIDType transferringAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier();
// content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue()); // content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue());
} else {
ArchivesIDType transferringAgencyId = currentArchive.getOriginatingAgencyArchiveIdentifier();
content.getTransferringAgencyArchiveUnitIdentifier().add(transferringAgencyId.getValue());
} }
// Nom de l'archive <name> vers <Title> // Nom de l'archive <name> vers <Title>
......
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