lib/relaton_iho/iho_bibliography.rb in relaton-iho-1.2.2 vs lib/relaton_iho/iho_bibliography.rb in relaton-iho-1.2.3
- old
+ new
@@ -9,10 +9,10 @@
def search(text, _year = nil, _opts = {})
warn "[relaton-iho] (\"#{text}\") fetching..."
ref = text.sub(/^IHO\s/, "").downcase
uri = URI("#{ENDPOINT}#{ref}.yaml")
resp = Net::HTTP.get_response uri
- returm unless resp.code == "200"
+ return unless resp.code == "200"
hash = HashConverter.hash_to_bib YAML.safe_load(resp.body, [Date])
item = IhoBibliographicItem.new hash
warn "[relaton-iho] (\"#{text}\") found #{item.docidentifier.first.id}"
item