lib/collectionspace/mapper/term_handler.rb
# the next two methods need to be updated when not-found terms become blocking errors instead
#  of warnings. At that point, we no longer want to generate and store a refname for the
#  term, since it will not be mapped.
# at the point of switching error, the termtype and termsubtype parameters can be removed from
#  cached_term
the next two methods need to be updated when not-found terms become blocking errors instead
of warnings. At that point, we no longer want to generate and store a refname for the
term, since it will not be mapped.
at the point of switching error, the termtype and termsubtype parameters can be removed from
cached_term
the next two methods need to be updated when not - found terms become blocking errors instead of warnings . At that point we no longer want to generate and store a refname for the term since it will not be mapped . at the point of switching error the termtype and termsubtype parameters can be removed from cached_term
def add_new_unknown_term(val, term_report)
        unknown_term = CollectionSpace::Mapper::UnknownTerm.new(
          type: type,
          subtype: subtype,
          term: val
        )
        urn = unknown_term.urn
        @terms << term_report.merge({found: false, refname: unknown_term})
        add_missing_record_error('term', val)
        [val, case_swap(val)].each{ |value| @cache.put('unknownvalue', type_subtype, value, urn) }
      end
def add_new_unknown_term ( val , term_report ) unknown_term = CollectionSpace :: Mapper :: UnknownTerm . new ( type : type , subtype : subtype , term : val ) urn = unknown_term . urn @terms << term_report . merge ( { found : false , refname : unknown_term } ) add_missing_record_error ( 'term' , val ) [ val , case_swap ( val ) ] . each { | value | @cache . put ( 'unknownvalue' , type_subtype , value , urn ) } end
the next two methods need to be updated when not-found terms become blocking errors instead
of warnings.
the next two methods need to be updated when not - found terms become blocking errors instead of warnings .
val
term_report