Skip to content

Commit

Permalink
fix for change in homosaurus format
Browse files Browse the repository at this point in the history
  • Loading branch information
stkenny committed Jan 14, 2025
1 parent d446a2d commit f166b98
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/authorities/qa/authorities/homosaurus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ def search(q)

json_response['@graph'].map do |res_hash|
{
id: res_hash['@id'],
label: res_hash['skos:prefLabel']
label: res_hash['skos:prefLabel']['@value'],
id: res_hash['@id']
}
end
rescue StandardError => e
Rails.logger.error "Homosaurus Authority: #{e.message}"
end
end
end

0 comments on commit f166b98

Please sign in to comment.