From f7506a324b6b804ba711434cc6dc149e1cb7d79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 1 Mar 2023 10:25:04 +0100 Subject: [PATCH] Bug 33102: Display fields from biblioitems in OPAC Cart The OPAC 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 and display it. 2. You can see that Year column is empty (if you don't have copyright field). 3. Apply the patch. 4. You can see more fields in cart simple/detailed view. --- opac/opac-basket.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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