Skip to content

Commit

Permalink
Merge pull request #1714 from sul-dlss/set-stylesheet-for-geo-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored Nov 9, 2023
2 parents 422925a + 1d9457e commit 87cac54
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/embed/m3_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="sul-embed-container" id='sul-embed-object' style='display:none;'>
<div class='sul-embed-body sul-embed-m3' data-sul-embed-theme="<%= stylesheet_path('m3.css') %>">
<div class='sul-embed-body sul-embed-m3'>
<div
id='sul-embed-m3'
class='m3'
Expand Down
4 changes: 4 additions & 0 deletions app/viewers/embed/viewer/geo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def self.supported_types
[:geo]
end

def stylesheet
'geo.css'
end

def self.show_download?
true
end
Expand Down
4 changes: 4 additions & 0 deletions app/viewers/embed/viewer/m3_viewer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def self.supported_types
%i[image manuscript map book]
end

def stylesheet
'm3.css'
end

def manifest_json_url
@purl_object.manifest_json_url
end
Expand Down
3 changes: 2 additions & 1 deletion app/views/embed/iiif.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
bottom: 3px;
}
</style>
<%= stylesheet_link_tag 'm3.css' %>
</head>
<%= render 'analytics' %>
<body>
<div class="sul-embed-container" id='sul-embed-object' style='display:none;'>
<div class='sul-embed-body sul-embed-m3' style="max-height:100%;" data-sul-embed-theme="<%= stylesheet_path('m3.css') %>">
<div class='sul-embed-body sul-embed-m3' style="max-height:100%;">
<div
id='sul-embed-m3'
class='m3'
Expand Down

0 comments on commit 87cac54

Please sign in to comment.