From 9aa02385f2015da64dd415aea893b61a8d6684c6 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Thu, 4 Feb 2016 15:31:29 +0100 Subject: [PATCH] Adding edit link from BL details --- app/views/catalog/_previous_next_doc.html.erb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/views/catalog/_previous_next_doc.html.erb diff --git a/app/views/catalog/_previous_next_doc.html.erb b/app/views/catalog/_previous_next_doc.html.erb new file mode 100644 index 000000000..4d217fa18 --- /dev/null +++ b/app/views/catalog/_previous_next_doc.html.erb @@ -0,0 +1,22 @@ +<% #Using the Bootstrap Pagination class -%> +<% #DEPRECATED - using id="previousNextDocument" as a selector is deprecated and will be removed in Blacklight 6.0 %> +
+ <% if @previous_document || @next_document %> + + <% end %> + <% if current_search_session %> +
+ <%= link_back_to_catalog class: 'btn' %> + + <%=link_to t('blacklight.search.start_over'), start_over_path(current_search_session.try(:query_params) || {}), id: 'startOverLink', class: 'btn' %> + + <%=link_to t('active_admin.edit'), "/admin/sources/#{@document.id.split(" ")[1]}/edit", class: 'btn' %> +
+ <% end %> +