lib/relaton_calconnect/hit.rb in relaton-calconnect-1.14.1 vs lib/relaton_calconnect/hit.rb in relaton-calconnect-1.14.2

- old
+ new

@@ -1,9 +1,14 @@ module RelatonCalconnect class Hit < RelatonBib::Hit # Parse page. # @return [RelatonCalconnect::CcBliographicItem] def fetch - @fetch ||= Scrapper.parse_page @hit + # @fetch ||= Scrapper.parse_page @hit + @fetch ||= begin + url = "#{HitCollection::GHURL}#{@hit[:file]}" + resp = Faraday.get url + CcBibliographicItem.from_hash YAML.safe_load(resp.body) + end end end end