|
|
|
@ -28,6 +28,7 @@ module Imports |
|
|
|
attributes["owning_organisation_id"] = find_organisation_id(xml_doc, "OWNINGORGID") |
|
|
|
attributes["owning_organisation_id"] = find_organisation_id(xml_doc, "OWNINGORGID") |
|
|
|
attributes["type"] = unsafe_string_as_integer(xml_doc, "DerSaleType") |
|
|
|
attributes["type"] = unsafe_string_as_integer(xml_doc, "DerSaleType") |
|
|
|
attributes["old_id"] = meta_field_value(xml_doc, "document-id") |
|
|
|
attributes["old_id"] = meta_field_value(xml_doc, "document-id") |
|
|
|
|
|
|
|
attributes["old_form_id"] = safe_string_as_integer(xml_doc, "Form") |
|
|
|
attributes["creation_method"] = creation_method(xml_doc) |
|
|
|
attributes["creation_method"] = creation_method(xml_doc) |
|
|
|
attributes["created_at"] = Time.zone.parse(meta_field_value(xml_doc, "created-date")) |
|
|
|
attributes["created_at"] = Time.zone.parse(meta_field_value(xml_doc, "created-date")) |
|
|
|
attributes["updated_at"] = Time.zone.parse(meta_field_value(xml_doc, "modified-date")) |
|
|
|
attributes["updated_at"] = Time.zone.parse(meta_field_value(xml_doc, "modified-date")) |
|
|
|
|