Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Commit

Permalink
temporary fix for nypl rights statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Audrey Altman committed Feb 7, 2017
1 parent 1d64647 commit 21845aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ def titles(options = {})
# @return [Array<String>]
# downcase first letter if rights statement is URI
def rights
# This conditional is a temporary fix for NYPL rights. It returns a general
# rights statement only in absence of a standarized rights statement.
# This should be removed one the NYPL mapping is fixed.
return if provider == "The New York Public Library" &&
standardized_rights_statement.present?

Array.wrap(@sourceResource['rights'])
end

Expand Down

0 comments on commit 21845aa

Please sign in to comment.