Sha256: 6bfcc912363824cd86581ffafd97b9aa11ac01d1d289ae804617df50dd531671
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module RelatonIso # Hit. class Hit < RelatonBib::Hit # Parse page. # @param lang [String, NilClass] # @return [RelatonIso::IsoBibliographicItem] def fetch(lang = nil) @fetch ||= Scrapper.parse_page @hit, lang end def sort_weight case hit["publicationStatus"] when "Published" then 0 when "Under development" then 1 when "Withdrawn" then 2 else 3 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
relaton-iso-1.0.0 | lib/relaton_iso/hit.rb |
relaton-iso-0.12.1 | lib/relaton_iso/hit.rb |
relaton-iso-0.12.0 | lib/relaton_iso/hit.rb |
relaton-iso-0.11.0 | lib/relaton_iso/hit.rb |