lib/stanford-mods/searchworks.rb in stanford-mods-0.0.17 vs lib/stanford-mods/searchworks.rb in stanford-mods-0.0.18
- old
+ new
@@ -557,12 +557,13 @@
#look for things like '1865-6 CE'
pos = f_date.index(Regexp.new(match+'...CE'))
pos = pos ? pos.to_i : 0
if f_date.include?(match+' CE') or pos > 0
@pub_year=match
- return match
+ return match
end
end
+ return matches.first
end
end
return nil
end