lib/stanford-mods/searchworks.rb in stanford-mods-0.0.20 vs lib/stanford-mods/searchworks.rb in stanford-mods-0.0.21
- old
+ new
@@ -25,10 +25,9 @@
end
end
rescue => e
# TODO: this should be written to a logger
p "Couldn't find english name for #{ct.text}"
- result << SEARCHWORKS_LANGUAGES[v.strip]
end
else
vals = ct.text.split(/[,|\ ]/).reject {|x| x.strip.length == 0 }
vals.each do |v|
result << SEARCHWORKS_LANGUAGES[v.strip]