From 1ef3568c75eff12e4aa62e3f2def6d973d128a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Tue, 25 Feb 2025 12:39:13 +0100 Subject: [PATCH] Bug 35545: Unexpected items in PRO (UNIMARC-only) In PRO, for UNIMARC installation, analytical related items are retrieved based on 461$9 content. But it can't work (like with MARC21 773$9 field) because 461$9 contains the biblionumber of a related biblio record. This must be completly disabled for UNIMARC. --- Koha/Biblio.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index c9baa0d154..837304c532 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -743,10 +743,9 @@ sub _host_itemnumbers { my ($self) = @_; my $marcflavour = C4::Context->preference("marcflavour"); + return [] if $marcflavour eq 'UNIMARC'; + my $analyticfield = '773'; - if ( $marcflavour eq 'UNIMARC' ) { - $analyticfield = '461'; - } my $marc_record = $self->metadata->record; my @itemnumbers; foreach my $field ( $marc_record->field($analyticfield) ) { -- 2.34.1