Class: Exlibris::Aleph::TabParser::Tab15ByItemProcessStatus

Inherits:
SubLibrary
  • Object
show all
Defined in:
lib/exlibris/aleph/tabs_parser/tab15_by_item_process_status.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 SubLibrary

#to_h

Methods inherited from Base

#to_a, #to_h

Constructor Details

#initialize(args) ⇒ Tab15ByItemProcessStatus

Returns a new instance of Tab15ByItemProcessStatus.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/exlibris/aleph/tabs_parser/tab15_by_item_process_status.rb', line 6

def initialize(args)
  args[:aleph_file_name] = "tab15.eng"
  args[:pattern] = /^(.{5})\s([0-9#]{2})\s([A-Z#]{2})\s(L)\s(.{30})\s([YN])\s([YN])\s([YNCT])\s([YN])\s([YN])\s([YN])\s([YN])\s([YN])\s([YN])\s([0-9]{2})\s([YNC])\s([AOC])/
  args[:pattern_key] = {
    1  => :sub_library, 
    2  => :item_status, 
    3  => :item_process_status, 
    5  => :text, 
    6  => :loan,
    7  => :renew,
    8  => :hold_request,
    9  => :photocopy_request,
    10 => :web_opac,
    11 => :specific_item,
    12 => :limit_hold,
    13 => :recall,
    14 => :rush_recall,
    15 => :reloaning_limit,
    16 => :booking_permission,
    17 => :booking_hours
  }
  args[:hash_key] = :item_process_status
  super(args)
end