lib/exlibris/primo/record.rb in exlibris-primo-1.0.8 vs lib/exlibris/primo/record.rb in exlibris-primo-1.0.9

- old
+ new

@@ -21,11 +21,17 @@ add_duplicated_control_attributes :sourcerecordids, :sourceids, :originalsourceids, :sourceformats, :sourcesystems, :ilsapiids def initialize *args - @raw_xml = args.last.delete(:raw_xml) + raw_xml = args.last.delete(:raw_xml) + namespaces = args.last.delete(:namespaces) + if namespaces.nil? + @raw_xml = raw_xml + else + @raw_xml = remove_namespaces_from_raw_xml(raw_xml, namespaces) + end super end end end -end \ No newline at end of file +end