<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0in;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman",serif}
span.emailstyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.emailstyle18
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
span.EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Noah, Steve and Eric -- thank you for your help.  I've got the plug-in running and in search results I now have a column for "ID" ... however it only shows an ID for a Resource
 result and not with any of the archival objects.  In the Plug-in, I see this bit of code and am wondering how to have it also display the collection (resource) "identifier" for "archival object".  Our reference staff would like to be able to sort / know to
 which collection the archival objects belong without having to open each one to find that out.
<div><br>
</div>
<div>My continued thanks!   -Kari</div>
<div><br>
<div><br>
</div>
<div>
<div> <% @search_data['results'].each do |result| </div>
<div>      deleted = (params.has_key?("deleted_uri") and Array(params["deleted_uri"]).include?(result["id"])) || false</div>
<div>      # SET DISPLAY IDENTIFIER</div>
<div>      @display_identifier = ""</div>
<div>      @display_identifier = result["identifier"].html_safe if result["identifier"]</div>
<div>      @display_identifier = result["digital_object_id"].html_safe if result["digital_object_id"]</div>
<div>      @display_identifier = result["authority_id"].html_safe if result["authority_id"]</div>
<div>      if result["primary_type"] == "archival_object"</div>
<div>        json = JSON.parse(result["json"])</div>
<div>        @display_identifier = json["component_id"].html_safe if json["component_id"]</div>
<div>      end</div>
<div>    %></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF326670" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Noah Huffman [noah.huffman@duke.edu]<br>
<b>Sent:</b> Tuesday, September 13, 2016 09:02<br>
<b>To:</b> Kari R Smith<br>
<b>Subject:</b> RE: [Archivesspace_Users_Group] Adding display fields for search results - How to?<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Kari,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">As Steve and Eric mentioned, you need a comma between the last two plugin names and you should uncomment the line by removing the # from the beginning of the line.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Should look like this:</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">AppConfig[:plugins] = ['local',  'lcnaf', 'aspace-public-formats', 'aspace-search-identifier']</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">If you make those change and restart, it should work.  If not, I’m happy to troubleshoot.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">We use this plugin at Duke and it’s very useful.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Noah</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </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>Kari R Smith<br>
<b>Sent:</b> Monday, September 12, 2016 5:02 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Adding display fields for search results - How to?</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Noah,
</span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Does this snippet look like it's formatted correctly to work in the config.rb file?  I saved this to the plug-in folder and restarted ASpace but it's not taking
 (meaning, ID is not showing up in search results.)</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">#AppConfig[:plugins] = ['local',  'lcnaf', 'aspace-public-formats' 'aspace-search-identifier']  </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Thanks for your help with this</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Kari</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black">
<hr size="2" width="100%" align="center">
</span></div>
<div id="divRpF783444">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [archivesspace_users_group-bounces@lyralists.lyrasis.org] on behalf of Noah Huffman [noah.huffman@duke.edu]<br>
<b>Sent:</b> Monday, September 12, 2016 13:52<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Adding display fields for search results - How to?</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Kari,</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here is a plugin that adds an identifier column to search results in the staff interface:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lyrasis_aspace-2Dsearch-2Didentifier&d=CwMFEA&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=F0JE8U9-xhxe_nE7d7aEUi-uqfKqvYJ222bS0oz9mko&m=XzVVdhtu-NOYwHpF7t1-skr-ItWN1h9pITcz5Cbf_uE&s=DhHvT91cE0yMiKtoYywN7I2G7ilS_k2IDiDwCZnTUqA&e=" target="_blank">
https://github.com/lyrasis/aspace-search-identifier</a></span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I assume you could tweak this to have the identifier column display in the public interface as well.</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D">-Noah</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span style="color:black"></span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]
<b>On Behalf Of </b>Kari R Smith<br>
<b>Sent:</b> Monday, September 12, 2016 1:40 PM<br>
<b>To:</b> Archivesspace Users Group (<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>) <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> [Archivesspace_Users_Group] Adding display fields for search results - How to?</span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Hi,</span></p>
<p class="MsoNormal"><span style="color:black">I’m interested in hearing about any solutions for adding to the display fields for search results.  Our main interest is in having the collection ID display in addition to the Resource Type and Title (currently
 the only displayed data + last modified data).</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Thanks,</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Kari R. Smith</span></p>
<p class="MsoNormal"><span style="color:black">Digital Archivist, Institute Archives and Special Collections</span></p>
<p class="MsoNormal"><span style="color:black">Massachusetts Institute of Technology Libraries</span></p>
<p class="MsoNormal"><span style="color:black">617.253.5690   smithkr at mit.edu  
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__libraries.mit.edu_archives_&d=CwMFEA&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=F0JE8U9-xhxe_nE7d7aEUi-uqfKqvYJ222bS0oz9mko&m=XzVVdhtu-NOYwHpF7t1-skr-ItWN1h9pITcz5Cbf_uE&s=EBE7rM9t-8OTzIMav4NpIY7v4ego4g7TTFaz_c7R0Rg&e=" target="_blank">
http://libraries.mit.edu/archives/</a></span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>