Class: RelatonIso::Hit
- Inherits:
-
RelatonBib::Hit
- Object
- RelatonBib::Hit
- RelatonIso::Hit
- Defined in:
- lib/relaton_iso/hit.rb
Overview
Hit.
Instance Method Summary collapse
Instance Method Details
#fetch(lang = nil) ⇒ RelatonIso::IsoBibliographicItem
Parse page.
9 10 11 |
# File 'lib/relaton_iso/hit.rb', line 9 def fetch(lang = nil) @fetch ||= Scrapper.parse_page @hit, lang end |
#sort_weight ⇒ Integer
14 15 16 17 18 19 20 21 |
# File 'lib/relaton_iso/hit.rb', line 14 def sort_weight case hit["publicationStatus"] && hit["publicationStatus"]["key"] when "ENT_ACTIVE" then 0 when "ENT_PROGRESS" then 1 when "ENT_INACTIVE" then 2 else 3 end end |