From 5105ca8d3b4bf8f2f813739645a16ca471643b99 Mon Sep 17 00:00:00 2001 From: Brittny Lapierre Date: Tue, 5 Dec 2023 09:10:00 -0500 Subject: [PATCH] Only viewer on document page --- app/assets/stylesheets/application.css | 4 ++ .../blacklight/document_component.html.erb | 71 ++++++++++--------- app/components/viewer_component.html.erb | 10 +-- 3 files changed, 47 insertions(+), 38 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index fc899312e..532828a63 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -140,4 +140,8 @@ input[type="search"]::-webkit-search-cancel-button { .uv .leftPanel .views { height: 93% !important; } +} + +footer, .navbar-search, .topbar { + display: none; } \ No newline at end of file diff --git a/app/components/blacklight/document_component.html.erb b/app/components/blacklight/document_component.html.erb index a3195a33e..91cb4d6e1 100644 --- a/app/components/blacklight/document_component.html.erb +++ b/app/components/blacklight/document_component.html.erb @@ -12,45 +12,50 @@ <%= body %> <% else %>
- + <% if @component.to_s == 'div' %>
- <% end %> - <%= title %> - <% if @component.to_s == 'div' %> <%= render(ViewerComponent.new(documentId: @document.id, prefix: 'oocihm')) %> - <% end %> - <%= embed %> - <%= content %> - <% if @component.to_s == 'div' %> -
-
-
-

Document Record

- <%= metadata %> - <% metadata_sections.each do |section| %> - <%= section %> - <% end %> -
-
- <%= render(Blacklight::Document::SidebarComponent.new(presenter: @presenter)) %> + <% else %> + + <% if @component.to_s == 'div' %> +
+ <% end %> + <%= title %> + + <%= embed %> + <%= content %> + <% if @component.to_s == 'div' %> +
+
+
+

Document Record

+ <%= metadata %> + <% metadata_sections.each do |section| %> + <%= section %> + <% end %> +
+
+ <%= render(Blacklight::Document::SidebarComponent.new(presenter: @presenter)) %> +
-
- <% end %> - <% if @component.to_s != 'div' %> - <%= metadata %> - <% metadata_sections.each do |section| %> - <%= section %> - <% end %> - <% end %> - <% partials.each do |partial| %> - <%= partial %> - <% end %> - <% if @component.to_s == 'article' %> - <%= render(LegacyOcrSearchComponent.new(documentId: @document.id, term: params[:q] || '', prefix: 'oocihm')) do %><% end %> + <% end %> + <% if @component.to_s != 'div' %> + <%= metadata %> + <% metadata_sections.each do |section| %> + <%= section %> + <% end %> + <% end %> + <% partials.each do |partial| %> + <%= partial %> + <% end %> + <% if @component.to_s == 'article' %> + <%= render(LegacyOcrSearchComponent.new(documentId: @document.id, term: params[:q] || '', prefix: 'oocihm')) do %><% end %> + <% end %> + <% end %> -
+
<%= thumbnail %> <% end %> <%= footer %> diff --git a/app/components/viewer_component.html.erb b/app/components/viewer_component.html.erb index 35fc769a2..e451dadf5 100644 --- a/app/components/viewer_component.html.erb +++ b/app/components/viewer_component.html.erb @@ -40,15 +40,15 @@ <%= render(DocumentDownloadsComponent.new(documentId: @documentId, prefix: 'oocihm', pageNum: params[:pageNum])) do %><% end %> -
+ -
+ -
+ - +
\ No newline at end of file