Marc XML in METS file?

74 views
Skip to first unread message

remi.du...@gmail.com

unread,
Oct 13, 2016, 11:10:27 AM10/13/16
to archivematica
Hello!

I'm trying to put some metadata automatically inside the generated METS file from a transfer.
From this documentation: https://www.archivematica.org/en/docs/archivematica-1.4/user-manual/transfer/import-metadata/#import-metadata
it is possible to add a "metadata.csv" file that will be interprated as dublin core and automatically added to the METS file.

I use MARC as a description standard (and not dublin core), which has an XML version called MARC XML. This XML is a real tree with nested
structures, so it can hardly be transcribed in CSV. I'd like this XML file to be direcly added in the METS file in a
    <dmdSec ID="dmdSec_1"><mdWrap MDTYPE="MARCXML">

tag.


Do you know how I can achieve it?

I'm not affraid of python code, but if you can point me where I can do it, it would help me a lot.

thanks for your answers and your help :)

Justin Simpson

unread,
Oct 13, 2016, 11:59:48 AM10/13/16
to archiv...@googlegroups.com, Archivematica Tech
This method creates the xml for the dmdSec, based on metadata that has been parsed out of a metadata.csv file.  You could look at implementing a similar method, that would not have to do as much work, since you would pass in MARCXML and all you need is the mdWrap, as you mentioned.

I will point out that the archivematicaCreateMETS2.py client script is a large and somewhat unwieldy piece of code.  We have been working towards replacing it.  We created the METS Reader Writer project https://github.com/artefactual-labs/mets-reader-writer , and we have started using this in the qa/1.x branch of Archivematica.  We haven't completely replaced archivematicaCreateMETS2.py, but if you are looking to work on adding support for other metadata schemas in dmdSecs, it would be good to look at the mets reader writer project as well, as the more future proof approach.

I suggest we continue the conversation on this thread in the archivematica-tech google group, rather than the main archivematica google group, as I suspect it will become fairly technical pretty quickly.


Justin Simpson
Director of Archivematica Technical Services
www.artefactual.com
604-527-2056

--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematica+unsubscribe@googlegroups.com.
To post to this group, send email to archiv...@googlegroups.com.
Visit this group at https://groups.google.com/group/archivematica.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages