<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma",sans-serif;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma",sans-serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Brian,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here is a plugin that makes some minor changes to the EAD exporter, specifically the way digital objects are handled in the <dao> :
<a href="https://github.com/noahgh221/archivesspace-duke-plugins/blob/master/plugins/duke-ead-exporter/backend/model/duke_ead_exporter.rb">
https://github.com/noahgh221/archivesspace-duke-plugins/blob/master/plugins/duke-ead-exporter/backend/model/duke_ead_exporter.rb</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This plugin definitely works in v1.3, but I haven’t tested in later versions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The plugin modifies a portion of the ead.rb file here: <a href="https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb">https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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:
<a href="https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb#L392">
https://github.com/archivesspace/archivesspace/blob/4e0b534a5673e18b63ff5e807ead82fb55556ee9/backend/app/exporters/serializers/ead.rb#L392</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Then, maybe commenting out line 391-393 would do it?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m curious why you’re removing the @id attributes?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Noah<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040">================<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040">Noah Huffman<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040">Archivist for Metadata, Systems, and Digital Records<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040">David M. Rubenstein Rare Book & Manuscript Library<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040">Duke University | 919-660-5982<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial Narrow",sans-serif;color:#404040"><a href="http://library.duke.edu/rubenstein/"><span style="color:#404040">http://library.duke.edu/rubenstein/</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Brian Thomas<br>
<b>Sent:</b> Friday, May 13, 2016 11:58 AM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Example EAD export plugin<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone have an ead export modification plugin they would be willing to share?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Brian Thomas<o:p></o:p></p>
<p class="MsoNormal">Electronic Records Specialist<o:p></o:p></p>
<p class="MsoNormal">Texas State Library and Archives Commission<o:p></o:p></p>
<p class="MsoNormal">1201 Brazos Street<o:p></o:p></p>
<p class="MsoNormal">Austin, TX 78701<o:p></o:p></p>
<p class="MsoNormal">PH: (512) 475-3374<o:p></o:p></p>
<p class="MsoNormal">e-mail: <a href="bthomas@tsl.texas.gov">bthomas@tsl.texas.gov</a><o:p></o:p></p>
<p class="MsoNormal"><a href="http://tsl.texas.gov/">tsl.texas.gov</a><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><img border="0" width="60" height="72" id="Picture_x0020_1" src="cid:image001.png@01D1AF58.09D59470" alt="cid:image001.jpg@01D029A2.37194C70"></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>