Skip to content

Commit

Permalink
Adjusts the View Items element to look at Source Collection Title (#693
Browse files Browse the repository at this point in the history
…). (#694)
  • Loading branch information
bwatson78 committed Oct 9, 2020
1 parent 684672e commit 456cf5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog/_view_items_in_collection_block.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="card-body">
<dl title="<%= t('blacklight.work.view_items_collection') %>">
<dt title="collection link"></dt>
<dd class="blacklight-view-items-in-collection"><a href="/?f%5Bmember_of_collections_ssim%5D%5B%5D=<%= CGI::escape(document[:title_tesim]&.first) %>&per_page=10"><%= t('blacklight.work.view_items_collection') %></a></dd>
<dd class="blacklight-view-items-in-collection"><a href="/?f%5Bsource_collection_title_ssim%5D%5B%5D=<%= CGI::escape(document[:title_tesim]&.first) %>&per_page=10"><%= t('blacklight.work.view_items_collection') %></a></dd>
</dl>
</div>
</div>
2 changes: 1 addition & 1 deletion spec/system/view_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

it 'has Collection specific metadata labels' do
expect(page).to have_content('View items in this digital collection')
expect(page).to have_link('View items in this digital collection', href: "#{root_path}?f%5Bmember_of_collections_ssim%5D%5B%5D=#{CGI.escape(work_attributes[:title_tesim]&.first)}&per_page=10")
expect(page).to have_link('View items in this digital collection', href: "#{root_path}?f%5Bsource_collection_title_ssim%5D%5B%5D=#{CGI.escape(work_attributes[:title_tesim]&.first)}&per_page=10")
end

it 'has Collection specific metadata values' do
Expand Down

0 comments on commit 456cf5c

Please sign in to comment.