lib/stanford-mods/searchworks.rb in stanford-mods-0.0.21 vs lib/stanford-mods/searchworks.rb in stanford-mods-0.0.22
- old
+ new
@@ -348,20 +348,17 @@
val << 'Music-Recording'
when 'sound recording-nonmusical'
val << 'Sound Recording'
when 'software, multimedia'
val << 'Computer File'
- else
- sw_logger.warn "#{druid} has an unknown typeOfResource #{form}"
end
end
end
if val.length>0
return val.uniq
end
if not self.typeOfResource or self.typeOfResource.length == 0
- sw_logger.warn "#{druid} has no valid typeOfResource"
[]
end
end
# Values are the contents of:
@@ -428,10 +425,9 @@
return @pub_year if @pub_year
@pub_year=get_single_digit_century pruned_dates
return @pub_year if @pub_year
end
@pub_year=''
- sw_logger.info("#{druid} no valid pub date found in '#{dates.to_s}'")
return nil
end
#creates a date suitable for sorting. Guarnteed to be 4 digits or nil
def pub_date_sort
pd=nil