[Archivesspace_Users_Group] Customizing Staff Side logo

Nick Butler npwb2 at cam.ac.uk
Thu Oct 31 10:44:33 EDT 2019


Hi Jerry,

You need the path starting from the /assets folder. Try changing "archivesspace/Mitre_Corp_Logo_small.png" to "/assets/images/Mitre_Corp_Logo_small.png". That works for us, at least.

Best wishes,
Nick

-----Original Message-----
From: "Boggio, Jerry" <gboggio at mitre.org<mailto:%22Boggio,%20Jerry%22%20%3cgboggio at mitre.org%3e>>
Reply-To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:Archivesspace%20Users%20Group%20%3carchivesspace_users_group at lyralists.lyrasis.org%3e>>
To: archivesspace_users_group at lyralists.lyrasis.org <archivesspace_users_group at lyralists.lyrasis.org<mailto:%22archivesspace_users_group at lyralists.lyrasis.org%22%20%3carchivesspace_users_group at lyralists.lyrasis.org%3e>>
CC: "Sutherland, Bryan" <bsutherland at mitre.org<mailto:%22Sutherland,%20Bryan%22%20%3cbsutherland at mitre.org%3e>>, "Boggio, Jerry" <gboggio at mitre.org<mailto:%22Boggio,%20Jerry%22%20%3cgboggio at mitre.org%3e>>
Subject: [Archivesspace_Users_Group] Customizing Staff Side logo
Date: Thu, 31 Oct 2019 14:37:04 +0000

We are looking for help as to where to place our logo file for use on the Staff page. We followed the directions below, but our logo is not being found. We are able to use the logo on the Public page and are running ArchivesSpace version 2.6.

There appears to be a typo in the following page http://archivesspace.github.io/archivesspace/user/theming-archivesspace/#Making-small-changes:


The Staff Side logo will need a small plugin file and cannot be set in your config.rb file. This needs to be changed in the plugins/local/frontend/views/site/_branding.html.erb file. You’ll most likely need to create one or more of the directories. Then create that _branding.html.erb file and paste in the following code:



<div class="container-fluid navbar-branding">
  <%= image_tag "archivesspace/archivesspace.small.png", :class=>"img-responsive" %>
</div>



Change the "archivesspace/archivesspace.small.png" to the path to your image /assets/images/logo.png and place your login the plugins/local/frontend/assets/images/ directory. You’ll most likely need to create one or more of the directories.

Note: the original page had “…place your login the…” which I assume that to mean “…place your logo in the…”.

We put the logo in the following location:

/apps/archivesspace/plugins/local/frontend/assets/images/Mitre_Corp_Logo_small.png

Created the following file:

[archspc at archspcdev1 site]$ pwd
/apps/archivesspace/plugins/local/frontend/views/site
[archspc at archspcdev1 site]$ more _branding.html.erb
<div class="container-fluid navbar-branding">
  <%= image_tag "archivesspace/Mitre_Corp_Logo_small.png", :class=>"img-responsive" %>
</div>
[archspc at archspcdev1 site]$

This appears to be incorrect as when bringing up the Staff page no logo is displayed, but do see what appears to be a place holder on the page. Information from the log file /apps/archivesspace/logs/archivesspace.out:

************************************************************
  Welcome to ArchivesSpace!
  You can now point your browser to http://localhost:8080
************************************************************
I, [2019-10-31T09:44:47.829167 #62349]  INFO -- : Thread-2016: Staff Indexer [2019-10-31 09:44:47 -0400] Index round complete
I, [2019-10-31T09:45:03.362859 #62349]  INFO -- : Started GET "/" for 10.14.244.173 at 2019-10-31 09:45:03 -0400
I, [2019-10-31T09:45:04.429697 #62349]  INFO -- : Processing by WelcomeController#index as HTML
I, [2019-10-31T09:45:05.983788 #62349]  INFO -- :   Rendering welcome/index.html.erb within layouts/application
I, [2019-10-31T09:45:06.060828 #62349]  INFO -- :   Rendered shared/_flash_messages.html.erb (13.6ms)
I, [2019-10-31T09:45:08.815583 #62349]  INFO -- : Thread-2038: PUI Indexer [2019-10-31 09:45:08 -0400] Running index round
I, [2019-10-31T09:45:10.396144 #62349]  INFO -- :   Rendered welcome/index.html.erb within layouts/application (4411.3ms)
I, [2019-10-31T09:45:11.001334 #62349]  INFO -- :   Rendered shared/_header_user.html.erb (498.8ms)
I, [2019-10-31T09:45:11.004587 #62349]  INFO -- :   Rendered shared/_header_global.html.erb (520.2ms)
I, [2019-10-31T09:45:12.042084 #62349]  INFO -- :   Rendered /apps/archivesspace/plugins/local/frontend/views/site/_branding.html.erb (1016.8ms)
I, [2019-10-31T09:45:13.317327 #62349]  INFO -- : Thread-2038: PUI Indexer [2019-10-31 09:45:13 -0400] Index round complete
I, [2019-10-31T09:45:14.038365 #62349]  INFO -- :   Rendered shared/_advanced_search.html.erb (445.0ms)
I, [2019-10-31T09:45:14.039334 #62349]  INFO -- :   Rendered shared/_header_repository.html.erb (1953.5ms)
I, [2019-10-31T09:45:14.235100 #62349]  INFO -- :   Rendered site/_footer.html.erb (168.5ms)
I, [2019-10-31T09:45:14.417472 #62349]  INFO -- :   Rendered shared/_templates.html.erb (155.2ms)
I, [2019-10-31T09:45:14.420458 #62349]  INFO -- : Completed 200 OK in 9989ms (Views: 8484.9ms)
I, [2019-10-31T09:45:17.830453 #62349]  INFO -- : Thread-2016: Staff Indexer [2019-10-31 09:45:17 -0400] Running index round
I, [2019-10-31T09:45:18.581338 #62349]  INFO -- : Started GET "/images/archivesspace/Mitre_Corp_Logo_small.png" for 10.14.244.173 at 2019-10-31 09:45:18 -0400
F, [2019-10-31T09:45:18.665371 #62349] FATAL -- :
F, [2019-10-31T09:45:18.666039 #62349] FATAL -- : ActionController::RoutingError (No route matches [GET] "/images/archivesspace/Mitre_Corp_Logo_small.png"):
F, [2019-10-31T09:45:18.666471 #62349] FATAL -- :
F, [2019-10-31T09:45:18.666913 #62349] FATAL -- : actionpack (5.0.7.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
actionpack (5.0.7.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.7.2) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.7.2) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.7.2) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.0.7.2) lib/rails/rack/logger.rb:24:in `call'
actionpack (5.0.7.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.7) lib/rack/method_override.rb:22:in `call'
rack (2.0.7) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.7.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.7.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.7.2) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.7) lib/rack/sendfile.rb:111:in `call'
railties (5.0.7.2) lib/rails/engine.rb:522:in `call'
uri:classloader:/rack/handler/servlet.rb:22:in `call'
I, [2019-10-31T09:45:22.376691 #62349]  INFO -- : Thread-2016: Staff Indexer [2019-10-31 09:45:22 -0400] Index round complete
I, [2019-10-31T09:45:43.318504 #62349]  INFO -- : Thread-2038: PUI Indexer [2019-10-31 09:45:43 -0400] Running index round
I, [2019-10-31T09:45:45.941843 #62349]  INFO -- : Thread-2038: PUI Indexer [2019-10-31 09:45:45 -0400] Index round complete

Please advise where we may have placed our logo file, file formats supported for logos, or other directories are needed. Also, can the path used in the _branding.html.erb file be fully qualified so that we make sure we are getting the file from where we expect?

Thank you!
Gerard (Jerry) Boggio | MITRE Corporation | R504 - Collaboration & Info Management | 781-271-2719 | Bedford, MA | 2K132


_______________________________________________

Archivesspace_Users_Group mailing list

Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>

http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


--

Nick Butler
Software Developer
Digital Services
Cambridge University Library
West Road
Cambridge CB3 9DR, UK

npwb2 at cam.ac.uk<mailto:npwb2 at cam.ac.uk>

Internal tel: 33067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20191031/56db1a53/attachment.html>


More information about the Archivesspace_Users_Group mailing list