Bugzilla – Attachment 147541 Details for
Bug 33102
Cart in OPAC and staff interface does no longer display infos from biblioitems table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33102: Display fields from biblioitems in OPAC/PRO Cart
Bug-33102-Display-fields-from-biblioitems-in-OPACP.patch (text/plain), 1.93 KB, created by
Frédéric Demians
on 2023-03-01 09:39:03 UTC
(
hide
)
Description:
Bug 33102: Display fields from biblioitems in OPAC/PRO Cart
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2023-03-01 09:39:03 UTC
Size:
1.93 KB
patch
obsolete
>From 2ff6728054c99709a2980a5fb66fdddbd872502d Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Wed, 1 Mar 2023 10:25:04 +0100 >Subject: [PATCH] Bug 33102: Display fields from biblioitems in OPAC/PRO Cart > >The OPAC/PRO cart only displays biblio fields coming from 'biblio' >table. Fields from biblioitems table aren't displayed anymore. > >TO TEST: > >1. Populate a cart in OPAC/PRO and display it. >2. You can see that Year column is empty (if you don't have copyright > field). And other fields. >3. Apply the patch. >4. You can see more fields in cart simple/detailed view. >--- > basket/basket.pl | 2 +- > opac/opac-basket.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/basket/basket.pl b/basket/basket.pl >index 54fabe44d4..697d805477 100755 >--- a/basket/basket.pl >+++ b/basket/basket.pl >@@ -64,7 +64,7 @@ foreach my $biblionumber ( @bibs ) { > $template->param( biblionumber => $biblionumber ); > > my $biblio = Koha::Biblios->find( $biblionumber ) or next; >- my $dat = $biblio->unblessed; >+ my $dat = { %{$biblio->unblessed}, %{$biblio->biblioitem->unblessed} }; > my $record = $biblio->metadata->record; > my $marcnotesarray = $biblio->get_marc_notes; > my $marcauthorsarray = $biblio->get_marc_contributors; >diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl >index 31096332b6..0c5aef2c77 100755 >--- a/opac/opac-basket.pl >+++ b/opac/opac-basket.pl >@@ -71,7 +71,7 @@ foreach my $biblionumber ( @bibs ) { > $template->param( biblionumber => $biblionumber ); > > my $biblio = Koha::Biblios->find( $biblionumber ) or next; >- my $dat = $biblio->unblessed; >+ my $dat = { %{$biblio->unblessed}, %{$biblio->biblioitem->unblessed} }; > > # No filtering on the item records needed for the record itself > # since the only reason item information is grabbed is because of branchcodes. >-- >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 33102
:
147540
|
147541
|
149023
|
150081