<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Awesome! Thank you for the info! I'll forward it to my colleague.<br>
<br>
Corey<br>
</div>
<div id="appendonsend"></div>
<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 Steele, Henry
<Henry.Steele@tufts.edu><br>
<b>Sent:</b> Friday, March 12, 2021 2:38 PM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Change order of items on PUI navigation bar using local plug-in override?</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Verdana}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
span.x_EmailStyle21
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><font color="BA0C2F">[EXTERNAL SENDER - PROCEED CAUTIOUSLY]</font><br>
<br>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal">I saw this message earlier and meant to reply. The way we have reordered various links, and elements of the content, is through a JS file, which I used jquery for.
</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Here’s how I moved the search bar e.g. </p>
<p class="x_MsoNormal"> </p>
<table class="x_MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse; border:none">
<tbody>
<tr>
<td width="623" valign="top" style="width:467.5pt; border:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt">
<p class="x_MsoNormal">$("<li id='search_label'><a id='search_labal_a'>Search:</a></li>").insertAfter($(".navbar-nav li:nth-child(2)"));</p>
<p class="x_MsoNormal"> </p>
</td>
</tr>
</tbody>
</table>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">What you would do is put a .js file in /plugins/local/public/assets, with the appropriate jquery to reorder elements.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">And then place a file in /plugins/local/public/views called layout_head.html.erb with the following line</p>
<p class="x_MsoNormal"><%= javascript_include_tag "#{@base_url}/assets/<b><name of JS file>.</b>js" %>
</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Incidentally, I also used the same method for our local css</p>
<p class="x_MsoNormal"> </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 <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Corey Schmidt<br>
<b>Sent:</b> Friday, March 12, 2021 2:28 PM<br>
<b>To:</b> archivesspace_users_group@lyralists.lyrasis.org<br>
<b>Subject:</b> [Archivesspace_Users_Group] Change order of items on PUI navigation bar using local plug-in override?</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Good afternoon all,<br>
<br>
I'm forwarding this message that a colleague of mine sent to the Google Group, hoping to catch more bites here. Any advice/info would be appreciated. Thanks!<br>
<br>
<br>
</span></p>
<blockquote style="border:none #C8C8C8 1.0pt; border-left:solid #C8C8C8 2.25pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-top:5.0pt; margin-bottom:5.0pt">
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">We're using ArchivesSpace 2.7.1 and have been using the local plugin overrides to customize. I've been successful in suppressing items through the config file and relabeling
using the localizations, but I can't figure out how to change the order that the links in the nav bar appear in. Anybody know how to do this? I can't seem to find the relevant file. Currently we've got a local copy of plugins\local\public\views\shared\_navigation.html.erb
that we are working with, and I see where it looks like it's constructing the nav bar and links, but I'm not sure what the underlying file is that I need to target to change it.</span></p>
</blockquote>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"><br>
My colleague suspects that control of the order of the links in the nav bar exists outside of the local plugins architecture because it's under the config folder filepath (/public/config/initializers/public_new_defaults.rb?), which the documentation on the
local plugin says isn't one that LP includes.<br>
<br>
Thanks,<br>
<br>
Corey</span></p>
<div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_Signature">
<div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; font-family:"Verdana",sans-serif; color:black">Corey Schmidt</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-family:"Verdana",sans-serif; color:#333333">ArchivesSpace Project Manager</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><span style="font-family:"Verdana",sans-serif; color:#333333">University of Georgia Special Collections Libraries</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="background:white"><i><span style="font-size:10.0pt; font-family:"Verdana",sans-serif; color:#666666">Email:</span></i><span style="font-size:10.0pt; font-family:"Verdana",sans-serif; color:#666666">
<a href="mailto:Corey.Schmidt@uga.edu">Corey.Schmidt@uga.edu</a></span><span style="font-size:12.0pt; color:black"></span></p>
</div>
</div>
</div>
</div>
<p class="x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
</div>
</div>
</body>
</html>