Skip to content

Commit

Permalink
remove any duplicate subjects, placenames, etc. partially fixes sul-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hardy committed Nov 18, 2014
1 parent 9e399ea commit 42ff7e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/catalog/_upper_metadata.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
<dd id="" itemprop="description"><%= abstract_truncator(document['dc_description_s']) %>&nbsp;</dd>
<% unless document['dct_isPartOf_sm'].nil? %>
<dt>Collection</dt>
<dd itemprop="isPartOf"><%= document['dct_isPartOf_sm'].sort.join(', ') %>&nbsp;</dd>
<dd itemprop="isPartOf"><%= document['dct_isPartOf_sm'].sort.uniq.join(', ') %>&nbsp;</dd>
<% end %>
<% if document['dct_provenance_s'] == 'Stanford' and not document['dc_identifier_s'].nil? %>
<dt>Citation</dt>
<dd itemprop="url"><%= link_to document['dc_identifier_s'], document['dc_identifier_s'] %>&nbsp;</dd>
<% end %>
<% unless document['dct_spatial_sm'].nil? %>
<dt>Places</dt>
<dd itemprop="spatial"><%= document['dct_spatial_sm'].sort.join(', ') %>&nbsp;</dd>
<dd itemprop="spatial"><%= document['dct_spatial_sm'].sort.uniq.join(', ') %>&nbsp;</dd>
<% end %>
<% unless document['dc_subject_sm'].nil? %>
<dt>Subjects</dt>
<dd itemprop="keywords"><%= document['dc_subject_sm'].sort.join(', ') %>&nbsp;</dd>
<dd itemprop="keywords"><%= document['dc_subject_sm'].sort.uniq.join(', ') %>&nbsp;</dd>
<% end %>
<% unless document['dct_temporal_sm'].nil? %>
<dt>Years</dt>
<dd itemprop="temporal"><%= document['dct_temporal_sm'].sort.join(', ') %>&nbsp;</dd>
<dd itemprop="temporal"><%= document['dct_temporal_sm'].sort.uniq.join(', ') %>&nbsp;</dd>
<% end %>
</dl>
</div>

0 comments on commit 42ff7e4

Please sign in to comment.