Skip to content

Commit

Permalink
Removes the offset counter for the index header, wraps the article in…
Browse files Browse the repository at this point in the history
… a list, and adds the ordered list to the document list.
  • Loading branch information
mtribone committed May 3, 2018
1 parent 82c0d5a commit 5481d50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
12 changes: 7 additions & 5 deletions app/views/catalog/_document.html.erb
@@ -1,6 +1,8 @@
<% # container for a single doc -%>
<article class="document <%= render_document_class document %> document-position-<%= document_counter%> " data-document-counter="<%= document_counter %>" itemscope itemtype="<%= document.itemtype %>">
<%= render_document_partials document,
blacklight_config.view_config(document_index_view_type).partials,
document_counter: document_counter %>
</article>
<li>
<article class="document <%= render_document_class document %> document-position-<%= document_counter%> " data-document-counter="<%= document_counter %>" itemscope itemtype="<%= document.itemtype %>">
<%= render_document_partials document,
blacklight_config.view_config(document_index_view_type).partials,
document_counter: document_counter %>
</article>
</li>
4 changes: 3 additions & 1 deletion app/views/catalog/_document_list.html.erb
@@ -1,4 +1,6 @@
<% # container for all documents in index list view -%>
<div id="documents" class="documents-<%= document_index_view_type %>">
<%= render documents, :as => :document %>
<ol>
<%= render documents, :as => :document %>
</ol>
</div>
7 changes: 1 addition & 6 deletions app/views/catalog/_index_header.html.erb
Expand Up @@ -10,12 +10,7 @@
<% end %>
<h3 class="index_title document-title-heading <%= document_actions.present? ? "col-sm-9 col-lg-10" : "col-md-12" %>">
<% if counter = document_counter_with_offset(document_counter) %>
<span class="document-counter">
<%= t('blacklight.search.documents.counter', counter: counter) %>
</span>
<% end %>
<%= link_to_document document, document_show_link_field(document), counter: counter %>
<%= link_to_document document, document_show_link_field(document) %>
</h3>
<%= document_actions %>
Expand Down

0 comments on commit 5481d50

Please sign in to comment.