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

Commit

Permalink
Merge pull request #140 from dpla/DT-1175-NYPL-rights-statements
Browse files Browse the repository at this point in the history
temporary fix for nypl rights statement
  • Loading branch information
markbreedlove committed Feb 7, 2017
2 parents 1d64647 + 21845aa commit c67ccf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/item.rb
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 c67ccf0

Please sign in to comment.