From b44a37f23d910a743a06538a58ab9caa880917e6 Mon Sep 17 00:00:00 2001 From: Erica Titkemeyer Date: Tue, 7 Jan 2025 15:50:38 -0500 Subject: [PATCH] reverting to allow nil for format --- app/services/aapb/batch_ingest/pbcore_xml_mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/aapb/batch_ingest/pbcore_xml_mapper.rb b/app/services/aapb/batch_ingest/pbcore_xml_mapper.rb index 0ea341e8..50708817 100644 --- a/app/services/aapb/batch_ingest/pbcore_xml_mapper.rb +++ b/app/services/aapb/batch_ingest/pbcore_xml_mapper.rb @@ -171,7 +171,7 @@ def person_attributes(person, role) def physical_instantiation_resource_attributes @physical_instantiation_resource_attributes ||= instantiation_attributes.tap do |attrs| - attrs[:format] = pbcore.physical.value if pbcore.physical.value.present? + attrs[:format] = pbcore.physical.value || nil end end