<% # Get the citation from the user request 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? } %> <%="#{t('umlaut.citation.published_in')} #{cite[:container_label]}"%> <%= cite[:container_title] %>. <% end %> <% if cite[:volume].present? %> <%="#{t('umlaut.citation.volume').titlecase} #{cite[:volume]}" %>. <% end %> <% if cite[:issue].present? %> <%="#{t('umlaut.citation.issue').titlecase} #{cite[:issue]}" %>. <% end %> <% if cite[:page].present? %> <%="#{t('umlaut.citation.page').titlecase} #{cite[:page]}" %>. <% end %>

<%= if cite[:pub].present? content_tag(:dt, "#{t('umlaut.citation.publisher')}:", :class => "publisher") + content_tag(:dd, cite[:pub], :class => "publisher") end %> <%= if cite[:issn].present? content_tag(:dt, "#{t('umlaut.citation.issn')}:", :class => "issn") + content_tag(:dd, cite[:issn], :class => "issn") end %> <%= if cite[:isbn].present? content_tag(:dt, "#{t('umlaut.citation.isbn')}:", :class => "isbn") + content_tag(:dd, cite[:isbn], :class => "isbn") end %> <%# todo, doi %>