<%- 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_document_heading.html_safe %>

<%= render_document_partial @document, params["action"] %>
<%#= render :partial=>'solr_request' %>