lib/berkeley_library/tind/mapping/tind_control_subfield.rb
# pass in rules, a string value; return datafields based on rules
pass in rules, a string value; return datafields based on rules
pass in rules a string value ; return datafields based on rules
def extracted_fields_from_leader(leader_rules, leader_value)
          new_fls = []
          leader_rules.each do |rule|
            sub_value = extract_value(rule, leader_value)
            next unless sub_value
            newfield = extracted_field(rule, sub_value)
            new_fls << newfield if newfield
          end
          new_fls
        end
def extracted_fields_from_leader ( leader_rules , leader_value ) new_fls = [ ] leader_rules . each do | rule | sub_value = extract_value ( rule , leader_value ) next unless sub_value newfield = extracted_field ( rule , sub_value ) new_fls << newfield if newfield end new_fls end
pass in rules, a string value; return datafields based on rules
pass in rules a string value ; return datafields based on rules
leader_rules
<not_specific>
leader_value
<not_specific>