Class: Exlibris::Aleph::TabParser::TabWwwItemDesc

Inherits:
Base
  • Object
show all
Defined in:
lib/exlibris/aleph/tabs_parser/tab_www_item_desc.rb

Instance Attribute Summary

Attributes inherited from Base

#config_array, #config_hash, #file_name, #hash_key, #library, #local_file, #local_path, #pattern, #pattern_key

Instance Method Summary collapse

Methods inherited from Base

#to_a, #to_h

Constructor Details

#initialize(args) ⇒ TabWwwItemDesc

Returns a new instance of TabWwwItemDesc.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/exlibris/aleph/tabs_parser/tab_www_item_desc.rb', line 6

def initialize(args)
  args[:aleph_file_name] = "tab_www_item_desc.eng"
  args[:pattern] = /^(ITEM-STATUS    )\s(.{80})\s([^\n]*)/
  args[:pattern_key] = {
    1  => :code, 
    2  => :original_text, 
    3  => :web_text
  }
  args[:hash_key] = :original_text
  super(args)
end