%-
doc_title = document_show_html_title.blank? ? @document[:id] : document_show_html_title.first
@page_title = "#{doc_title} - #{application_name}"
-%>
<%= link_back_to_catalog :label=>'← Return to search results' %>
<%- 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 %>
<%- end -%>
<%= "combined_document_view" if session[:scripts] %>">
<% if controller.action_name == "edit" %>
<%= button_to("Delete This Item", {:action => :destroy, :controller => :assets, :id => @document_fedora.pid}, :confirm => 'Are you sure?', :method => :delete )%>
<% end %>