From fc0efe7909a1e826748ec6cb8b07aeae0eff7ff7 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 4 Jan 2024 14:03:45 +0000 Subject: [PATCH] Bug 35702: Use framework code from biblio object Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer (cherry picked from commit c703bb2c1cdefa85843a1c04ff659f49cbe30497) Signed-off-by: Fridolin Somers (cherry picked from commit f8ab19a3eb0557cccb4b54de7edd34424775122c) Signed-off-by: Lucas Gass --- C4/AuthoritiesMarc.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 7e013ff00e..bcf7924ed9 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -23,7 +23,7 @@ use warnings; use MARC::Field; use C4::Context; -use C4::Biblio qw( GetFrameworkCode ModBiblio ); +use C4::Biblio qw( ModBiblio ); use C4::Search qw( FindDuplicate new_record_from_zebra ); use C4::AuthoritiesMarc::MARC21; use C4::AuthoritiesMarc::UNIMARC; @@ -1570,7 +1570,7 @@ sub merge { } } next if !$update; - ModBiblio($marcrecord, $biblionumber, GetFrameworkCode($biblionumber)); + ModBiblio($marcrecord, $biblionumber, $biblio->frameworkcode); $counteditedbiblio++; } return $counteditedbiblio; -- 2.39.5