[Archivesspace_Users_Group] Example EAD export plugin
Brian Thomas
bthomas at tsl.texas.gov
Mon May 16 11:23:38 EDT 2016
Noah, thank you for the info.
For context, TSLAC participates in a cooperative called TARO (
http://www.lib.utexas.edu/taro/index.html) that gives access to finding
aids of various archives around the state. In looking at how an AS ead
export would jive with the stylesheets for the cooperative I found that
the container ids were blocking rendering of any content from that point
of the finding aid forward.
From: archivesspace_users_group-bounces at lyralists.lyrasis.org
[mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On
Behalf Of Noah Huffman
Sent: Monday, May 16, 2016 9:06 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Example EAD export plugin
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/plug
ins/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/4e0b534a5673e18b63ff
5e807ead82fb55556ee9/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/4e0b534a5673e18b63ff
5e807ead82fb55556ee9/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/
<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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160516/081dd086/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/081dd086/attachment.png>
More information about the Archivesspace_Users_Group
mailing list