<div dir="ltr">Hi Megan,<div><br></div><div>We noticed a similar issue with our <indexentry> elements being split into separate index items when importing from EAD. The reason seems to be with this block of code in the EAD Converter:</div><div><br></div><div><a href="https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/ead_converter.rb#L273-305" target="_blank">https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/ead_converter.rb#L273-305</a><br></div><div><br></div><div>This imports <persname>, <corpname>, etc. elements from within each <indexentry> element as one index item, and each <ref> element as a separate item.</div><div><br></div><div>We put together this plugin that imports each <indexentry> element as one index item, with the Value, Type, and Reference Text as you described:</div><div><br></div><div><a href="https://github.com/bentley-historical-library/bhl-ead-importer/blob/master/backend/model/bhl_ead_converter.rb#L38-121" target="_blank">https://github.com/bentley-historical-library/bhl-ead-importer/blob/master/backend/model/bhl_ead_converter.rb#L38-121</a><br></div><div><br></div><div>We've only tried it out with a few EADs so it might not work 100% of the time, but we've had some preliminary success with it so far. It might be worth a shot!</div><div><br></div><div>Dallas</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 4:07 AM, Megan Williams <span dir="ltr"><<a href="mailto:MWILLIAM@nla.gov.au" target="_blank">MWILLIAM@nla.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Segoe UI"><span style="font-size:10pt">
<div>We have many EAD finding aids that we’re intending to import into ArchivesSpace.  Generally this is working very well, except for any finding aids that have an <index> element, e.g.:</div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><index></div>
<div><indexentry></div>
<div>  <persname>DEGARIS, Leo</persname><ref>emph render="underline">1/9459</emph></ref></div>
<div></indexentry></div>
<div><indexentry></div>
<div>  <persname>DELMONT, S.R.</persname><ref>1/2369, <emph render="underline">1/2370</emph>, 4/22</ref></div>
<div></indexentry></div>
<div></index></div>
<div> </div>
<div>When we import this data into ArchivesSpace, we’re expecting that each <indexentry> element will translate into an Index note entry containing a Value (derived from the name element content), Type (derived from the type of name element) and Reference Text
(derived from the <ref> element content).  Instead, we’re finding that each <indexentry> element is being split into two separate entries, one with the name element content and type in the Value and Type fields respectively, followed by one with the <ref> content
repeated in the Value and Reference Text fields.</div>
<div> </div>
<div>For example, the encoded data given above was imported as:</div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"><img src="cid:E578C9D0D62873408378A4B9E2C539A2@shire.nla.gov.au"><font face="Calibri"> </font></span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div>Instead of:</div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"><img src="cid:30C84FDAF98F0B408FC13C078CF271D2@shire.nla.gov.au"><font face="Calibri"> </font></span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div>I’m not sure if this is a known issue (forgive me if it’s been raised before) – but we’d appreciate any advice/assistance!</div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div>With thanks,</div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div>Megan</div><span class="HOEnZb"><font color="#888888">
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><font face="Calibri" color="#A6A6A6"><span style="font-size:9pt"><b>Megan Williams</b><font color="#31849B"> </font><font color="#31849B"><b>|</b></font><font color="#31849B"> </font><font color="gray">A/g Assistant Curator </font><font color="#31849B"><b>|</b></font><font color="#31849B">
</font><font color="gray">Pictures & Manuscripts Branch</font><font color="#31849B"> </font><font color="#31849B"><b>|</b></font><font color="#3366FF"> </font><font color="gray">National Library of Australia</font><font color="#31849B"><b> |</b></font><font color="#3366FF">
</font><font color="gray">Canberra ACT 2600</font></span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
<div><font face="Times New Roman"><span style="font-size:11pt"> </span></font></div>
</font></span></span></font>
</div>

<br>_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8000001907349px"><b>Dallas Pillen<br></b>Project Archivist<b><br></b></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><img src="https://webapps.lsa.umich.edu/dean/lsa_emails/bentley-sig-em.png" height="40" width="351"><br></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1">  <a href="http://bentley.umich.edu/" style="color:rgb(17,85,204)" target="_blank">Bentley Historical Library</a></font></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1">  1150 Beal Avenue</font></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1">  Ann Arbor, Michigan 48109-2113</font><span style="font-size:x-small"> </span></div><div style="font-size:12.8000001907349px"><a value="+17347643482" style="font-size:x-small"><font color="#000000">  </font></a><a value="+17347643482" style="color:rgb(34,34,34);font-size:x-small">734.647.3559</a></div><div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1">  <a href="https://twitter.com/umichBentley" style="color:rgb(17,85,204)" target="_blank">Twitter</a> <a href="https://www.facebook.com/bentleyhistoricallibrary" style="color:rgb(17,85,204)" target="_blank">Facebook </a></font></div></div></div></div></div></div>
</div>