Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIP original name isn't always in the first dmdSec #57

Closed
ross-spencer opened this issue Sep 18, 2020 · 2 comments
Closed

AIP original name isn't always in the first dmdSec #57

ross-spencer opened this issue Sep 18, 2020 · 2 comments

Comments

@ross-spencer
Copy link
Contributor

ross-spencer commented Sep 18, 2020

We need a more sophisticated search mechanism.

Related to archivematica/Issues#1305

@ross-spencer ross-spencer self-assigned this Sep 18, 2020
@ross-spencer ross-spencer changed the title Original name isn't always in the first dmdSec AIP original name isn't always in the first dmdSec Sep 18, 2020
@ross-spencer
Copy link
Contributor Author

An example of the complexity here by documenting empty directories:

  <mets:dmdSec ID="dmdSec_1">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>e944bddb-0cc0-4005-ae30-4a5b3ee84d9f</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>%transferDirectory%objects/E1/</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_2">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>4a3773b4-1d87-4a4a-aedc-1c1f8fa585fa</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>%transferDirectory%objects/0B/E1/</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_3">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>e6db3d3e-7396-4439-82d0-e60156ca7ad5</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>empty-dirs-e6db3d3e-7396-4439-82d0-e60156ca7ad5</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_4">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>42498a16-7315-4302-ada1-51113517b923</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>%transferDirectory%objects/0A/</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_5">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>517a69ee-322a-4f93-a991-c38e78846f13</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>%transferDirectory%objects/0B/</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>

And Dataverse:

  <mets:dmdSec ID="dmdSec_1" CREATED="2020-09-15T12:19:50" STATUS="original">
    <mets:mdWrap MDTYPE="DDI">
      <mets:xmlData>
        <ddi:codebook xmlns:ddi="http://www.icpsr.umich.edu/DDI" version="2.5" xsi:schemaLocation="http://www.ddi:codebook:2_5 http://www.ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd">
          <ddi:stdyDscr>
            <ddi:citation>
              <ddi:titlStmt>
                <ddi:titl>A study of my afternoon snacks</ddi:titl>
                <ddi:IDNo agency="doi">https://doi.org/10.5072/FK2/QAWS8O</ddi:IDNo>
              </ddi:titlStmt>
              <ddi:rspStmt>
                <ddi:AuthEnty affiliation="Channel 4">Noel Fielding</ddi:AuthEnty>
                <ddi:AuthEnty affiliation="BBC">Mary Berry</ddi:AuthEnty>
                <ddi:AuthEnty affiliation="Freelance">Hollywood, Paul</ddi:AuthEnty>
              </ddi:rspStmt>
              <ddi:distStmt>
                <ddi:distrbtr>Scholars Portal Dataverse</ddi:distrbtr>
              </ddi:distStmt>
              <ddi:verStmt>
                <ddi:version date="2019-03-28T15:28:07Z" type="RELEASED">6.0</ddi:version>
              </ddi:verStmt>
            </ddi:citation>
            <ddi:dataAccs>
              <ddi:useStmt>
                <ddi:restrctn>CC0 Waiver</ddi:restrctn>
              </ddi:useStmt>
            </ddi:dataAccs>
          </ddi:stdyDscr>
        </ddi:codebook>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_2" CREATED="2020-09-15T12:19:50" STATUS="original">
    <mets:mdRef LABEL="dataset.json" xlink:href="metadata/dataset.json" MDTYPE="OTHER" LOCTYPE="OTHER" OTHERLOCTYPE="SYSTEM"/>
  </mets:dmdSec>
  <mets:dmdSec ID="dmdSec_1">
    <mets:mdWrap MDTYPE="PREMIS:OBJECT">
      <mets:xmlData>
        <premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0">
          <premis:objectIdentifier>
            <premis:objectIdentifierType>UUID</premis:objectIdentifierType>
            <premis:objectIdentifierValue>e399f3de-344f-4c63-8361-cd6e3b0093f8</premis:objectIdentifierValue>
          </premis:objectIdentifier>
          <premis:originalName>snacks-e399f3de-344f-4c63-8361-cd6e3b0093f8</premis:originalName>
        </premis:object>
      </mets:xmlData>
    </mets:mdWrap>
  </mets:dmdSec>

@peterVG
Copy link
Member

peterVG commented Feb 16, 2021

Can we close this issue after PR #59?

We still have an Epic for upstream METS-RW issues here: Issue #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants