Bugzilla – Attachment 178642 Details for
Bug 35545
UNIMARC: if $9 is set and EasyAnalytics is off, the item will still show on the record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35545: Unexpected items in PRO (UNIMARC-only)
Bug-35545-Unexpected-items-in-PRO-UNIMARC-only.patch (text/plain), 1.12 KB, created by
Frédéric Demians
on 2025-02-25 11:46:30 UTC
(
hide
)
Description:
Bug 35545: Unexpected items in PRO (UNIMARC-only)
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2025-02-25 11:46:30 UTC
Size:
1.12 KB
patch
obsolete
>From 1ef3568c75eff12e4aa62e3f2def6d973d128a9d Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35545
:
160680
|
160681
|
160682
|
160731
| 178642