Skip to content

Commit

Permalink
Merge pull request #1527 from WGBH/lra-notice
Browse files Browse the repository at this point in the history
Update show.html.erb to hint at LRA
  • Loading branch information
jasoncorum committed Jul 25, 2018
2 parents 35e5fb2 + cdb36de commit 460e97c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions app/views/catalog/show.html.erb
Expand Up @@ -62,16 +62,12 @@
{target: '_blank'}
) %>
<% end %>
<% elsif @pbcore.public? && !current_user.usa? %>
Please note: This content is currently not available at your location.
<% elsif @pbcore.protected? %>
Please note: This content is only available at WGBH and
the Library of Congress. For information about on location research,
<a href="/on-location">click here</a>.
<% elsif (@pbcore.public? && !current_user.usa?) || @pbcore.protected? %>
Please note: This content is currently not available at your location. If you are a scholar engaged in research, please <a href="/contact-us">contact us</a> for more information.
<% elsif @pbcore.private? %>
Please note: This content is only available at
the Library of Congress. For information about on location research,
<a href="/on-location">click here</a>.
Please note: This content is not currently available in the Online Reading Room. If you are a scholar engaged in research, please <a href="/contact-us">contact us</a> for more information.
<% elsif !@pbcore.digitized? && !@pbcore.contributing_organization_objects.empty? %>
Please note: This content is not currently available in the Online Reading Room. If you are a scholar engaged in research, please <a href="/contact-us">contact us</a> for more information.
<% elsif !@pbcore.digitized? && !@pbcore.contributing_organization_objects.empty? %>
This content has not been digitized. Please contact the contributing organization(s) listed below.
<% elsif !@pbcore.digitized? && @pbcore.contributing_organization_objects.empty? %>
Expand Down
4 changes: 2 additions & 2 deletions spec/features/catalog_spec.rb
Expand Up @@ -424,7 +424,7 @@ def expect_all_the_text(fixture_name)
visit '/catalog/cpb-aacip-80-12893j6c'
# No need to click through
expect_all_the_text('clean-bad-essence-track.xml')
expect(page).to have_text('This content has not been digitized.')
expect(page).to have_text('Please note: This content is not currently available in the Online Reading Room.')
expect_no_media
end

Expand Down Expand Up @@ -459,7 +459,7 @@ def expect_all_the_text(fixture_name)
visit 'catalog/cpb-aacip_111-21ghx7d6'
ENV.delete('RAILS_TEST_IP_ADDRESS')
expect_all_the_text('clean-exhibit.xml')
expect(page).to have_text('only available at WGBH and the Library of Congress. ')
expect(page).to have_text('Please note: This content is currently not available at your location.')
expect_no_media
end

Expand Down
2 changes: 1 addition & 1 deletion spec/support/link-check-ignore.txt
Expand Up @@ -221,4 +221,4 @@ http://www.nytimes.com/2012/12/25/us/alcatraz-american-indian-occupation-graffit
https://www.imls.gov/
https://www.loc.gov/collections/civil-rights-history-project/?q=emmett+till
http://digicoll.library.wisc.edu/cgi/f/findaid/findaid-idx?c=wiarchives;cc=wiarchives;q1=Carnegie%20Commission;rgn=main;view=text;didno=uw-whs-us0066af

https://www.senate.gov/artandhistory/history/common/investigations/Watergate.htm

0 comments on commit 460e97c

Please sign in to comment.