KBNLresearch / omSipCreator

Create ingest-ready SIPs from batches of optical media images
Apache License 2.0
7 stars 0 forks source link

Assignment of carrier-level @ORDER attribute in structMap #54

Closed bitsgalore closed 6 years ago

bitsgalore commented 6 years ago

Currently, if there is more than 1 carrierType in a SIP, numbering of carriers via the @ORDER attribute is repeated for each carrierType group. For example, for a SIP with 3 audio CDs and 2 video DVDs, we get this (note how the @ORDER attribute is reset to 1 for the first dvd-video):

<mets:div TYPE="cd-audio" ORDER="1" ADMID="digiprovMD_1 techMD_25">
</mets:div>
<mets:div TYPE="cd-audio" ORDER="2" ADMID="digiprovMD_2 techMD_45">
</mets:div>
<mets:div TYPE="cd-audio" ORDER="3" ADMID="digiprovMD_3 techMD_48">
</mets:div>
<mets:div TYPE="dvd-video" ORDER="1" ADMID="digiprovMD_4 techMD_50">
</mets:div>
<mets:div TYPE="dvd-video" ORDER="2" ADMID="digiprovMD_5 techMD_51">
</mets:div>

For a variety of reasons it might be better to continue the numbering throughout all carriers, like this:

<mets:div TYPE="cd-audio" ORDER="1" ADMID="digiprovMD_1 techMD_25">
</mets:div>
<mets:div TYPE="cd-audio" ORDER="2" ADMID="digiprovMD_2 techMD_45">
</mets:div>
<mets:div TYPE="cd-audio" ORDER="3" ADMID="digiprovMD_3 techMD_48">
</mets:div>
<mets:div TYPE="dvd-video" ORDER="4" ADMID="digiprovMD_4 techMD_50">
</mets:div>
<mets:div TYPE="dvd-video" ORDER="5" ADMID="digiprovMD_5 techMD_51">
</mets:div> 

With this change the cd-rom, cd-audio etc. directory level in the SIP can also be eliminated.

Reasons for doing this:

See also this Iromlab issue: https://github.com/KBNLresearch/iromlab/issues/66

bitsgalore commented 6 years ago

Numbering checks now adapted: https://github.com/KBNLresearch/omSipCreator/commit/3ff31e99f4aaef087e429f75e168b34823e58b4f

bitsgalore commented 6 years ago

With this change the cd-rom, cd-audio etc. directory level in the SIP can also be eliminated.

Done, all changes to release 0.7.0: https://github.com/KBNLresearch/omSipCreator/releases/tag/0.7.0