From d1c636e2b293f6a8da65c8bd2a94e5cd2526efa6 Mon Sep 17 00:00:00 2001 From: Trip Kirkpatrick Date: Tue, 15 Jun 2021 16:20:55 -0400 Subject: [PATCH] =?UTF-8?q?Initial=20commit=20to=20this=20branch=20?= =?UTF-8?q?=E2=9A=A1=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/views/subjects/show.html.erb | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 public/views/subjects/show.html.erb diff --git a/public/views/subjects/show.html.erb b/public/views/subjects/show.html.erb new file mode 100644 index 0000000..fd80b1a --- /dev/null +++ b/public/views/subjects/show.html.erb @@ -0,0 +1,69 @@ +<%# we are only adding this local override for the "Suggest a Correction" feature. Too bad there's not a shared file that could be a placeholder, but that could be a good feature request. %> +
+ +
+
+ <%= render partial: 'shared/idbadge', locals: {:result => @result, :props => { :full => true} } %> +
+
+ <%= render partial: 'shared/page_actions', locals: {:record => @result, :title => @result.display_string, :url => request.fullpath } %> +
+
+ +
+
+
+ <%= t('enumeration_names.subject_source') %>: <%= t("enumerations.subject_source.#{@result['json']['source']}" ) %> +
+ + <% if !@result.dates.blank? %> + <% render partial: 'shared/dates', locals: {:dates => @result.dates} %> + <% end %> + + <% if !@result['json']['component_id'].blank? %> + <%= t(component._singular) %>: <%= @result['json']['component_id'] %> + <% end %> + <% if !@result['json']['ref_id'].blank? %> + [Ref. ID: <%= @result['json']['ref_id'] %>] + <% end %> + <% if @result['json']['scope_note'].present? %> + <%= t('scope_note') %>: <%= process_mixed_content( @result['json']['scope_note']).html_safe %> + <% end %> + + <%= render partial: 'shared/display_notes' %> + <%= render partial: 'shared/report_problem' %> + + <% unless @results.blank? || @results['total_hits'] == 0 %> +

<%= t('found', {:count => @results['total_hits'], :type => @results['total_hits'] == 1? t('coll_obj._singular') : t('coll_obj._plural')}) %>:

+ <% @results.records.each do |result| %> + <%= render partial: 'shared/result', locals: {:result => result, :props => {:full => false}} %> + <% end %> + <%= render partial: 'shared/pagination', locals: {:pager => @pager} %> + + <% end %> +
+ +
+