-
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.
Merge pull request #316 from IUBLibTech/AR-196_remediation
AR-196 remediation
- Loading branch information
Showing
5 changed files
with
88 additions
and
10 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
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
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
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,66 @@ | ||
<% parents = Arclight::Parents.from_solr_document(document).as_parents %> | ||
<div class='row'> | ||
<div class='col-md-12'> | ||
<% if document.digital_objects.present? %> | ||
<%= content_tag :p, class: "media breadcrumb-item breadcrumb-item-#{parents.length + 3}" do %> | ||
<span class="media-body al-online-content-icon" aria-hidden="true"><%= blacklight_icon :online %></span> | ||
<span class="col text-muted"> | ||
<%= t('arclight.views.show.online_content_upper') %> | ||
</span> | ||
<%= render_document_partial(document, 'arclight_viewer') %> | ||
<% end %> | ||
<% end %> | ||
<div class='row'> | ||
<div class='col-lg-12' role='tablist' aria-owns='context-tab content-tab online-content-tab access-tab'> | ||
<ul class='nav nav-tabs nav-fill' aria-label='<%= t('arclight.views.show.tablist_nav') %>'> | ||
<li class='nav-item flex-fill'> | ||
<a class='nav-link p-1 p-sm-2 active' id='context-tab' data-toggle='tab' href='#context' role='tab'> | ||
<%= t 'arclight.views.show.overview' %> | ||
</a> | ||
</li> | ||
<li class='nav-item flex-fill'> | ||
<a class='nav-link p-1 p-sm-2 disabled' id='content-tab' data-toggle='tab' href='#contents' role='tab' data-hierarchy-enable-me='true'> | ||
<%= t 'arclight.views.show.no_contents' %> | ||
</a> | ||
</li> | ||
<% if document.online_content? %> | ||
<li class='nav-item flex-fill'> | ||
<a class='nav-link p-1 p-sm-2' id='online-content-tab' data-toggle='tab' href='#online-content' role='tab' data-arclight-online-content-tab='true'> | ||
<%= t 'arclight.views.show.online_content' %> | ||
</a> | ||
</li> | ||
<% end %> | ||
<li class='nav-item flex-fill'> | ||
<a class='nav-link p-1 p-sm-2' id='access-tab' data-toggle='tab' href='#access' role='tab'> | ||
<%= t 'arclight.views.show.access' %> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class='tab-content'> | ||
<div class='tab-pane active' id='context' role='tabpanel'> | ||
<%= render 'collection_context' %> | ||
</div> | ||
<div class='tab-pane' id='contents' role='tabpanel'> | ||
<%= render 'collection_contents' %> | ||
</div> | ||
<% if document.online_content? %> | ||
<div class='tab-pane' id='online-content' role='tabpanel'> | ||
<%= render partial: 'collection_online_contents', locals: { document: document } %> | ||
</div> | ||
<% end %> | ||
<div class='tab-pane' id='access' role='tabpanel'> | ||
<h2 class="sr-only"><%= t 'arclight.views.show.access' %></h2> | ||
<% unless blacklight_config.show.context_access_tab_items.nil? %> | ||
<% items = blacklight_config.show.context_access_tab_items.select { |i| fields_have_content?(@document, i) } %> | ||
<% items.each_with_index do |item, index| %> | ||
<%= render partial: 'access_contents', locals: { document: @document, field_accessor: item, card_index: index} %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |
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