<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Menlo-Regular;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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.pl-smi
        {mso-style-name:pl-smi;}
span.pl-k
        {mso-style-name:pl-k;}
span.pl-c1
        {mso-style-name:pl-c1;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.pl-pse
        {mso-style-name:pl-pse;}
span.pl-sre
        {mso-style-name:pl-sre;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle25
        {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="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Trying those modifications to the config.rb and the search_controller.rb files in my 2.1.2 VM test environment yielded no results, although the lyrasis plugin
 worked like a charm. I just added a core enhancement request to Jira since it does seem like something that should already exist.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks for your help everyone.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Brian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Majewski, Steven (sdm7g)<br>
<b>Sent:</b> Thursday, November 2, 2017 4:30 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Rendering identifiers in search results?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">It appears that you can also append “&display_identifier=true”  to the search results URL and hit return. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><img width="981" height="678" id="_x0033_87FF9B1-6508-4192-B6EF-18F29D9B97CF" src="cid:image001.png@01D35495.7F115920"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">But there doesn’t appear to be a way to set this in defaults or config: <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/archivesspace/archivesspace/blob/master/frontend/app/controllers/search_controller.rb#L66">https://github.com/archivesspace/archivesspace/blob/master/frontend/app/controllers/search_controller.rb#L66</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="pl-smi"><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">@display_identifier</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p class="MsoNormal"><span class="pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#D73A49;background:#FFFBDD">=</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">params[</span><span class="pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#005CC5;background:#FFFBDD">:display_identifier</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">]<o:p></o:p></span></p>
<p class="MsoNormal"><span class="pl-k"><span style="font-size:9.0pt;font-family:Consolas;color:#D73A49;background:#FFFBDD">?</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">params[</span><span class="pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#005CC5;background:#FFFBDD">:display_identifier</span></span><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:#FFFBDD">:
</span><span class="pl-c1"><span style="font-size:9.0pt;font-family:Consolas;color:#005CC5;background:#FFFBDD">false</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Perhaps those lines should be changes to use an AppConfig[] value ?  ( :frontend_search_display_identifier ? ) <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Although I would be as happy to have the default be true. ( Does anybody NOT want to see ids ?   ) <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Since extra columns for the browse pages for <span style="font-family:"Menlo-Regular","serif"">Accession, Resource and Digital Object </span>are set in user preferences<span style="font-family:"Menlo-Regular","serif"">, it would probably
 be more consistent to control it with a preference setting instead of an AppConfig setting ( but that would probably be a bit more work ). </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">BTW: Some of those functions controlling the search listing view are in the search_helper code:
<a href="https://github.com/archivesspace/archivesspace/blob/master/frontend/app/helpers/search_helper.rb">
https://github.com/archivesspace/archivesspace/blob/master/frontend/app/helpers/search_helper.rb</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">— Steve. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Nov 1, 2017, at 3:04 PM, Rush, Michael <<a href="mailto:michael.rush@yale.edu">michael.rush@yale.edu</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Brian,</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Assuming it is the staff interface you are referring to, there is a plugin available that will add identifiers to search results.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">See<span class="apple-converted-space"> </span><a href="https://github.com/lyrasis/aspace-search-identifier"><span style="color:purple">https://github.com/lyrasis/aspace-search-identifier</span></a>.
 Seems to work fine on our TEST instance, which runs 2.2, I believe.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best,</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Mike<span class="apple-converted-space"> </span></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
 [<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]<span class="apple-converted-space"> </span><b>On Behalf Of<span class="apple-converted-space"> </span></b>Brian Thomas<br>
<b>Sent:</b><span class="apple-converted-space"> </span>Wednesday, November 1, 2017 2:55 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b><span class="apple-converted-space"> </span>[Archivesspace_Users_Group] Rendering identifiers in search results?<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Does anybody have advice/examples of how to get identifiers to show up in search results?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">What I have so far is that there does not seem to be a graphical way to do this; so looking into the structure of 2.2 on github to potentially modify and add to my local
 plugin I found the file “frontend/app/views/search/_listing.html.erb”. This seems to be the file that facilitates rendering search results(?). It has a line in it that says<span class="apple-converted-space"> </span><span class="pl-pse"><span style="color:red"><%</span></span><span class="apple-converted-space"><span style="color:red"> </span></span><span class="pl-sre"><span style="color:red">add_identifier_column</span></span><span class="apple-converted-space"><span style="color:red"> </span></span><span class="pl-k"><span style="color:red">if</span></span><span class="pl-sre"><span style="color:red">show_identifier_column?</span></span><span class="apple-converted-space"><span style="color:red"> </span></span><span class="pl-pse"><span style="color:red">%>.</span></span><span class="apple-converted-space"><span style="color:red"> </span></span><span class="pl-pse">There
 is no other reference to rendering an identifier. Ideas?</span><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span class="pl-pse"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:red"> </span></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span class="pl-pse"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Thanks,</span></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Brian Thomas<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Electronic Records Specialist<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Texas State Library and Archives Commission<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">1201 Brazos Street<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Austin, TX 78701<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">PH: (512) 475-3374<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">e-mail:<span class="apple-converted-space"> </span><a href="x-msg://12/bthomas@tsl.texas.gov"><span style="color:purple">bthomas@tsl.texas.gov</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__tsl.texas.gov_&d=DwMFAg&c=cjytLXgP8ixuoHflwc-poQ&r=fWPDMLxJ1Hpw4R8oN7OV0U6P4Nt_f5o8aUkXaby3nOY&m=6tqkLMmL_DL1FBjY2qSuacgfBQmaywcZmCTKGBrtUAE&s=LDnSmLjh2HP3o2oa4JEiczaEXu_pB3SipUtx_rntpCU&e="><span style="color:purple">tsl.texas.gov</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><image001.png></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Menlo-Regular","serif"">_______________________________________________<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">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>