lib/relaton_iho/iho_bibliography.rb in relaton-iho-1.7.0 vs lib/relaton_iho/iho_bibliography.rb in relaton-iho-1.7.1

- old
+ new

@@ -14,10 +14,10 @@ uri = URI("#{ENDPOINT}#{ref}.yaml") resp = Net::HTTP.get_response uri return unless resp.code == "200" hash = HashConverter.hash_to_bib YAML.safe_load(resp.body, [Date]) - item = IhoBibliographicItem.new hash + item = IhoBibliographicItem.new **hash warn "[relaton-iho] (\"#{text}\") found #{item.docidentifier.first.id}" item rescue SocketError, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, Net::ReadTimeout, # OpenSSL::SSL::SSLError,