Skip to content

Commit

Permalink
Replaces catalog_search_link: true with render_as: :linked from CC.Up…
Browse files Browse the repository at this point in the history
…dates :rights with render_as: rights.Uses :faceted for Sufia and renders the correct metadata links.Updates :identifier, :date_created to use linked search_field and :related_url to just link out to the web page.
  • Loading branch information
mtribone committed Jun 8, 2016
1 parent 4f81ec9 commit 18f2999
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions app/views/curation_concerns/base/_attribute_rows.html.erb
@@ -1,11 +1,11 @@
<%= presenter.attribute_to_html(:creator, catalog_search_link: true ) %>
<%= presenter.attribute_to_html(:contributor, label: 'Contributors', catalog_search_link: true) %>
<%= presenter.attribute_to_html(:subject, catalog_search_link: true) %>
<%= presenter.attribute_to_html(:publisher) %>
<%= presenter.attribute_to_html(:language) %>
<%= presenter.attribute_to_html(:identifier) %>
<%= presenter.attribute_to_html(:keyword) %>
<%= presenter.attribute_to_html(:date_created) %>
<%= presenter.attribute_to_html(:based_near) %>
<%= presenter.attribute_to_html(:creator, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:contributor, label: 'Contributors', render_as: :faceted) %>
<%= presenter.attribute_to_html(:subject, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:publisher, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:language, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:identifier, render_as: :linked, search_field: 'identifier_tesim') %>
<%= presenter.attribute_to_html(:keyword, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:date_created, render_as: :linked, search_field: 'date_created_tesim' ) %>
<%= presenter.attribute_to_html(:based_near, render_as: :faceted ) %>
<%= presenter.attribute_to_html(:related_url) %>
<%= presenter.attribute_to_html(:resource_type) %>
<%= presenter.attribute_to_html(:resource_type, render_as: :faceted ) %>
2 changes: 1 addition & 1 deletion app/views/curation_concerns/base/_metadata.html.erb
Expand Up @@ -7,6 +7,6 @@
<%= render 'attribute_rows', presenter: presenter %>
<%= presenter.attribute_to_html(:embargo_release_date) %>
<%= presenter.attribute_to_html(:lease_expiration_date) %>
<%= presenter.attribute_to_html(:rights) %>
<%= presenter.attribute_to_html(:rights, render_as: :rights) %>
</tbody>
</table>

0 comments on commit 18f2999

Please sign in to comment.