Skip to content

Commit

Permalink
Merge pull request #2598 from sul-dlss/more-detail-breadcrumb
Browse files Browse the repository at this point in the history
Add missing breadcrumb entry to more details page
  • Loading branch information
jcoyne authored Oct 8, 2024
2 parents e644f5f + 729a2de commit 0266b1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/metadata_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def attach_breadcrumbs

title = Array(@document[blacklight_config.view_config(:show).title_field]).join(', ')
add_breadcrumb title, spotlight.polymorphic_path([current_exhibit, @document])
add_breadcrumb t('metadata.breadcrumb')
end

def search_action_url(options = {})
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ en:
abstract: Abstract/Contents
access: Access conditions
bibliographic: Bibliographic information
breadcrumb: More details
contact: Contact information
contributors: Creators/Contributors
description: Description
Expand Down
1 change: 1 addition & 0 deletions spec/features/metadata_display_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
expect(page).to have_css 'h3', text: 'Afrique Physique'
expect(page).not_to have_css 'dt', text: 'Title:'
expect(page).to have_css 'a[download="gk885tn1705.mods.xml"]', text: 'Download'
expect(page).to have_css '.breadcrumb-item', text: 'More details'
end

it 'opens view metadata in modal', js: true do
Expand Down

0 comments on commit 0266b1c

Please sign in to comment.