From 65d6be5f078a07ddb07ec347b6410e9d4ad681ee Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> Date: Tue, 4 Mar 2025 16:13:55 +0100 Subject: [PATCH] Bug 39238: Add links toward private lists in biblio TEST PLAN: 1 - Create a public list, add a book in the list 2 - Notice there is a link on biblio's details on the intranet 3 - Add the book in a private list, notice there is no link on biblio's details 4 - Apply patch 5 - Notice there is now a link to the list --- catalogue/detail.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index d7d13b2f..c6445d4a 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -450,7 +450,10 @@ if ( C4::Context->preference("virtualshelves") ) { my $shelves = Koha::Virtualshelves->search( { biblionumber => $biblionumber, - public => 1, + '-or' => { + public => 1, + owner => $patron->borrowernumber + } }, { join => 'virtualshelfcontents', -- 2.30.2