lib/psulib_traject/processors/pub_date.rb
# In case looking at the 008 failed, check 264|*1|c then 260c for a date.
In case looking at the 008 failed, check 264|*1|c then 260c for a date.
In case looking at the 008 failed check 264| * 1|c then 260c for a date .
def check_elsewhere(field264c, field260c)
      date = field264c || field260c
      match = /(\d{4})/.match(date)
      match[1].to_i if match
    end
def check_elsewhere ( field264c , field260c ) date = field264c || field260c match = / ( \d {4}) / . match ( date ) match [ 1 ] . to_i if match end
In case looking at the 008 failed, check 264|*1|c then 260c for a date.
In case looking at the 008 failed check 264| * 1|c then 260c for a date .
# Take the first four digits.
field264c
field260c