From 5481d50a1216186b7109b8b4e55f783524e392c7 Mon Sep 17 00:00:00 2001 From: mtribone Date: Thu, 3 May 2018 12:24:23 -0400 Subject: [PATCH] Removes the offset counter for the index header, wraps the article in a list, and adds the ordered list to the document list. --- app/views/catalog/_document.html.erb | 12 +++++++----- app/views/catalog/_document_list.html.erb | 4 +++- app/views/catalog/_index_header.html.erb | 7 +------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/views/catalog/_document.html.erb b/app/views/catalog/_document.html.erb index 6478c5e88e..d69e7e6fff 100644 --- a/app/views/catalog/_document.html.erb +++ b/app/views/catalog/_document.html.erb @@ -1,6 +1,8 @@ <% # container for a single doc -%> -
- <%= render_document_partials document, - blacklight_config.view_config(document_index_view_type).partials, - document_counter: document_counter %> -
+
  • +
    + <%= render_document_partials document, + blacklight_config.view_config(document_index_view_type).partials, + document_counter: document_counter %> +
    +
  • diff --git a/app/views/catalog/_document_list.html.erb b/app/views/catalog/_document_list.html.erb index 80179d01f9..bef5b4f4ac 100644 --- a/app/views/catalog/_document_list.html.erb +++ b/app/views/catalog/_document_list.html.erb @@ -1,4 +1,6 @@ <% # container for all documents in index list view -%>
    - <%= render documents, :as => :document %> +
      + <%= render documents, :as => :document %> +
    diff --git a/app/views/catalog/_index_header.html.erb b/app/views/catalog/_index_header.html.erb index cf80e15b16..a88e9f3a33 100644 --- a/app/views/catalog/_index_header.html.erb +++ b/app/views/catalog/_index_header.html.erb @@ -10,12 +10,7 @@ <% end %>

    "> - <% if counter = document_counter_with_offset(document_counter) %> - - <%= t('blacklight.search.documents.counter', counter: counter) %> - - <% end %> - <%= link_to_document document, document_show_link_field(document), counter: counter %> + <%= link_to_document document, document_show_link_field(document) %>

    <%= document_actions %>