app/views/resolve/_compact_citation.html.erb in umlaut-3.3.1 vs app/views/resolve/_compact_citation.html.erb in umlaut-4.0.0.beta1
- old
+ new
@@ -2,12 +2,12 @@
# When you need a citation in a tiny amount of space, just the
# most important info, displayed compactly.
cite = @user_request.referent.to_citation
pub = []
pub << '.' << date_format(cite[:date]) unless cite[:date].blank?
- pub << '. Volume: '+cite[:volume] unless cite[:volume].blank?
- pub << '. Issue: '+cite[:issue] unless cite[:issue].blank?
- pub << '. Page: '+cite[:page] unless cite[:page].blank? %>
+ pub << '. ' + t(:volume).titlecase + ': '+cite[:volume] unless cite[:volume].blank?
+ pub << '. ' + t(:issue).titlecase + ': '+cite[:issue] unless cite[:issue].blank?
+ pub << '. ' + t(:page).titlecase + ': '+cite[:page] unless cite[:page].blank? %>
<%= content_tag(:span, h(cite[:author].chomp), :class => "text-small") if cite[:author] %>
<%= content_tag(:span, h(truncate(cite[:title], :length => 70, :seperator => '...'), :class => "text-small") %>
<%= content_tag(((@user_request.referent.format =~ /article|journal|issue|report/i) ? 'em' : 'span'), cite[:subtitle], :class => "text-small") if cite[:subtitle] %>
<%= content_tag(:span, pub.join(' '), :class => "text-small") if pub.length > 0 %>