lib/psulib_traject/processors/pub_date.rb
# Based on the date_type, return the proper value.
Based on the date_type, return the proper value.
Based on the date_type return the proper value .
def find_date(field008)
      return unless field008 && field008.length >= 11
      date_type = date_type(field008)
      return if date_type.nil?
      date1_str, date2_str = dates_str(field008)
      case date_type
      when 'p', 'r'
        resolve_date date_to_resolve(date1_str, date2_str)
      when 'q'
        resolve_range(date1_str, date2_str)
      else
        resolve_date date1_str
      end
    end
def find_date ( field008 ) return unless field008 && field008 . length >= 11 date_type = date_type ( field008 ) return if date_type . nil? date1_str , date2_str = dates_str ( field008 ) case date_type when 'p' , 'r' resolve_date date_to_resolve ( date1_str , date2_str ) when 'q' resolve_range ( date1_str , date2_str ) else resolve_date date1_str end end
Based on the date_type, return the proper value.
Based on the date_type return the proper value .
# Reissue/reprint/re-recording, etc. # Questionable # Default case, just resolve the first date.
field008