lib/service_adaptors/scopus.rb in umlaut-3.0.0beta5 vs lib/service_adaptors/scopus.rb in umlaut-3.0.0beta6
- old
+ new
@@ -108,10 +108,10 @@
response =~ /^\w*findit_callback\((.*)\);?$/
response = $1;
# Take the first hit from scopus's results, hope they relevancy ranked it
# well. For DOI/pmid search, there should ordinarly be only one hit!
- results = MultiJson.decode(response)
+ results = MultiJson.load(response)
if ( results["ERROR"])
Rails.logger.error("Error from Scopus API: #{results["ERROR"].inspect} openurl: ?#{request.referent.to_context_object.kev}")
return request.dispatched(self, false)
end