From 714d71a4a2169d1880ccb296df3ca1331e0e1a83 Mon Sep 17 00:00:00 2001 From: codycooperross <50597551+codycooperross@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:28:44 -0500 Subject: [PATCH] Use normalize_publisher method in Metadata class --- lib/bolognese/metadata.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/bolognese/metadata.rb b/lib/bolognese/metadata.rb index 5e8a3d0e..386ff1e3 100644 --- a/lib/bolognese/metadata.rb +++ b/lib/bolognese/metadata.rb @@ -217,12 +217,7 @@ def dates end def publisher - @publisher ||= - if meta.fetch("publisher", nil).respond_to?(:to_hash) - meta.fetch("publisher", nil) - elsif meta.fetch("publisher", nil).respond_to?(:to_str) - { "name" => meta.fetch("publisher", nil) }.compact - end + @publisher ||= normalize_publisher(meta.fetch("publisher", nil)) if meta.fetch("publisher", nil).present? end def identifiers