Skip to content

Commit

Permalink
fixes #286, part 2, by not showing the Transfer specification documen…
Browse files Browse the repository at this point in the history
…t field and making sure to always add it to the mets header with the specified constant value
  • Loading branch information
chalkos committed May 10, 2017
1 parent d939dfc commit 1495d79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -142,12 +142,18 @@ private void createBottom() {
}
}

// 2017-05-10 bferreira: this is constant. see issue #286
// 2017-05-10 bferreira: these are constant. see issue #286
IPAltRecordID deliveryType = new IPAltRecordID();
deliveryType.setType("DELIVERYTYPE");
deliveryType.setValue("STRUKTÚRÁLATLAN");
header.addAltRecordID(deliveryType);

IPAltRecordID deliverySpecification = new IPAltRecordID();
deliverySpecification.setType("DELIVERYSPECIFICATION");
deliverySpecification.setValue(
"34/2016. (XI. 30.) EMMI rendelet az elektronikus formában tárolt iratok közlevéltári átvételének eljárásrendjéről és műszaki követelményeiről");
header.addAltRecordID(deliverySpecification);

if (valid) {
ConfigurationManager.serialize(header, sipType.name() + Constants.RODAIN_SERIALIZE_FILE_METS_HEADER_SUFFIX);
stage.startCreation(outputFolder, exportAll, exportItems, sipNameBuilder, createReport, header);
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/properties/config.properties
Expand Up @@ -130,7 +130,7 @@ metsheader.EARK.field.agents.attr.othertype.label = i18n.metsheader.EARK.field.a
metsheader.EARK.field.agents.attr.othertype.description = i18n.metsheader.EARK.field.agents.attr.othertype.description


metsheader.HUNGARIAN.fields = recordStatus,deliverySpecification,submissionAgreement,previousSubmissionAgreement,dataSubmissionSession,packageNumber,referenceCode,previousReferenceCode,accessRestrict,appraisal,agent1,agent2,agent3,agent4,agent5,agent6,agent7
metsheader.HUNGARIAN.fields = recordStatus,submissionAgreement,previousSubmissionAgreement,dataSubmissionSession,packageNumber,referenceCode,previousReferenceCode,accessRestrict,appraisal,agent1,agent2,agent3,agent4,agent5,agent6,agent7

metsheader.HUNGARIAN.type.recordstatus = i18n.metsheader.HUNGARIAN.type.recordstatus
metsheader.HUNGARIAN.type.altrecordid = i18n.metsheader.HUNGARIAN.type.altrecordid
Expand All @@ -156,6 +156,7 @@ metsheader.HUNGARIAN.field.deliveryType.combo = Strukturált iktatás
metsheader.HUNGARIAN.field.deliveryType.combo = Strukturált iratnyilvántartás
metsheader.HUNGARIAN.field.deliveryType.combo = Struktúrálatlan

# removed field since its value is constant, see roda-in issue #286
metsheader.HUNGARIAN.field.deliverySpecification.type = altrecordid
metsheader.HUNGARIAN.field.deliverySpecification.title = i18n.metsheader.HUNGARIAN.field.deliverySpecification.title
metsheader.HUNGARIAN.field.deliverySpecification.label = i18n.metsheader.HUNGARIAN.field.deliverySpecification.label
Expand Down

0 comments on commit 1495d79

Please sign in to comment.