lib/exlibris/primo/link.rb in exlibris-primo-1.1.1 vs lib/exlibris/primo/link.rb in exlibris-primo-1.1.2

- old
+ new

@@ -10,9 +10,16 @@ self.abstract = true attr_accessor :institution, :record_id, :original_id, :url, :display, :notes, :subfields + + def initialize *args + # URLs may have XML escaped ampersands + # so we need to account for that. + args.last[:url].gsub!("&", "&") unless args.last.nil? + super(*args) + end end # # Primo fulltext link. # \ No newline at end of file