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

Problem: The custom structmap (mets_structmap.xml) functionality of Archviematica isn't documented #451

Closed
ross-spencer opened this issue Jan 24, 2019 · 2 comments
Labels
good first issue An issue that would be easy for someone who has not worked with the codebase/docs before. IISH International Institute of Social History Type: enhancement An improvement to existing functionality.
Milestone

Comments

@ross-spencer
Copy link
Contributor

Please describe the problem you'd like to be solved.

I would like to see the ability to provide a custom structmap with an Archivematica transfer; and the ability to add one to an Archivematica SIP, documented better.

At present, looking at the pages which reference structmaps in the docs, they all seem to describe those created by the system:

Yet, it is also possible to add a logical structmap at point of ingest in its own file and it will be reflected in the Archivematica METS. As an example you can run this sampledata tranfer: https://github.com/artefactual/archivematica-sampledata/tree/master/SampleTransfers/structMapSample

There are two methods of providing a custom structmap:

  1. In a transfer, in the metadata folder.
  2. At ingest one can be added to a SIPs directory after it comes out of the backlog and before it is approved, some of that is discussed in the comments here: Problem: The purpose of 'Verify mets_structmap.xml' during ingest is not clear. #286 (comment)

Both features are verified to work.

Describe the solution you'd like to see implemented.

Describe how a user would go about providing a structmap in either scenario and the specifics of how that structmap should be configured. For example, using the FILEID to provide a filepath (at present)

    <mets:div TYPE="page" LABEL="Inside cover">
      <mets:fptr FILEID="inside_cover.jpg"/>
    </mets:div>

For ingest, we might ask a user have SFTP access to the SIPCreation/SIPsUnderConstruction folder so that they have the ability to place a structmap as required.

We can also describe the output and how that will look in the METS where the file path is replaced with the actual FILEID:

	<mets:div TYPE="page" LABEL="Inside cover">
		<mets:fptr FILEID="file-18959b8f-14c7-46ec-b97f-504a4a06e27d"/>
	</mets:div>

NB. Users should beware that initially, their own structmap will not validate as METS despite looking like METS. Our workaround to providing this capability is very much using the document as a template, and the filepaths once replaced enables the METS extract to validate correctly.

Limitations might be discussed such as only allowing for one structmap (or do we need to answer the question "can multiple structmaps be placed in the same reserved file (mets_structmap.xml) for inclusion in the AIP?")

Additional context


For Artefactual use:
Please make sure these steps are taken before moving this issue from Review to Verified in Waffle:

  • All PRs related to this issue are properly linked 👍
  • All PRs related to this issue have been merged 👍
  • Test plan for this issue has been implemented and passed 👍
  • Documentation regarding this issue has been written and it has been added to the release notes, if needed 👍
@ross-spencer ross-spencer added Type: feature New functionality. Type: documentation The issue requires documentation. good first issue An issue that would be easy for someone who has not worked with the codebase/docs before. Type: enhancement An improvement to existing functionality. and removed Type: feature New functionality. labels Jan 24, 2019
@ross-spencer ross-spencer added IISH International Institute of Social History Status: review The issue's code has been merged and is ready for testing/review. labels Mar 14, 2019
@peterVG
Copy link
Collaborator

peterVG commented Apr 15, 2019

Added initial structmap docs to 'import metadata' page in user manual. artefactual/archivematica-docs#274

@ross-spencer
Copy link
Contributor Author

Hi @peterVG I meant to say, the diff here will show the changes we need to make to the docs so folks can use the feature: artefactual/archivematica-sampledata@0b4fb32

I am tempted to modify the sample data, or make a recommendation, that for most uses, and for users to be safe in the knowledge this will work for them, they populate FILEID with something fairly benign just as a placeholder. FILE001 FILE002 but I don't want to suggest that encodes anything either. It's just the FILEID cannot be blank. And there are a lot of restrictions on the field, I document some of those here: #283

@sromkey sromkey added this to the 1.10.0 milestone May 31, 2019
@sallain sallain closed this as completed Jul 8, 2019
@sallain sallain removed the Status: review The issue's code has been merged and is ready for testing/review. label Jul 8, 2019
@sallain sallain removed the Type: documentation The issue requires documentation. label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue An issue that would be easy for someone who has not worked with the codebase/docs before. IISH International Institute of Social History Type: enhancement An improvement to existing functionality.
Projects
None yet
Development

No branches or pull requests

4 participants