[Archivesspace_Users_Group] Example EAD export plugin

Noah Huffman noah.huffman at duke.edu
Mon May 16 10:06:23 EDT 2016


Hi Brian,

Here is a plugin that makes some minor changes to the EAD exporter, specifically the way digital objects are handled in the <dao> : https://github.com/noahgh221/archivesspace-duke-plugins/blob/master/plugins/duke-ead-exporter/backend/model/duke_ead_exporter.rb

This plugin definitely works in v1.3, but I haven't tested in later versions.

The plugin modifies a portion of the ead.rb file here:  https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb
To remove the @id attribute from the <container> tag, you'd probably need to create a plugin that overrides lines 383-407 in the file above: https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb#L392
Then, maybe commenting out line 391-393 would do it?

I'm curious why you're removing the @id attributes?

-Noah

================
Noah Huffman
Archivist for Metadata, Systems, and Digital Records
David M. Rubenstein Rare Book & Manuscript Library
Duke University | 919-660-5982
http://library.duke.edu/rubenstein/

From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Brian Thomas
Sent: Friday, May 13, 2016 11:58 AM
To: archivesspace_users_group at lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Example EAD export plugin

Does anyone have an ead export modification plugin they would be willing to share?

I want to be able to remove the id="" from <container> using a plugin to programmatically strip it, rather than doing it after-the-fact. But I haven't a clue where to find the original file that dictates exports to see how it works, or structuring the plugin to change that functionality.

Thanks,

Brian Thomas
Electronic Records Specialist
Texas State Library and Archives Commission
1201 Brazos Street
Austin, TX 78701
PH: (512) 475-3374
e-mail: bthomas at tsl.texas.gov
tsl.texas.gov<http://tsl.texas.gov/>
[cid:image001.jpg at 01D029A2.37194C70]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160516/00c85e76/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5314 bytes
Desc: image001.png
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160516/00c85e76/attachment.png>


More information about the Archivesspace_Users_Group mailing list