<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">All,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">To follow up on this thread, and in case it helps anyone else, here's an example configuraiton that I just tested since I needed to implement a similar configuration and ran into a few issues the first time around:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_hide][:accession_badge] = true</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_hide][:classification_badge] = true</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p><br>
</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_repos]['repo1'] = {}</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_repos]['repo2'] = {}</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_repos]['repo1'][:hide] = {:accession_badge => false}</p>
</div>
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>AppConfig[:pui_repos]['repo2'][:hide] = {:classification_badge => false}</p>
</div>
</blockquote>
<div dir="ltr">
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
In this example, I've replaced our actual repository codes with "repo1" and "repo2" (and, as Bobbi mentions earlier, if the codes are actually something like "Repo1", you'd still need to downcast that to "repo1" in the config file).  Let's imagine that we also
 have repo3, repo4, and repo5 in this system.</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
Assuming all that, then those first two lines will hide the accession and classification badges on all 5 repository homepages in the PUI. </p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
The next 4 lines will set things up so that the repository pages for repo1 and repo2 will behave a bitt differently than repos 3-5.  In this case, repo1 will include the accession badge, but it will not have the classification badge.  And repo2 will include
 the classification badge, but it not include the accession badge.</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
John, hopefully everything worked out for you, but please let us know if not.</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<br>
</p>
<p>Mark</p>
<br>
<br>
<div style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Fox, Bobbi
 <bobbi_fox@harvard.edu><br>
<b>Sent:</b> Thursday, February 22, 2018 3:33 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Configuration question for 2.3.0</font>
<div> </div>
</div>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="color:#1F497D">Hi,</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">Replace {repo_code}  with the lowercased version of your repository code (for example, for us, the repository code for Harvard University Archives is ‘hua’)</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">You have to do it as a hash </span>
</p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">AppConfig[:pui_repos] = {'psa' => {</span><span style="color:black"> :requests_permitted_for_types => [:archival_object]} }</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="color:black">Among other things, this now creates an addressable (i.e.: no undefined method messages)
</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">AppConfig[:pui_repos][‘psa’]  that you can use for subsequent  things like hiding badges, e.g.:</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">AppConfig[:pui_repos][‘psa’] [‘hide’] = {:subject_badge => false, :agent_badge => false}</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">HTH,</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">Bobbi</span></p>
<p class="x_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="x_MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Eiszner, John W<br>
<b>Sent:</b> Thursday, February 22, 2018 3:19 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Configuration question for 2.3.0</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span style="color:black">What is the proper syntax for modifying the [:pui_repos] config statements?  The example at
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.github.io_archivesspace_user_configuring-2Darchivesspace_&d=DwMFAg&c=WO-RGvefibhHBZq3fL85hQ&r=5xWUzLrZrVLeTqs3CDoeRpPtLv1fRM04CCu4TDULrSY&m=c4y3WPxOAGVnu6okKmo2EqY0v2Y5nwTIlANMleiZ27U&s=t4kjldein2OBUkJWraW5xWJVPN8NRoVXrqxGgQjnpUQ&e=" id="LPlnk105024" previewremoved="true">
http://archivesspace.github.io/archivesspace/user/configuring-archivesspace/</a> uses an “imaginary repository code of ‘foo’”, but no actual usage of “foo” is shown.</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="color:black">AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_types] = [:archival_object] #      ...gives the syntax error “unexpected tRCURLY”</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="color:black">AppConfig[:pui_repos][‘PSA’][:requests_permitted_for_types] = [:archival_object] #      ...gives the syntax error “NoMethodError: undefined method `[]=' for nil:NilClass”    (Note: I am not a Ruby expert.)</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="color:black">It appears that the string “{repo_code}” must be replaced by a local repository code.  We have 4 repositories in our installation:  General, GA, PSA and UA.</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># Repository-specific examples.  We are using the imaginary repository code of 'foo'.  Note the lower-case</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New"">AppConfig[:pui_repos] = {}</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># Example:</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}] = {}</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_types] = [:resource, :archival_object, :accession, :digital_object, :digital_object_component] # for a particular repository,
 only enable requests for certain record types (Note this configuration will override AppConfig[:pui_requests_permitted_for_types] for the repository)</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}][:requests_permitted_for_containers_only] = true # for a particular repository ,disable request</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}][:request_email] = {email address} # the email address to send any repository requests</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}][:hide] = {}</span></p>
<p class="x_MsoNormal"><span style="font-size:10.0pt; font-family:"Courier New""># AppConfig[:pui_repos][{repo_code}][:hide][:counts] = true</span></p>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
<p class="x_MsoNormal"><span style="color:black">John Eiszner, Lead Analyst/Programmer</span></p>
<p class="x_MsoNormal"><span style="color:black">University Library</span></p>
<p class="x_MsoNormal"><span style="color:black">Indiana University-Purdue University Indianapolis (IUPUI)</span></p>
<p class="x_MsoNormal"><span style="color:black"><a href="mailto:jeiszner@iupui.edu" id="LPlnk436053" previewremoved="true"><span style="color:blue">jeiszner@iupui.edu</span></a>  317.274.0751</span></p>
<p class="x_MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>