-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
937de99
commit d1c636e
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. %> | ||
<div id="main-content"> | ||
|
||
<div class="row" id="info_row"> | ||
<div class="information col-sm-7"> | ||
<%= render partial: 'shared/idbadge', locals: {:result => @result, :props => { :full => true} } %> | ||
</div> | ||
<div class="page_actions col-sm-5 right"> | ||
<%= render partial: 'shared/page_actions', locals: {:record => @result, :title => @result.display_string, :url => request.fullpath } %> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="information col-sm-9"> | ||
<div class="clear"> | ||
<span class="inline-label clear"><%= t('enumeration_names.subject_source') %>: </span><%= t("enumerations.subject_source.#{@result['json']['source']}" ) %> | ||
</div> | ||
|
||
<% if !@result.dates.blank? %> | ||
<% render partial: 'shared/dates', locals: {:dates => @result.dates} %> | ||
<% end %> | ||
|
||
<% if !@result['json']['component_id'].blank? %> | ||
<span class='component'><%= t(component._singular) %>: <%= @result['json']['component_id'] %></span> | ||
<% end %> | ||
<% if !@result['json']['ref_id'].blank? %> | ||
<span class='ref_id'>[Ref. ID: <%= @result['json']['ref_id'] %>]</span> | ||
<% end %> | ||
<% if @result['json']['scope_note'].present? %> | ||
<span class="inline-label"><%= t('scope_note') %>:</span> <%= 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 %> | ||
<h2><%= t('found', {:count => @results['total_hits'], :type => @results['total_hits'] == 1? t('coll_obj._singular') : t('coll_obj._plural')}) %>:</h2> | ||
<% @results.records.each do |result| %> | ||
<%= render partial: 'shared/result', locals: {:result => result, :props => {:full => false}} %> | ||
<% end %> | ||
<%= render partial: 'shared/pagination', locals: {:pager => @pager} %> | ||
|
||
<% end %> | ||
</div> | ||
<div id="sidebar" class="col-sm-3 sidebar sidebar-container"> | ||
<h3><%= t('more_about') %> '<%= @result.display_string %>'</h3> | ||
|
||
<div class="acc_holder clear" > | ||
<div class="panel-group" id="res_accordion"> | ||
<% if !(terms = ASUtils.wrap(@result['json']['terms'])).empty? %> | ||
<% x = render partial: 'subjects/terms', locals: {:terms => terms, :list_clss => 'terms'} %> | ||
<%= render partial: 'shared/accordion_panel', locals: {:p_title => t('subject_term_type'), :p_id => 'subject_terms', :p_body => x} %> | ||
<% end %> | ||
<% unless @result.external_documents.blank? %> | ||
<% x = render partial: 'shared/present_list_external_docs', locals: {:list => @result.external_documents, :list_clss => 'external_docs'} %> | ||
<%= render partial: 'shared/accordion_panel', locals: {:p_title => t('external_docs'), :p_id => 'ext_doc_list', :p_body => x} %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<script type="text/javascript" > | ||
initialize_accordion(".note_panel", "<%= t('accordion.expand') %>" , "<%= t('accordion.collapse') %>"); | ||
</script> | ||
|
||
<% unless @results.blank? || @results['total_hits'] == 0 %> | ||
<%= render partial: 'shared/facets' %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |