Skip to content

Commit

Permalink
Merge pull request #1012 from WGBH/citation-688
Browse files Browse the repository at this point in the history
Citations.
  • Loading branch information
foo4thought authored Jul 7, 2016
2 parents 16d739a + f1c565d commit 2cc9b72
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/views/catalog/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,29 @@
</dl>
<% end %>

<dl>
<% url = "http://americanarchive.org/catalog/#{@pbcore.id}" %>
<% today = Date.today.to_formatted_s(:long) %>
<% org = @pbcore.organization.short_name_html.gsub(/<[^>]*>/, '').html_safe + ', American Archive of Public Broadcasting (WGBH and the Library of Congress), Boston, MA and Washington, DC' %>
<dt>Citation</dt>
<dd><em>Chicago</em>:
&ldquo;<%= @pbcore.title %>,&rdquo;
<%= @pbcore.asset_date + ',' if @pbcore.asset_date %>
<%= org %>,
accessed <%= today %>,
<%= url %>.</dd>
<dd><em>MLA</em>:
&ldquo;<%= @pbcore.title %>.&rdquo;
<%= @pbcore.asset_date + '.' if @pbcore.asset_date %>
<%= org %>.
Web. <%= today %>.
&lt;<%= url %>&gt;.</dd>
<dd><em>APA</em>:
<%= @pbcore.title %>.
Boston, MA: <%= org %>.
Retrieved from <%= url %></dd>
</dl>

<% end %>
<%= render partial: 'shared/title_sidebar_main',
Expand Down

0 comments on commit 2cc9b72

Please sign in to comment.