lib/berkeley_library/tind/mapping/tind_field_from_single_map.rb
# A referred tag from 880 subfield6 may not have a rule
# For example: 880 subfild6 pass in a value in wrong format
# In above case, rule is nil
# Get mapping parameters from rule when having a rule
A referred tag from 880 subfield6 may not have a rule
For example: 880 subfild6 pass in a value in wrong format
In above case, rule is nil
Get mapping parameters from rule when having a rule
A referred tag from 880 subfield6 may not have a rule For example : 880 subfild6 pass in a value in wrong format In above case rule is nil Get mapping parameters from rule when having a rule
def ready_to_mapping?
          return false unless @mapping_rule
          @map_to_tag = @mapping_rule.tag_destination
          @indicator =  @mapping_rule.indicator
          @single_mapping = @excluding_subfield ? @mapping_rule.single_rule_subfield_excluded_hash : @mapping_rule.single_rule_hash
          return false unless @map_to_tag && @indicator && !@single_mapping.empty?
          true
        end
def ready_to_mapping? return false unless @mapping_rule @map_to_tag = @mapping_rule . tag_destination @indicator = @mapping_rule . indicator @single_mapping = @excluding_subfield ? @mapping_rule . single_rule_subfield_excluded_hash : @mapping_rule . single_rule_hash return false unless @map_to_tag && @indicator && ! @single_mapping . empty? true end
A referred tag from 880 subfield6 may not have a rule
For example: 880 subfild6 pass in a value in wrong format
In above case, rule is nil
Get mapping parameters from rule when having a rule
A referred tag from 880 subfield6 may not have a rule For example : 880 subfild6 pass in a value in wrong format In above case rule is nil Get mapping parameters from rule when having a rule