From 8ecd5f1872d091971e0324f18d74ebbea8226fff Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Fri, 31 Mar 2017 12:44:08 +0100 Subject: [PATCH] documentation now has its own descriptive metadata, some minor fixes --- .../java/org/roda/rodain/core/Constants.java | 1 + .../rodain/core/creation/BagitSipCreator.java | 1 - .../core/creation/HungarianSipCreator.java | 3 +- .../core/schema/DescriptiveMetadata.java | 15 +- .../rodain/ui/inspection/AddMetadataPane.java | 4 + .../resources/properties/config.properties | 15 +- .../resources/templates/documentation.xml.hbs | 285 ++++++++++++++++++ 7 files changed, 319 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/templates/documentation.xml.hbs diff --git a/src/main/java/org/roda/rodain/core/Constants.java b/src/main/java/org/roda/rodain/core/Constants.java index e10eda28..3df27a93 100644 --- a/src/main/java/org/roda/rodain/core/Constants.java +++ b/src/main/java/org/roda/rodain/core/Constants.java @@ -71,6 +71,7 @@ public final class Constants { public static final String CONF_K_SUFIX_TOP_LEVEL = ".topLevel"; public static final String CONF_K_SUFIX_ITEM_LEVEL = ".itemLevel"; public static final String CONF_K_SUFIX_FILE_LEVEL = ".fileLevel"; + public static final String CONF_K_SUFFIX_TAGS = ".tags"; public static final String CONF_K_SUFIX_LEVELS_ICON = "levels.icon."; // configs keys public static final String CONF_K_IGNORED_FILES = "app.ignoredFiles"; diff --git a/src/main/java/org/roda/rodain/core/creation/BagitSipCreator.java b/src/main/java/org/roda/rodain/core/creation/BagitSipCreator.java index 262089a1..ef8d1bd9 100644 --- a/src/main/java/org/roda/rodain/core/creation/BagitSipCreator.java +++ b/src/main/java/org/roda/rodain/core/creation/BagitSipCreator.java @@ -137,7 +137,6 @@ private Pair createBagit(Sip descriptionObject) { Path metadataPath = tempDir.resolve(Utils.generateRandomAndPrefixedUUID()); bagit.addDescriptiveMetadata(BagitUtils.createBagitMetadata(metadataMap, bagit.getAncestors(), metadataPath)); - currentAction = actionFinalizingSip; Path name = bagit.build(outputPath, createSipName(descriptionObject, prefix, sipNameStrategy)); createdSipsCount++; return new Pair(name, bagit); diff --git a/src/main/java/org/roda/rodain/core/creation/HungarianSipCreator.java b/src/main/java/org/roda/rodain/core/creation/HungarianSipCreator.java index 42803d39..5824c5c8 100644 --- a/src/main/java/org/roda/rodain/core/creation/HungarianSipCreator.java +++ b/src/main/java/org/roda/rodain/core/creation/HungarianSipCreator.java @@ -133,6 +133,7 @@ private Pair createHungarianSip(Sip descriptionObject) { } IPFile metadataFile = new IPFile(metadataPath); + metadataFile.setRelatedTags(descObjMetadata.getRelatedTags()); IPDescriptiveMetadata metadata = new IPDescriptiveMetadata(descObjMetadata.getId(), metadataFile, metadataType, descObjMetadata.getMetadataVersion()); @@ -186,7 +187,7 @@ private Pair createHungarianSip(Sip descriptionObject) { unsuccessful.add(descriptionObject); CreationModalProcessing.showError(descriptionObject, e); } catch (Exception e) { - LOGGER.error("Error exporting E-ARK SIP", e); + LOGGER.error("Error exporting Hungarian SIP", e); unsuccessful.add(descriptionObject); CreationModalProcessing.showError(descriptionObject, e); } diff --git a/src/main/java/org/roda/rodain/core/schema/DescriptiveMetadata.java b/src/main/java/org/roda/rodain/core/schema/DescriptiveMetadata.java index 3a24f258..e951e1d0 100644 --- a/src/main/java/org/roda/rodain/core/schema/DescriptiveMetadata.java +++ b/src/main/java/org/roda/rodain/core/schema/DescriptiveMetadata.java @@ -2,7 +2,9 @@ import java.io.IOException; import java.nio.file.Path; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; @@ -31,6 +33,7 @@ public class DescriptiveMetadata { private static final Logger LOGGER = LoggerFactory.getLogger(DescriptiveMetadata.class.getName()); private String id, content, contentEncoding, metadataType; + private List relatedTags = new ArrayList<>(); private Map additionalProperties = new HashMap<>(); private TreeSet values; private Path path; @@ -283,6 +286,15 @@ public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } + public List getRelatedTags() { + return relatedTags; + } + + public void setRelatedTags(List relatedTags) { + this.relatedTags = relatedTags; + } + + @Override public DescriptiveMetadata clone() { DescriptiveMetadata result = new DescriptiveMetadata(); result.setCreatorOption(creatorOption); @@ -294,6 +306,7 @@ public DescriptiveMetadata clone() { result.setMetadataVersion(metadataVersion); result.setMetadataType(metadataType); result.setTemplateType(templateType); + result.setRelatedTags(relatedTags); return result; } @@ -302,7 +315,7 @@ public String toString() { return "DescObjMetadata [id=" + id + ", content=" + content + ", contentEncoding=" + contentEncoding + ", metadataType=" + metadataType + ", additionalProperties=" + additionalProperties + ", values=" + values + ", path=" + path + ", loaded=" + loaded + ", creatorOption=" + creatorOption + ", metadataVersion=" - + metadataVersion + ", templateType=" + templateType + "]"; + + metadataVersion + ", templateType=" + templateType + ", relatedTags=" + relatedTags + "]"; } public void initializeValues() { diff --git a/src/main/java/org/roda/rodain/ui/inspection/AddMetadataPane.java b/src/main/java/org/roda/rodain/ui/inspection/AddMetadataPane.java index 6e91c40c..1d8adbb1 100644 --- a/src/main/java/org/roda/rodain/ui/inspection/AddMetadataPane.java +++ b/src/main/java/org/roda/rodain/ui/inspection/AddMetadataPane.java @@ -4,6 +4,7 @@ import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.roda.rodain.core.ConfigurationManager; @@ -389,9 +390,12 @@ private void addTypeAndVersionToMetadata(Pair metaType, DescriptiveMetadata meta String templateVersion = (String) metaType.getKey(); String metadataVersion = ConfigurationManager.getMetadataConfig(templateVersion + Constants.CONF_K_SUFIX_VERSION); String metadataType = ConfigurationManager.getMetadataConfig(templateVersion + Constants.CONF_K_SUFIX_TYPE); + String metadataTags = ConfigurationManager.getMetadataConfig(templateVersion + Constants.CONF_K_SUFFIX_TAGS); + List tagList = Arrays.asList(metadataTags.split(",")); metadataToAdd.setMetadataType(metadataType); metadataToAdd.setMetadataVersion(metadataVersion); metadataToAdd.setTemplateType(templateVersion); + metadataToAdd.setRelatedTags(tagList); } } diff --git a/src/main/resources/properties/config.properties b/src/main/resources/properties/config.properties index b7b88824..86341bba 100644 --- a/src/main/resources/properties/config.properties +++ b/src/main/resources/properties/config.properties @@ -12,12 +12,12 @@ idPrefix=uuid- ######################################################### # Metadata templates # ######################################################### -metadata.templates=ead2002,dc,keyvalue +metadata.templates=ead2002,dc,keyvalue,documentation ######################################################### # Metadata types # ######################################################### -metadata.types=ead2002,dc,keyvalue +metadata.types=ead2002,dc,keyvalue,documentation ######################################################### # Metadata definition # @@ -52,6 +52,17 @@ metadata.keyvalue.fileLevel = file metadata.keyvalue.aggregationLevel = series metadata.keyvalue.topLevel = fonds +metadata.documentation.template=documentation.xml.hbs +metadata.documentation.title=Documentation +metadata.documentation.tags=documentation +metadata.documentation.type=ead +metadata.documentation.version=2002 +metadata.documentation.schema=ead2002.xsd +metadata.documentation.itemLevel = item +metadata.documentation.fileLevel = file +metadata.documentation.aggregationLevel = series +metadata.documentation.topLevel = fonds + ######################################################### # Icons # ######################################################### diff --git a/src/main/resources/templates/documentation.xml.hbs b/src/main/resources/templates/documentation.xml.hbs new file mode 100644 index 00000000..c9d0d2cb --- /dev/null +++ b/src/main/resources/templates/documentation.xml.hbs @@ -0,0 +1,285 @@ +{{~field name="identityArea" hidden="true" order="10" type="separator" order="1" labeli18n="crosswalks.dissemination.html.ead.identityarea" label="{\"en\": \"Identity\", \"pt\": \"Identificação\"}"~}} +{{~field name="id" hidden="true" order="20" auto-generate="id" labeli18n="crosswalks.dissemination.html.ead.reference" label="{\"en\": \"Identifier\", \"pt\": \"Identificador\"}" xpath="/*:ead/*:archdesc/*:did/*:unitid/string()"~}} +{{~field name="level" hidden="true" order="25" type="list" value="fonds" options="[\"fonds\",\"class\",\"collection\",\"recordgrp\",\"subgrp\",\"subfonds\",\"series\",\"subseries\",\"file\",\"item\"]" optionsLabels="{\"fonds\": {\"en\":\"Fonds\", \"pt\":\"Fundo\"},\"class\": {\"en\":\"Class\", \"pt\":\"Classe\"},\"collection\": {\"en\":\"Collection\", \"pt\":\"Coleção\"},\"recordgrp\": {\"en\":\"Record group\", \"pt\":\"Grupo de registos\"},\"subgrp\": {\"en\":\"Subgroup\", \"pt\":\"Subgrupo\"},\"subfonds\": {\"en\":\"Subfonds\", \"pt\":\"Subfundo\"},\"series\": {\"en\":\"Series\", \"pt\":\"Série\"},\"subseries\": {\"en\":\"Subseries\", \"pt\":\"Subsérie\"},\"file\": {\"en\":\"File\", \"pt\":\"Documento composto\"},\"item\": {\"en\":\"Item\", \"pt\":\"Documento simples\"}}" optionsLabelI18nKeyPrefix="crosswalks.dissemination.html.ead.level" auto-generate="level" label="{\"i18n\": \"crosswalks.dissemination.html.ead.level\", \"en\": \"Description level\", \"pt\": \"Nível descritivo\"}" xpath="//*:archdesc/@level/string()" ~}} +{{~field name="otherlevel" hidden="true" order="90" labeli18n="crosswalks.dissemination.html.ead.otherlevel" label="{\"en\": \"Other level\", \"pt\": \"Outro nível\"}" xpath="/*:ead/*:archdesc/@otherlevel/string()"~}} +{{~field name="title" order="30" auto-generate='title' labeli18n="crosswalks.dissemination.html.ead.title" label="{\"en\": \"Title\", \"pt\": \"Título\"}" xpath="/*:ead/*:archdesc/*:did/*:unittitle/string()"~}} +{{~field name="dateInitial" hidden="true" order="40" type="date" label="{\"i18n\": \"crosswalks.dissemination.html.ead.initialdate\", \"en\": \"Initial date\", \"pt\": \"Data de início\"}" xpath="/*:ead/*:archdesc/*:did/*:unitdate[@label='UnitDateInitial']/@normal/string() ##%## tokenize(/*:ead/*:archdesc/*:did/*:unitdate[@label='UnitDates']/@normal/string(), \"/\")[1]"~}} +{{~field name="dateFinal" hidden="true" order="50" type="date" label="{\"i18n\": \"crosswalks.dissemination.html.ead.finaldate\", \"en\": \"Final date\", \"pt\": \"Data de fim\"}" xpath="/*:ead/*:archdesc/*:did/*:unitdate[@label='UnitDateFinal']/@normal/string() ##%## tokenize(/*:ead/*:archdesc/*:did/*:unitdate[@label='UnitDates']/@normal/string(), \"/\")[2]"~}} +{{~field name="descDate" hidden="true" order="60" type="text" label="{\"i18n\": \"crosswalks.dissemination.html.ead.unitdate\", \"en\": \"Descriptive date\", \"pt\": \"Data descritiva\"}" xpath="/*:ead/*:archdesc/*:did/*:unitdate/string()"~}} +{{~field name="countryCode" hidden="true" order="70" type="list" options="[\"AD\",\"AE\",\"AF\",\"AG\",\"AI\",\"AL\",\"AM\",\"AN\",\"AO\",\"AQ\",\"AR\",\"AS\",\"AT\",\"AU\",\"AW\",\"AX\",\"AZ\",\"BA\",\"BB\",\"BD\",\"BE\",\"BF\",\"BG\",\"BH\",\"BI\",\"BJ\",\"BM\",\"BN\",\"BO\",\"BR\",\"BS\",\"BT\",\"BV\",\"BW\",\"BY\",\"BZ\",\"CA\",\"CC\",\"CD\",\"CF\",\"CG\",\"CH\",\"CI\",\"CK\",\"CL\",\"CM\",\"CN\",\"CO\",\"CR\",\"CS\",\"CU\",\"CV\",\"CX\",\"CY\",\"CZ\",\"DE\",\"DJ\",\"DK\",\"DM\",\"DO\",\"DZ\",\"EC\",\"EE\",\"EG\",\"EH\",\"ER\",\"ES\",\"ET\",\"FI\",\"FJ\",\"FK\",\"FM\",\"FO\",\"FR\",\"GA\",\"GB\",\"GD\",\"GE\",\"GF\",\"GH\",\"GI\",\"GL\",\"GM\",\"GN\",\"GP\",\"GQ\",\"GR\",\"GS\",\"GT\",\"GU\",\"GW\",\"GY\",\"HK\",\"HM\",\"HN\",\"HR\",\"HT\",\"HU\",\"ID\",\"IE\",\"IL\",\"IN\",\"IO\",\"IQ\",\"IR\",\"IS\",\"IT\",\"JM\",\"JO\",\"JP\",\"KE\",\"KG\",\"KH\",\"KI\",\"KM\",\"KN\",\"KP\",\"KR\",\"KW\",\"KY\",\"KZ\",\"LA\",\"LB\",\"LC\",\"LI\",\"LK\",\"LR\",\"LS\",\"LT\",\"LU\",\"LV\",\"LY\",\"MA\",\"MC\",\"MD\",\"MG\",\"MH\",\"MK\",\"ML\",\"MM\",\"MN\",\"MO\",\"MP\",\"MQ\",\"MR\",\"MS\",\"MT\",\"MU\",\"MV\",\"MW\",\"MX\",\"MY\",\"MZ\",\"NA\",\"NC\",\"NE\",\"NF\",\"NG\",\"NI\",\"NL\",\"NO\",\"NP\",\"NR\",\"NU\",\"NZ\",\"OM\",\"PA\",\"PE\",\"PF\",\"PG\",\"PH\",\"PK\",\"PL\",\"PM\",\"PN\",\"PR\",\"PS\",\"PT\",\"PW\",\"PY\",\"QA\",\"RE\",\"RO\",\"RU\",\"RW\",\"SA\",\"SB\",\"SC\",\"SD\",\"SE\",\"SG\",\"SH\",\"SI\",\"SJ\",\"SK\",\"SL\",\"SM\",\"SN\",\"SO\",\"SR\",\"ST\",\"SV\",\"SY\",\"SZ\",\"TC\",\"TD\",\"TF\",\"TG\",\"TH\",\"TJ\",\"TK\",\"TL\",\"TM\",\"TN\",\"TO\",\"TR\",\"TT\",\"TV\",\"TW\",\"TZ\",\"UA\",\"UG\",\"UM\",\"US\",\"UY\",\"UZ\",\"VA\",\"VC\",\"VE\",\"VG\",\"VI\",\"VN\",\"VU\",\"WF\",\"WS\",\"YE\",\"YT\",\"ZA\",\"ZM\",\"ZW\"]" labeli18n="crosswalks.dissemination.html.ead.countrycode" label="{\"en\": \"Country code\", \"pt\": \"Código do país\"}" xpath="/*:ead/*:archdesc/*:did/*:unitid/@countrycode/string()"~}} +{{~field name="materialspec" hidden="true" order="100" type="text-area" labeli18n="crosswalks.dissemination.html.ead.materialspecification" label="{\"en\": \"Material specification\", \"pt\": \"Especificação dos materiais\"}" xpath="/*:ead/*:archdesc/*:did/*:materialspec/string()"~}} +{{~field name="origination" hidden="true" order="110" type="text-area" labeli18n="crosswalks.dissemination.html.ead.origination" label="{\"en\": \"Origination\", \"pt\": \"Origem\"}" xpath="/*:ead/*:archdesc/*:did/*:origination[not(*)]/string()"~}} + +{{~field name="abstract" order="120" type="text-area" labeli18n="crosswalks.dissemination.html.ead.abstract" label="{\"en\": \"Abstract\", \"pt\": \"Resumo\"}" xpath="/*:ead/*:archdesc/*:did/*:abstract/text()"~}} + +{{~field name="physdesc" hidden="true" order="120" type="text-area" labeli18n="crosswalks.dissemination.html.ead.physdesc" label="{\"en\": \"Physical description\", \"pt\": \"Descrição física\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/text()"~}} +{{~field name="extent" hidden="true" order="130" type="text" labeli18n="crosswalks.dissemination.html.ead.extent" label="{\"en\": \"Extent and medium\", \"pt\": \"Dimensão e suporte\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/*:extent/string()"~}}{{~field name="extent" hidden="true" order="120" type="text-area" labeli18n="crosswalks.dissemination.html.ead.physicaldescription" label="{\"en\": \"Extent and medium\", \"pt\": \"Dimensão e suporte\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/string()"~}} +{{~field name="dimensions" hidden="true" order="140" type="text" labeli18n="crosswalks.dissemination.html.ead.dimensions" label="{\"en\": \"Dimensions\", \"pt\": \"Dimensões\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/*:dimensions/string()"~}}{{~field name="extent" hidden="true" order="120" type="text-area" labeli18n="crosswalks.dissemination.html.ead.physicaldescription" label="{\"en\": \"Extent and medium\", \"pt\": \"Dimensão e suporte\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/string()"~}} +{{~field name="physfacet" hidden="true" order="150" type="text" labeli18n="crosswalks.dissemination.html.ead.physfacet" label="{\"en\": \"Appearance\", \"pt\": \"Aparência\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/*:physfacet/string()"~}}{{~field name="extent" hidden="true" order="120" type="text-area" labeli18n="crosswalks.dissemination.html.ead.physicaldescription" label="{\"en\": \"Extent and medium\", \"pt\": \"Dimensão e suporte\"}" xpath="/*:ead/*:archdesc/*:did/*:physdesc/string()"~}} +{{~field name="quote" hidden="true" order="160" type="text-area" labeli18n="crosswalks.dissemination.html.ead.quote" label="{\"en\": \"Quote\", \"pt\": \"Citação\"}" xpath="/*:ead/*:archdesc/*:prefercite/*:p/string()"~}} + +{{~field name="contextArea" hidden="true" order="170" type="separator" labeli18n="crosswalks.dissemination.html.ead.contextarea" label="{\"en\": \"Context\", \"pt\": \"Contexto\"}"~}} +{{~field name="bioghist" hidden="true" order="180" type="text-area" labeli18n="crosswalks.dissemination.html.ead.bioghist" label="{\"en\": \"Administrative and biographical history\", \"pt\": \"Bibliografia\"}" xpath="/*:ead/*:archdesc/*:did/*:origination[@label='creator']/*:name/string()"~}} +{{~field name="creator" hidden="true" order="190" labeli18n="crosswalks.dissemination.html.ead.creator" label="{\"en\": \"Name of creator(s)\", \"pt\": \"Nome do(s) autores\"}" xpath="/*:ead/*:archdesc/*:did/*:origination[@label='creator']/*:name/string()"~}} +{{~field name="producer" hidden="true" order="200" labeli18n="crosswalks.dissemination.html.ead.producer" label="{\"en\": \"Producer\", \"pt\": \"Produtor\"}" xpath="/*:ead/*:archdesc/*:did/*:origination[@label='producer']/*:name/string()"~}} +{{~field name="repositoryCode" hidden="true" order="210" labeli18n="crosswalks.dissemination.html.ead.repositorycode" label="{\"en\": \"Repository code\", \"pt\": \"Código do repositório\"}" xpath="/*:ead/*:archdesc/*:did/*:unitid/@repositorycode/string()"~}} +{{~field name="repository" hidden="true" order="220" labeli18n="crosswalks.dissemination.html.ead.repository" label="{\"en\": \"Repository\", \"pt\": \"Repositório\"}" xpath="/*:ead/*:archdesc/*:did/*:repository/*:corpname/string()"~}} +{{~field name="custodhist" hidden="true" order="230" type="text-area" labeli18n="crosswalks.dissemination.html.ead.custodialhistory" label="{\"en\": \"Custodial history\", \"pt\": \"História custodial\"}" xpath="/*:ead/*:archdesc/*:custodhist/*:p/string()"~}} +{{~field name="acqinfo" hidden="true" order="240" type="text-area" labeli18n="crosswalks.dissemination.html.ead.acquisitioninformation" label="{\"en\": \"Immediate source of acquisition or transfer\", \"pt\": \"Fonte imediata de aquisição ou transferência\"}" xpath="/*:ead/*:archdesc/*:acqinfo/*:p/string()"~}} + +{{~field name="contentArea" hidden="true" order="250" type="separator" labeli18n="crosswalks.dissemination.html.ead.contentarea" label="{\"en\": \"Content and structure\", \"pt\": \"Conteúdo e estrutura\"}"~}} +{{~field name="scopeContent" hidden="true" order="260" type="text-area" labeli18n="crosswalks.dissemination.html.ead.description" label="{\"en\": \"Scope and content\", \"pt\": \"Âmbito e conteúdo\"}" xpath="/*:ead/*:archdesc/*:scopecontent/*:p/string()"~}} +{{~field name="appraisal" hidden="true" order="270" type="text-area" labeli18n="crosswalks.dissemination.html.ead.appraisal" label="{\"en\": \"Appraisal, destruction and scheduling\", \"pt\": \"Avaliação, seleção e eliminação\"}" xpath="/*:ead/*:archdesc/*:appraisal/*:p/string()"~}} +{{~field name="accruals" hidden="true" order="280" type="text-area" labeli18n="crosswalks.dissemination.html.ead.accruals" label="{\"en\": \"Accruals\", \"pt\": \"Acréscimo\"}" xpath="/*:ead/*:archdesc/*:accruals/*:p/string()"~}} +{{~field name="systemOfArrangement" hidden="true" order="290" type="text-area" labeli18n="crosswalks.dissemination.html.ead.arrangement" label="{\"en\": \"System of arrangement\", \"pt\": \"Sistema de organização\"}" xpath="/*:ead/*:archdesc/*:arrangement/*:p/string()"~}} + +{{~field name="accessArea" hidden="true" order="300" type="separator" labeli18n="crosswalks.dissemination.html.ead.accessarea" label="{\"en\": \"Conditions of access and use\", \"pt\": \"Acesso e utilização\"}"~}} +{{~field name="phystech" hidden="true" order="310" type="text-area" labeli18n="crosswalks.dissemination.html.ead.administrativeandbiographicalhistory" label="{\"en\": \"Administrative and biographical history\", \"pt\": \"História administrativa e biográfica\"}" xpath="/*:ead/*:archdesc/*:phystech/*:p/string()"~}} +{{~field name="accessrestrict" order="320" type="text-area" labeli18n="crosswalks.dissemination.html.ead.accessrestrictions" label="{\"en\": \"Conditions governing access\", \"pt\": \"Condições de acesso\"}" xpath="/*:ead/*:archdesc/*:accessrestrict/*:p/string()"~}} +{{~field name="userestrict" hidden="true" order="330" type="text-area" labeli18n="crosswalks.dissemination.html.ead.userestrict" label="{\"en\": \"Conditions governing reproduction\", \"pt\": \"Condições de reprodução\"}" xpath="/*:ead/*:archdesc/*:userestrict/*:p/string()"~}} +{{~field name="language" hidden="true" order="340" auto-generate='language' labeli18n="crosswalks.dissemination.html.ead.languages" label="{\"en\": \"Language of material\", \"pt\": \"Idioma dos materiais\"}" xpath="/*:ead/*:archdesc/*:did/*:langmaterial/*:language/text()[normalize-space()]"~}} +{{~field name="languageScriptNotes" hidden="true" order="350" type="text-area" labeli18n="crosswalks.dissemination.html.ead.languagesMaterial" label="{\"en\": \"Language and script notes\", \"pt\": \"Idioma e escrita\"}" xpath="/*:ead/*:archdesc/*:did/*:langmaterial/text()[normalize-space()]"~}} + +{{~field name="alliedArea" hidden="true" order="360" type="separator" labeli18n="crosswalks.dissemination.html.ead.alliedarea" label="{\"en\": \"Allied materials\", \"pt\": \"Documentação associada\"}"~}} +{{~field name="originalsloc" hidden="true" order="370" type="text-area" labeli18n="crosswalks.dissemination.html.ead.originalsloc" label="{\"en\": \"Existence and location of originals\", \"pt\": \"Existência e localização de originais\"}" xpath="/*:ead/*:archdesc/*:originalsloc/*:p/string()"~}} +{{~field name="altformavail" hidden="true" order="380" type="text-area" labeli18n="crosswalks.dissemination.html.ead.altformavail" label="{\"en\": \"Existence and location of copies\", \"pt\": \"Existência e localização de cópias\"}" xpath="/*:ead/*:archdesc/*:altformavail/*:p/string()"~}} +{{~field name="relatedmaterial" hidden="true" order="390" type="text-area" labeli18n="crosswalks.dissemination.html.ead.relatedmaterials" label="{\"en\": \"Related units of description\", \"pt\": \"Unidades de descrição relacionadas\"}" xpath="/*:ead/*:archdesc/*:relatedmaterial/*:p/string()"~}} +{{~field name="bibliography" hidden="true" order="400" type="text-area" labeli18n="crosswalks.dissemination.html.ead.bibliography" label="{\"en\": \"Bibliography\", \"pt\": \"Bibliografia\"}" xpath="/*:ead/*:archdesc/*:bibliography/*:p/string()"~}} +{{~field name="otherfindaid" hidden="true" order="410" type="text-area" labeli18n="crosswalks.dissemination.html.ead.otherfindaids" label="{\"en\": \"Find aid\", \"pt\": \"Ajuda\"}" xpath="/*:ead/*:archdesc/*:otherfindaid/*:p/string()"~}} + +{{~field name="notesArea" hidden="true" order="420" type="separator" labeli18n="crosswalks.dissemination.html.ead.notesarea" label="{\"en\": \"Notes area\", \"pt\": \"Notas\"}"~}} +{{~field name="notes" hidden="true" order="430" type="text-area" labeli18n="crosswalks.dissemination.html.ead.notes" label="{\"en\": \"Notes\", \"pt\": \"Notas\"}" xpath="/*:ead/*:archdesc/*:did/*:note[@type='generalNote']/string()"~}} + +{{~field name="descriptionControlArea" hidden="true" order="440" type="separator" labeli18n="crosswalks.dissemination.html.ead.descriptioncontrolarea" label="{\"en\": \"Description control area\", \"pt\": \"Controlo da descrição\"}"~}} +{{~field name="rules" hidden="true" order="450" type="text-area" labeli18n="crosswalks.dissemination.html.ead.rules" label="{\"en\": \"Rules or conventions\", \"pt\": \"Regras ou convenções\"}" xpath="/*:ead/*:eadheader/*:profiledesc/*:descrules/string()"~}} +{{~field name="statusDescription" hidden="true" order="470" type="list" value="final" options="[\"final\",\"revised\",\"draft\"]" optionsLabels="{\"final\": {\"en\":\"Final\", \"pt\":\"Final\"},\"revised\": {\"en\":\"Revised\", \"pt\":\"Verificado\"},\"draft\": {\"en\":\"Draft\", \"pt\":\"Rascunho\"}}" optionsLabelI18nKeyPrefix="crosswalks.dissemination.html.ead.statusDescription" label="{\"en\": \"Status description\", \"pt\": \"Estado da descrição\"}" xpath="/*:ead/*:archdesc/*:odd[@type='statusDescription']/*:p/string()" ~}} + +{{~field name="levelOfDetail" hidden="true" order="480" type="list" value="minimal" options="[\"full\",\"partial\",\"minimal\"]" optionsLabels="{\"full\": {\"en\":\"Full\", \"pt\":\"Completo\"}, \"partial\": {\"en\":\"Partial\", \"pt\":\"Parcial\"}, \"minimal\": {\"en\":\"Minimal\", \"pt\":\"Mínimo\"}}" optionsLabelI18nKeyPrefix="crosswalks.dissemination.html.ead.levelOfDetail" label="{\"en\": \"Level of detail\", \"pt\": \"Nível de detalhe\"}" xpath="/*:ead/*:archdesc/*:odd[@type='levelOfDetail']/*:p/string()" ~}} +{{~field name="processDates" hidden="true" order="490" type="date" auto-generate="now" labeli18n="crosswalks.dissemination.html.ead.processdates" label="{\"en\": \"Date of creation or revision\", \"pt\": \"Data de criação ou revisão\"}" xpath="/*:ead/*:archdesc/*:processinfo/*:p/*:date/string()[normalize-space()]"~}} +{{~field name="sources" hidden="true" order="500" type="text-area" labeli18n="crosswalks.dissemination.html.ead.sources" label="{\"en\": \"Sources\", \"pt\": \"Fontes\"}" xpath="/*:ead/*:archdesc/*:did/*:note[@type='sourcesDescription']/string()"~}} +{{~field name="archivistNotes" hidden="true" order="510" type="text-area" labeli18n="crosswalks.dissemination.html.ead.archivistNotes" label="{\"en\": \"Archivist notes\", \"pt\": \"Notas do arquivista\"}" xpath="/*:ead/*:archdesc/*:processinfo/*:p/text()[normalize-space()]"~}} + + + + + + + + + + + + + + Generated by RODA version 2.0 + + {{~#if rules~}} + {{rules}} + {{~/if~}} + + + + + {{~#if title~}} + {{title}} + {{~/if~}} + {{~#ifCond "||" countryCode repositoryCode id~}} + {{id}} + {{~/ifCond~}} + {{~#if dateInitial~}} + {{~#if dateFinal~}} + {{#if descDate}}{{descDate}}{{/if}} + {{~^~}} + {{#if descDate}}{{descDate}}{{/if}} + {{~/if~}} + {{~^~}} + {{~#if dateFinal~}} + {{#if descDate}}{{descDate}}{{/if}} + {{~^~}} + {{~#if descDate~}} + {{descDate}} + {{~/if~}} + {{~/if~}} + {{~/if~}} + {{~#ifCond "||" extent physdesc dimensions physfacet~}} + + {{~#if extent~}} + {{extent}} + {{~/if~}} + {{~#if dimensions~}} + {{dimensions}} + {{~/if~}} + {{~#if physfacet~}} + {{physfacet}} + {{~/if~}} + {{~#if physdesc~}} + {{physdesc}} + {{~/if~}} + + {{~/ifCond~}} + {{~#if repository~}} + + {{repository}} + + {{~/if~}} + {{~#if language~}} + + {{language}} + {{languageScriptNotes}} + + {{~/if~}} + {{~#if sources~}} + +

{{sources}}

+
+ {{~/if~}} + {{~#if notes~}} + +

{{notes}}

+
+ {{~/if~}} + {{~#if creator~}} + + {{creator}} + + {{~/if~}} + {{~#if producer~}} + + {{producer}} + + {{~/if~}} + {{~#if materialspec~}} + {{materialspec}} + {{~/if~}} + {{~#if origination~}} + {{origination}} + {{~/if~}} + {{~#if abstract~}} + {{abstract}} + {{~/if~}} +
+ {{~#if publicationStatus~}} + +

{{publicationStatus}}

+
+ {{~/if~}} + {{~#if levelOfDetail~}} + +

{{levelOfDetail}}

+
+ {{~/if~}} + {{~#if statusDescription~}} + +

{{statusDescription}}

+
+ {{~/if~}} + {{~#if descriptionIdentifier~}} + +

{{descriptionIdentifier}}

+
+ {{~/if~}} + {{~#if institutionIdentifier~}} + +

{{institutionIdentifier}}

+
+ {{~/if~}} + {{~#if scopeContent~}} + +

{{scopeContent}}

+
+ {{~/if~}} + {{~#if systemOfArrangement~}} + +

{{systemOfArrangement}}

+
+ {{~/if~}} + {{~#ifCond "||" nameAccessPoint subjectAccessPoint placeAccessPoint~}} + + {{~#if nameAccessPoint~}} + {{nameAccessPoint}} + {{~/if~}} + {{~#if subjectAccessPoint~}} + {{subjectAccessPoint}} + {{~/if~}} + {{~#if placeAccessPoint~}} + {{placeAccessPoint}} + {{~/if~}} + + {{~/ifCond~}} + {{~#if appraisal~}} + +

{{appraisal}}

+
+ {{~/if~}} + {{~#if acqinfo~}} + +

{{acqinfo}}

+
+ {{~/if~}} + {{~#if accruals~}} + +

{{accruals}}

+
+ {{~/if~}} + {{~#if custodhist~}} + +

{{custodhist}}

+
+ {{~/if~}} + {{~#ifCond "||" processDates archivistNotes~}} + + {{~#if processDates~}}

{{processDates}}

{{~/if~}} + {{~#if archivistNotes~}}

{{archivistNotes}}

{{~/if~}} +
+ {{~/ifCond~}} + {{~#if originalsloc~}} + +

{{originalsloc}}

+
+ {{~/if~}} + {{~#if altformavail~}} + +

{{altformavail}}

+
+ {{~/if~}} + {{~#if relatedmaterial~}} + +

{{relatedmaterial}}

+
+ {{~/if~}} + {{~#if accessrestrict~}} + +

{{accessrestrict}}

+
+ {{~/if~}} + {{~#if userestrict~}} + +

{{userestrict}}

+
+ {{~/if~}} + {{~#if otherfindaid~}} + +

{{otherfindaid}}

+
+ {{~/if~}} + {{~#if phystech~}} + +

{{phystech}}

+
+ {{~/if~}} + {{~#if bibliography~}} + +

{{bibliography}}

+
+ {{~/if~}} + + + {{~#if quote~}} + +

+ {{quote}} +

+
+ {{~/if~}} +
+