%
cite = @user_request.referent.to_citation
@page_title = cite[:title] %>
<% if @user_request.referent.type_of_thing.present? %>
<%=@user_request.referent.type_of_thing.titlecase %>
<% end %>
<%= cite[:title] %>
<% if cite[:author].present? || cite[:date].present? %>
<% if cite[:author].present? %>
<%= cite[:author] %>
<% end %>
<% if cite[:author].present? && cite[:date].present? %>
•
<% end %>
<% if cite[:date].present? %>
<%= date_format(cite[:date]) %>
<% end %>
<% end %>
<% if [:container_title, :volume, :issue, :page].find {|k| cite[k].present? } %>
Published in <%= cite[:container_label] %>
<%= cite[:container_title] %>.
<% end %>
<% if cite[:volume].present? %>
Volume <%= cite[:volume] %>.
<% end %>
<% if cite[:issue].present? %>
Issue <%= cite[:issue] %>.
<% end %>
<% if cite[:page].present? %>
Page <%= cite[:page] %>.
<% end %>
<%= if cite[:pub].present?
content_tag(:dt, "Publisher:", :class => "publisher") +
content_tag(:dd, cite[:pub], :class => "publisher")
end %>
<%= if cite[:issn].present?
content_tag(:dt, "ISSN:", :class => "issn") +
content_tag(:dd, cite[:issn], :class => "issn")
end %>
<%= if cite[:isbn].present?
content_tag(:dt, "ISBN:", :class => "isbn") +
content_tag(:dd, cite[:isbn], :class => "isbn")
end %>
<%# todo, doi %>