%-
doc_title = (document_show_html_title.nil? || document_show_html_title.empty?) ? @document[:id] : document_show_html_title.first
@page_title = "#{doc_title} - #{application_name}"
-%>
<%= render :partial => 'show_tools' %>
<%= link_back_to_catalog( :label=>'← Return to search results'.html_safe) %>
<% if @previous_document || @next_document %>
<%= link_to_previous_document(@previous_document) %>
<% end %>
<%- if session[:search][:counter].to_i > 0 -%>
<%= session[:search][:counter].to_i %> of <%= format_num(session[:search][:total]) %>
<%- end -%>
<% if @previous_document || @next_document %>
<%= link_to_next_document(@next_document)%>
<% end %>
<% if editor? && controller.action_name != "delete" %>
<%= edit_and_browse_links.html_safe %>
<% end -%>
<%#= render :partial=>'solr_request' %>
<%= render :partial => 'citation' %>
<%= render :partial => 'email_form' %>
<%= render :partial => 'sms_form' %>