<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">I had a need to look into this issue of overriding existing routes or controllers again.</div><div class="">I was trying to make repositories#index be the default landing page instead of welcome#show . </div><div class=""><br class=""></div><div class="">Adding this to plugins/local/public/routes.rb and loading those routes from plugin_init.rb appended the new route to the end of the routes. This was visible when I ran ‘rake routes’ on the public rails app. However routing takes the first match from the route table, so the default ‘welcome@show’ was what was run. </div><div class=""><br class=""></div><div class="">I haven’t yet figured out if there is any way to add a new route to the start of the routes table rather than at the end. </div><div class=""><br class=""></div><div class="">I unsuccessfully tried several different methods of overriding welcome#show.</div><div class="">During that process, I also stuck in a binding.pry breakpoint in plugins/local/public/plugin_init.rb and verified that ApplicationController is not in scope. In fact, I suspect that since it is being loaded as an initializer, the controllers may not have been loaded and defined at that point. </div><div class=""><br class=""></div><div class="">What finally worked for me was:</div><div class=""><br class=""></div><div class="">plugins/local/public/controllers/my_controller.rb:</div><div class=""><br class=""></div><div class="">class WelcomeController<br class="">  def show<br class="">    redirect_to :controller => 'repositories' , :action => 'index' <br class="">  end<br class="">end</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This did successfully override welcome#show so that going to <a href="http://localhost:3001/" class="">http://localhost:3001/</a> redirects to <a href="http://localhost:3001/repositories" class="">http://localhost:3001/repositories</a> and show the list of repositories. </div><div class=""><br class=""></div><div class="">( In this case, I’ve also overridden views/repositories/index.html.erb in the the plugin so that it also includes the search form above the repository list. ) </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">What I don’t completely understand is that if the same file is named plugins/local/public/controllers/welcome_controller.rb, it does not seem to work.  Other arbitrary names, like “x_controller.rb” for example, do work. Just not “welcome_controller.rb” . It would appear that the existing application welcome controller may keep this file from loading. I just added a binding.pry breakpoint and renamed that file and verified that it never executes when named “welcome_controller.rb” . </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">So you might try something similar. Routes or plugin_init are probably not required if you’re just extending existing controller. </div><div class="">Add a file to the plugin controller directory that redefines resource controller, but give it a name that doesn’t duplicate any existing controller file. </div><div class=""><br class=""></div><div class="">If you try to inherit from and extend an existing controller, you may be able to add a new route pointing to it, but I don’t know a way to change the existing route to point to a the new class. </div><div class=""><br class=""></div><div class="">Let us know if you find something that works!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— Steve Majewski</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 22, 2017, at 3:07 PM, Flanagan, Patrick <<a href="mailto:PJFlanagan@ship.edu" class="">PJFlanagan@ship.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">I think I just encountered that sort of issue. From public/plugin_init.rb both ResourcesController and ApplicationController don't appear to be in scope; so I can't even replace it let alone extend it. That, or I'm supposed to use require to get at the specific classes - but I haven't been able to do so. I think it's one of the intricacies of Rails that is escaping me.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Ideally, for an identifier of A/B/C/D on a given resource, I wanted the breadcrumb to link back to A - B - C - D - This Resource, a behavior that's more similar to Archon, and more useful than the default behavior of simply linking to the repository top itself, I think.<br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">~Patrick Flanagan</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class="">KLN Applications Administrator</i></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class="">Keystone Library Network Hub</i><br class=""></div></div></div></div><hr tabindex="-1" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline-block; width: 743.8125px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><div id="divRplyFwdMsg" dir="ltr" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Majewski, Steven Dennis (sdm7g) <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, December 21, 2017 4:40:29 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] Overriding/Extending the new public interface in 2.2.0</font><div class=""> </div></div><div style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><br class=""></div><div class="">I remember running into something like this where the problem was Rails lazy loading of classes.</div><div class="">The base classes were not actually defined when the plugins were loaded, so what was supposed to be additional methods extending an existing class became the entire replacement class definition. I had to add a reference to the class to force lazy loading before trying to extend the class. </div><div class="">This might be what you are running into. </div><div class="">I will look and see if I still have any notes with more details from that experiment. </div><div class=""><br class=""></div><div class="">— Steve. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 21, 2017, at 4:18 PM, Flanagan, Patrick <<a href="mailto:PJFlanagan@ship.edu" class="">PJFlanagan@ship.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" class="" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;"><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">Hi Bobbi,</div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><br class=""></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">Thank you for this! I'll give it a try this way and see if I can make some progress.<br class=""></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><br class=""></div><div id="Signature" class=""><div id="divtagdefaultwrapper" class="" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;"><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;">~Patrick Flanagan</div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><i class="">KLN Applications Administrator</i></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><i class="">Keystone Library Network Hub</i><br class=""></div></div></div></div><hr tabindex="-1" class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline-block; width: 743.8125px;"><span class="Apple-converted-space"> </span><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;"></span><span class="Apple-converted-space"> </span><div id="divRplyFwdMsg" dir="ltr" class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri, sans-serif" class="" style="font-size: 11pt;"><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span class="Apple-converted-space"> </span><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Fox, Bobbi <<a href="mailto:bobbi_fox@harvard.edu" class="">bobbi_fox@harvard.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, December 21, 2017 3:47:18 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] Overriding/Extending the new public interface in 2.2.0</font><div class=""> </div></div><div class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi, Patrick,<o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I’m having to do a lot of extending/overriding of controllers & methods in our new public interface.<o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">You are correct; you can’t just override by placing your modified controller in the path location; instead, what *<b class="">I’m</b>* doing (and I know there’s a more elegant way of doing it); is put the changes in the plugin/plugin_init.rb ,using the [class|module]_eval method on something.<o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">For instance, I’m changing what gets faceted in the Searchable concern this way in plugin_init.rb:<o:p class=""></o:p></span></div><table class="MsoNormalTable" border="0" cellpadding="0" style="margin-left: 33.75pt;"><tbody class=""><tr class=""><td class="" style="padding: 0.75pt;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Searchable.module_eval do<o:p class=""></o:p></div></td></tr><tr class=""><td class="" style="padding: 0.75pt;"></td></tr></tbody></table><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">def set_up_and_run_search(default_types = [],default_facets=[],default_search_opts={}, params={})<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">  ~ my stuff here ~~<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">end<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">            end<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p class=""> </o:p></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: 'Courier New'; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I’m adding methods to controllers in a somewhat similar way, for instance, in plugin_init.rb, I’ve got:<o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><table class="MsoNormalTable" border="0" cellpadding="0" style="margin-left: 33.75pt;"><tbody class=""><tr class=""><td class="" style="padding: 0.75pt;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"># add a digital only action to the resources controller<o:p class=""></o:p></div></td></tr><tr class=""><td class="" style="padding: 0.75pt;"></td></tr></tbody></table><p class="MsoNormal" style="margin: 0in 0in 0.0001pt 33.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;"></p><table class="MsoNormalTable" border="0" cellpadding="0" style="margin-left: 33.75pt;"><tbody class=""><tr class=""><td class="" style="padding: 0.75pt;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">class ResourcesController<span class="Apple-converted-space"> </span><o:p class=""></o:p></div></td></tr><tr class=""><td class="" style="padding: 0.75pt;"></td></tr></tbody></table><p class="MsoNormal" style="margin: 0in 0in 0.0001pt 33.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;"></p><table class="MsoNormalTable" border="0" cellpadding="0" style="margin-left: 33.75pt;"><tbody class=""><tr class=""><td class="" style="padding: 0.75pt;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">def digital_only<o:p class=""></o:p></div></td></tr><tr class=""><td class="" style="padding: 0.75pt;"></td></tr></tbody></table><p class="MsoNormal" style="margin: 0in 0in 0.0001pt 33.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;"></p><table class="MsoNormalTable" border="0" cellpadding="0" style="margin-left: 33.75pt;"><tbody class=""><tr class=""><td class="" style="padding: 0.75pt;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">uri = "/repositories/#{params[:rid]}/resources/#{params[:id]}"<o:p class=""></o:p></div></td></tr><tr class=""><td class="" style="padding: 0.75pt;"></td></tr></tbody></table><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">begin<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">~ etc. ~<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;">end<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">           end<o:p class=""></o:p></div><div class="" style="margin: 0in 0in 0.0001pt 69.75pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: 'Courier New'; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hope this helps,<o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Bobbi   </span><span class="" style="font-size: 11pt; font-family: 'Courier New'; color: rgb(31, 73, 125);"><o:p class=""></o:p></span></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p class=""> </o:p></span></div><div class=""><div class="" style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0in 0in;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b class=""><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span class="" style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Flanagan, Patrick<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, December 21, 2017 3:27 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" class="">archivesspace_users_group@lyralists.lyrasis.org</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>[Archivesspace_Users_Group] Overriding/Extending the new public interface in 2.2.0<o:p class=""></o:p></span></div></div></div><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p class=""> </o:p></div><div id="divtagdefaultwrapper" class=""><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">Hello,<o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">I'm attempting to write a plugin that will modify the way the breadcrumb trail (shown in the new public UI) is generated to include more detail. I decided to try and override one of the files in the controller part of the architecture: resources_controller.rb, since I can see the :crumb being defined there. However, either my path is wrong, or the new UI isn't utilizing it. Following the instructions here:<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__archivesspace.github.io_archivesspace_user_archivesspace-2Dplug-2Dins-2Dreadme_&d=DwMFAw&c=WO-RGvefibhHBZq3fL85hQ&r=5xWUzLrZrVLeTqs3CDoeRpPtLv1fRM04CCu4TDULrSY&m=3DmZ4KyjSuOHTC-7rfq8Dv2MTeEFEBci91sKzca-4YQ&s=is5OAKKChee55MtdTuQYDj2OwuvI8f0Y6lBLS8-ast8&e=" id="LPlnk244985" class="" style="color: purple; text-decoration: underline;">http://archivesspace.github.io/archivesspace/user/archivesspace-plug-ins-readme/</a><span class="Apple-converted-space"> </span>I've placed the file in the following directory:<o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">as220/plugins/local/public/controllers/<b class="">resources_controller.rb</b><o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><i class=""><span class="" style="font-family: Calibri, sans-serif;">( source location: /public/app/controllers/resources_controller.rb )</span></i><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""></o:p></span></div><div class=""><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">Plugin Config: AppConfig[:plugins] = ['local',  'lcnaf', 'aspace-public-formats']<o:p class=""></o:p></span></div></div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></p><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">If I'm not mistaken that document indicates that this is something that can be overridden, but I'm suspecting I can't actually override something in the controller from a plugin. <o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">The version is 2.2.0, running on Linux x64, openjdk version "1.8.0_151". Any advice would be appreciated!<o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;">Thank you,<o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif;"><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""> </o:p></span></div><div id="Signature" class=""><div id="divtagdefaultwrapper" class=""><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white;"><span class="" style="font-family: Calibri, sans-serif;">~Patrick Flanagan<o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white;"><i class=""><span class="" style="font-family: Calibri, sans-serif;">KLN Applications Administrator</span></i><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""></o:p></span></div><div class="" style="margin: 0px 0in; font-size: 12pt; font-family: 'Times New Roman', serif; background-color: white;"><i class=""><span class="" style="font-family: Calibri, sans-serif;">Keystone Library Network Hub</span></i><span class="" style="font-family: Calibri, sans-serif;"><o:p class=""></o:p></span></div></div></div></div></div></div><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">_______________________________________________</span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">Archivesspace_Users_Group mailing list</span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;"><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a></span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;"><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></span></div></blockquote></div><br class=""></div><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Archivesspace_Users_Group mailing list</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></div></blockquote></div><br class=""></body></html>