Sha256: a267824b14e228c4130b0c8bb06d3c83b35ba573ec108e1fa7cbef066d2c023e

Contents?: true

Size: 958 Bytes

Versions: 20

Compression:

Stored size: 958 Bytes

Contents

<%
  # 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 << '. ' + t(:volume).titlecase + ':&nbsp;'+cite[:volume] unless cite[:volume].blank?
  pub << '. ' + t(:issue).titlecase + ':&nbsp;'+cite[:issue] unless cite[:issue].blank?
  pub << '. ' + t(:page).titlecase + ':&nbsp;'+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 %>


Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
umlaut-4.1.7 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.6 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.5 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.4 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.3 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.2 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.1 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.0 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.0.pre3 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.0.pre.2 app/views/resolve/_compact_citation.html.erb
umlaut-4.1.0.pre.alpha.1 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.3 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.2 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.1 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0.beta5 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0.beta4 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0.beta3 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0.beta2 app/views/resolve/_compact_citation.html.erb
umlaut-4.0.0.beta1 app/views/resolve/_compact_citation.html.erb