Skip to content

Commit

Permalink
Merge pull request #4316 from tulibraries/BL-1852
Browse files Browse the repository at this point in the history
BL-1852 Handle empty collections in cdm integration
  • Loading branch information
ebtoner authored Mar 15, 2024
2 parents 4871f22 + 0c0a2ba commit d00c720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/search_engines/bento_search/cdm_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def cdm_collection_name(cdm_alias)
cdm_url = "https://digital.library.temple.edu/digital/bl/dmwebservices/index.php?q=dmGetCollectionList/json"
response = JSON.load(URI.open(cdm_url))
collection = response.select { |collection| collection["secondary_alias"] if collection["secondary_alias"] == cdm_alias }
collection.first["name"]
collection.first["name"] unless collection.blank?
end
end
end

0 comments on commit d00c720

Please sign in to comment.