You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a custom structMap is added to Archivematica it follows a logical sequence.
Current behaviour
If two structMaps exist at the time the new custom structMap is written, the new sturctMap will still be labelled structMap_2:
<mets:structMapID="structMap_1"LABEL="Archivematica default"TYPE="physical">
<mets:divLABEL="structmap_example-7d047171-79de-41f0-afb7-5d42a46784b2"TYPE="Directory"DMDID="dmdSec_1">
<mets:divLABEL="objects"TYPE="Directory">
<mets:divLABEL="README.md"TYPE="Item">
<mets:fptrFILEID="file-cf6288ab-52e8-4d9c-a284-bb30077a59a2"/>
</mets:div>
<mets:divLABEL="ferdinand_short_2017_01_27-3ba9f687-79e7-4820-b521-031ffa06ac33.wav"TYPE="Item">
<mets:fptrFILEID="file-3ba9f687-79e7-4820-b521-031ffa06ac33"/>
</mets:div>
<mets:divLABEL="ferdinand_short_2017_01_27.mp3"TYPE="Item">
<mets:fptrFILEID="file-7d71f401-5bde-46d7-a017-89a108e2b674"/>
</mets:div>
<mets:divLABEL="metadata"TYPE="Directory">
<mets:divLABEL="transfers"TYPE="Directory">
<mets:divLABEL="structmap_example-50ea1ee4-4a8b-4be2-a8d7-8641f57904e0"TYPE="Directory">
<mets:divLABEL="directory_tree.txt"TYPE="Item">
<mets:fptrFILEID="file-a027baed-5396-4ab2-9d5d-2c65ee6a007a"/>
</mets:div>
<mets:divLABEL="mets_structmap.xml"TYPE="Item">
<mets:fptrFILEID="file-3bce0cc3-0ca3-44fc-bfa3-cd7980b9635f"/>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
<mets:divLABEL="submissionDocumentation"TYPE="Directory">
<mets:divLABEL="transfer-structmap_example-50ea1ee4-4a8b-4be2-a8d7-8641f57904e0"TYPE="Directory">
<mets:divLABEL="METS.xml"TYPE="Item">
<mets:fptrFILEID="file-e260b5db-9572-40cf-9b93-88911d73b809"/>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
</mets:structMap>
<mets:structMapID="structMap_2"LABEL="Normative Directory Structure"TYPE="logical">
<mets:divLABEL="structmap_example-7d047171-79de-41f0-afb7-5d42a46784b2"TYPE="Directory">
<mets:divLABEL="objects"TYPE="Directory">
<mets:divLABEL="ferdinand_short_2017_01_27-3ba9f687-79e7-4820-b521-031ffa06ac33.wav"TYPE="Item"/>
<mets:divLABEL="README.md"TYPE="Item"/>
<mets:divLABEL="ferdinand_short_2017_01_27.mp3"TYPE="Item"/>
<mets:divLABEL="submissionDocumentation"TYPE="Directory">
<mets:divLABEL="transfer-structmap_example-50ea1ee4-4a8b-4be2-a8d7-8641f57904e0"TYPE="Directory">
<mets:divLABEL="METS.xml"TYPE="Item"/>
</mets:div>
</mets:div>
<mets:divLABEL="metadata"TYPE="Directory">
<mets:divLABEL="transfers"TYPE="Directory">
<mets:divLABEL="structmap_example-50ea1ee4-4a8b-4be2-a8d7-8641f57904e0"TYPE="Directory">
<mets:divLABEL="directory_tree.txt"TYPE="Item"/>
<mets:divLABEL="mets_structmap.xml"TYPE="Item"/>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
</mets:div>
</mets:structMap>
<mets:structMapTYPE="logical"ID="structMap_2">
<mets:divTYPE="Short Listen: Ferdinand, the Misunderstood Bull by With Good Reason"LABEL="documentary">
<mets:divTYPE="track"LABEL="Complete documentary">
<!-- File: ferdinand_short_2017_01_27.mp3 NB. The filename is designed to fit the original design of the custom structMap functionality and so it is kept as simple as possible and will validate as a xs:IDREF'.-->
<mets:fptrFILEID="file-7d71f401-5bde-46d7-a017-89a108e2b674"/>
</mets:div>
</mets:div>
</mets:structMap>
Expected behaviour
When a custom
structMap
is added to Archivematica it follows a logical sequence.Current behaviour
If two
structMaps
exist at the time the new customstructMap
is written, the newsturctMap
will still be labelledstructMap_2
:Steps to reproduce
Run the sample transfer here with document empty directories on and observe the results on the AIP has been created.
NB. Line where this is happening in
create_mets_v2.py
: https://github.com/artefactual/archivematica/blob/84661775836cf8037ad3b48feb8e02bb80335f0f/src/MCPClient/lib/clientScripts/create_mets_v2.py#L684-L685Your environment (version of Archivematica, OS version, etc)
Archivematica
qa/1.x
post release ofstable/1.9.1
.For Artefactual use:
Please make sure these steps are taken before moving this issue from Review to Verified in Waffle:
The text was updated successfully, but these errors were encountered: