Sha256: 663bec5aa957bffb935a127543490ed0b654993904e50833415a0a1ba136ea08

Contents?: true

Size: 886 Bytes

Versions: 32

Compression:

Stored size: 886 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
%>

<%
if cite[:author]
%><span class="smallText"><%= h(cite[:author].chomp) -%>.</span>
<% end %>

<span class="smallText">"<%= h(truncate(cite[:title], :length => 70, :seperator => '...')) %>"



<%
if cite[:subtitle] %>
 <%= content_tag( ((@user_request.referent.format =~ /article|journal|issue|report/i) ? 'i' : 'span'), cite[:subtitle]) %>
<% end %>
<%
pub = []
pub << '.' << date_format(cite[:date]) unless cite[:date].blank?	
pub << '. Volume:&nbsp;'+cite[:volume] unless cite[:volume].blank?
pub << '. Issue:&nbsp;'+cite[:issue] unless cite[:issue].blank?	
pub << '. Page:&nbsp;'+cite[:page] unless cite[:page].blank?
if pub.length > 0
%>
<%= pub.join(' ')%>.
 
<% end %>
</span>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
umlaut-3.0.5 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.4 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.3 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.2 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.1 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0rc1 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta10 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta9 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta8 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta7 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta6 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta5 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta4 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta3 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta2 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0beta1 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0alpha15 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0alpha14 app/views/resolve/_compact_citation.html.erb
umlaut-3.0.0alpha13 app/views/resolve/_compact_citation.html.erb