<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 15 (filtered medium)">
<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:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* 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:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F4E79;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.pl-c
{mso-style-name:pl-c;}
span.pl-c1
{mso-style-name:pl-c1;}
span.pl-k
{mso-style-name:pl-k;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle27
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Great! I’m glad to hear that worked.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As for the plugin, if you place it in the “local” plugin, to override the footer in the public interface, you’d need to create a file (like this one
<a href="https://github.com/YaleArchivesSpace/yale_pui_customizations/blob/master/public/views/shared/_footer.html.erb">
https://github.com/YaleArchivesSpace/yale_pui_customizations/blob/master/public/views/shared/_footer.html.erb</a>), and place it here:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in">plugins/local/<b>public</b>/views/shared/_footer.html.erb<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">That footer file would then override the default footer file, which is here:
<a href="https://github.com/archivesspace/archivesspace/blob/master/public/app/views/shared/_footer.html.erb">
https://github.com/archivesspace/archivesspace/blob/master/public/app/views/shared/_footer.html.erb</a>. The plugin infrastructure mirrors what you see in the core code, aside from the fact that you won’t add an “app” directory in a plugin. Anything that
goes into a directory like “plugins/local/<b>frontend</b>” would potentially impact the staff interface. It can be a bit confusing, but “frontend” in ArchivesSpace = the staff interface, whereas “public” = the public interface.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here's a really good intro to how plugins work in ArchivesSpace:
<a href="http://archivesspace.github.io/archivesspace/user/archivesspace-plug-ins/">
http://archivesspace.github.io/archivesspace/user/archivesspace-plug-ins/</a> <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></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>Steele, Henry<br>
<b>Sent:</b> Wednesday, 14 August, 2019 11:15 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] trying to remove several links in PUI<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for this very helpful information. Using your information I was able to suppress items on the top menu – I must have used the wrong entry before.
<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">And thanks for the information on the plugin for the footer. Is this something I would place in the plugins/local/frontend/views directory?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Henry Steele<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Systems Librarian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Tufts University Library Technology Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">(617)627-5239<o:p></o:p></span></p>
</div>
<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> <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">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
<b>On Behalf Of </b>Custer, Mark<br>
<b>Sent:</b> Tuesday, August 13, 2019 8:51 AM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] trying to remove several links in PUI<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Henry,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If that line is uncommented by removing the # characters, then the “Accessions” tab should (hopefully!) be removed from the navigation menu. Here’s the setting that we’re currently using for our navigation menu:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">AppConfig[:pui_hide] = {<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> repositories: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> resources: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> digital_objects: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> accessions: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> subjects: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> agents: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> classifications: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> search_tab: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> accession_badge: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> record_badge: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> container_inventory: false,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> classification_badge: true,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As for the “pui_enable_staff_link” setting, I *<b>think</b>* that setting just governs the “Staff Only” edit button that will appear in the PUI interface if a user is also logged into the corresponding ASpace staff interface in the same
browser (which is actually my favorite feature of the PUI right now <span style="font-family:"Segoe UI Emoji",sans-serif">
😊</span>). I’ve attached a screenshot that shows that looks like, to be clear.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As for the “Visit ArchivesSpace.org” link, I think that might have to be overridden in a view with a plugin? See
<a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fblob%2Fmaster%2Fpublic%2Fapp%2Fviews%2Fshared%2F_footer.html.erb&data=02%7C01%7Cmark.custer%40yale.edu%7Cb8718dacf7794ba0ec3808d720ca2e86%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C1%7C637013925064968347&sdata=ybR3jY4XF50t7O8%2Bj9tSCEK1zWFj7JxpAcY7GOIwlk8%3D&reserved=0">
https://github.com/archivesspace/archivesspace/blob/master/public/app/views/shared/_footer.html.erb</a> (it doesn’t look, to me at least, like a setting could override whether that staff link displays, but you could remove it with it with a plugin that overrides
that view with a footer of your own design). We’re back on version 2.4, so I don’t actually recall. What version of ArchivesSpace are you on?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also, in case it helps, here’s most of our config.rb settings:
<a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FYaleArchivesSpace%2Faspace-deployment%2Fblob%2Fmaster%2Fprod%2Fconfig.rb&data=02%7C01%7Cmark.custer%40yale.edu%7Cb8718dacf7794ba0ec3808d720ca2e86%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C1%7C637013925064978339&sdata=wIaTnFclogbzHqcvOO75SpN%2Fn%2FV7vZ6jfXvOuzf15h0%3D&reserved=0">
https://github.com/YaleArchivesSpace/aspace-deployment/blob/master/prod/config.rb</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">All my best,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mark<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <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>]
<b>On Behalf Of </b>Steele, Henry<br>
<b>Sent:</b> Monday, 12 August, 2019 4:18 PM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] trying to remove several links in PUI<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m also trying to remove some items from the top menu, and although by default they seem to be suppressed in the config file, they still appear.
<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">## Don't display the accession ("unprocessed material") link on the main navigation menu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">## AppConfig[:pui_hide][:accessions] = true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Henry Steele<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Systems Librarian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Tufts University Library Technology Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">(617)627-5239<o:p></o:p></span></p>
</div>
<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> <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">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
<b>On Behalf Of </b>Steele, Henry<br>
<b>Sent:</b> Monday, August 12, 2019 4:08 PM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> [Archivesspace_Users_Group] trying to remove several links in PUI<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F4E79">Good afternoon,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">I have been trying to remove several links in the PUI of our dev ArchivesSpace instance here at Tufts. I was able to remove the help link, but according to the documentation at
</span><a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchivesspace.github.io%2Farchivesspace%2Fuser%2Fconfiguring-archivesspace%2F%23AppConfig%255B%253Apui_enable_staff_link%255D&data=02%7C01%7Cmark.custer%40yale.edu%7Cb8718dacf7794ba0ec3808d720ca2e86%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C1%7C637013925064978339&sdata=Ux6hMPsxXmART9gtAb0YGWVZp%2FEoAJ3uwZom2B1WIOQ%3D&reserved=0">https://archivesspace.github.io/archivesspace/user/configuring-archivesspace/#AppConfig%5B%3Apui_enable_staff_link%5D</a>
<span style="color:#1F4E79">I should be able to suppress the link back to the staff interface with this line<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:gray;background:#FAFAF8">AppConfig[:pui_enable_staff_link] = false<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:gray;background:#FAFAF8"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">By changing the value to false as I have here, and uncommenting it. However, despite restarting the interface, this change has not taken effect. Has anyone had similar issues, or do you know if there are other
steps involved in removing this links, as well as the link to “Visit ArchivesSpace.org”?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:gray;background:#FAFAF8"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Henry Steele<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Systems Librarian<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Tufts University Library Technology Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">(617)627-5239<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>