class RelatonIso::Hit
Hit
.
Attributes
fetch[W]
@return [RelatonIsoBib::IsoBibliographicItem]
Public Instance Methods
fetch(lang = nil)
click to toggle source
Parse page. @param lang [String, NilClass] @return [RelatonIso::IsoBibliographicItem]
# File lib/relaton_iso/hit.rb, line 12 def fetch(lang = nil) @fetch ||= Scrapper.parse_page @hit, lang end
sort_weight()
click to toggle source
@return [Integer]
# File lib/relaton_iso/hit.rb, line 17 def sort_weight case hit[:status] # && hit["publicationStatus"]["key"] when "Published" then 0 when "Under development" then 1 when "Withdrawn" then 2 when "Deleted" then 3 else 4 end end