class RefParsers::CIWParser
Public Class Methods
new(missing_type_key_action=:raise_exception)
click to toggle source
Calls superclass method
# File lib/ref_parsers/ciw_parser.rb, line 4 def initialize(missing_type_key_action=:raise_exception) @footer_regex = /^EF\s*$/ @header_regexes = [/^FN/, /^VR/] @type_key = "PT" @terminator_key = "ER" @line_regex = /^(AB|AF|AP|AR|AU|BE|BN|BP|C1|CA|CL|CR|CY|CT|DE|DI|DT|ED|EM|EP|ER|EF|EI|FN|FU|FX|GA|HO|ID|IS|J9|JI|LA|NR|OI|PD|PA|PG|PI|PN|PT|PU|PY|PM|RP|RI|SC|SE|SI|SN|SO|SP|SU|TC|TI|UT|U1|U2|UR|VL|VR|WC|WP|Z9|ZB|Z8|ZS)(\s*(.*))?$/ @key_regex_order = 1 @value_regex_order = 2 @regex_match_length = 4 @missing_type_key_action = missing_type_key_action super() end
Public Instance Methods
friendly_name()
click to toggle source
# File lib/ref_parsers/ciw_parser.rb, line 17 def friendly_name() "Web of Science/CIW Parser" end