Skip to content

Commit

Permalink
Layout: only load m3 (mirador) on iiif_manifest viewer_protocol objects.
Browse files Browse the repository at this point in the history
Fixes #548
  • Loading branch information
ewlarson committed Dec 4, 2023
1 parent 45d9816 commit 9f82b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<%= favicon_link_tag %>
<%= stylesheet_link_tag "application", media: "all" %>

<% if layout_type == "item" %>
<% if layout_type == "item" && @document && @document.viewer_protocol == 'iiif_manifest' %>
<%= javascript_pack_tag 'm3' %>
<% end %>

<%= javascript_include_tag "application" %>
<%= javascript_include_tag "analytics" %>

Expand Down

0 comments on commit 9f82b29

Please sign in to comment.