lib/stanford-mods/searchworks.rb in stanford-mods-1.1.5 vs lib/stanford-mods/searchworks.rb in stanford-mods-1.2.0
- old
+ new
@@ -24,11 +24,11 @@
result << iso639_val
else
result << SEARCHWORKS_LANGUAGES[v.strip]
end
end
- rescue => e
+ rescue
# TODO: this should be written to a logger
p "Couldn't find english name for #{ct.text}"
end
else
vals = ct.text.split(/[,|\ ]/).reject {|x| x.strip.length == 0 }
@@ -420,10 +420,9 @@
end
return @pub_year
end
dates = pub_dates
if dates
- year = []
pruned_dates = []
dates.each do |f_date|
#remove ? and []
if (f_date.length == 4 && f_date.end_with?('?'))
pruned_dates << f_date.gsub('?','0')