Skip to content

Commit

Permalink
Update date issued metadata tag label (#809)
Browse files Browse the repository at this point in the history
# Story
Updates metadata tag label for `date_issued` to display 'Date' on show
and index pages.


Refs

- #169 

# Expected Behavior Before Changes

Date issued metadata tag displays 'Date issued'

# Expected Behavior After Changes

Date issued metadata tag displays 'Date'

# Screenshots / Video

<details>

## Before


![image](https://github.com/user-attachments/assets/0a6be042-c71f-4b7e-8669-5d8bc3f9299f)

## After


![image](https://github.com/user-attachments/assets/49d6517e-5f6e-4738-9354-c55d25e4dbfd)

</details>

# Notes
  • Loading branch information
ShanaLMoore authored Sep 17, 2024
2 parents 9582644 + 06bf01e commit 10c8a53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_attribute_rows.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<%= presenter.attribute_to_html(:remote_url, render_as: :external_link) %>
<%= presenter.attribute_to_html(:rights_statement, render_as: :rights_statement, html_dl: true) %>
<%= presenter.attribute_to_html(:extent) %>
<%= presenter.attribute_to_html(:date_issued, label: 'Date Issued') %>
<%= presenter.attribute_to_html(:date_issued, label: I18n.t('dog_biscuits.fields.date')) %>
<%= presenter.attribute_to_html(:alt, label: 'Publication GeoCode') %>
<%= presenter.attribute_to_html(:embargo_release_date, render_as: :date, html_dl: true) %>
<%= presenter.attribute_to_html(:lease_expiration_date, render_as: :date, html_dl: true) %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/dog_biscuits.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ en:
date_created: Date created
date_collected: Date collected
date_copyrighted: Date copyrighted
date_issued: Date issued
date_issued: Date
date_of_award: Date of award
date_published: Publication date
date_submitted: Date submitted
Expand Down

0 comments on commit 10c8a53

Please sign in to comment.