From 03ceba981b203c0bdeb15d87c7286c8788877c10 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Fri, 13 Jun 2025 15:16:30 +0000 Subject: [PATCH] Bug 40143: Added links to private lists in bibliographic record detail page in OPAC Test Plan: 1. In OPAC create a public list, add a book to the list. 2. Notice a link to the list on the biblio's detail page. 3. Create a private list and add the book to it. Notice there is no link to the list in the details page. 4. Apply patch, restart_all 5. Notice there is now a link to the private list --- opac/opac-detail.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 9cd2364f84..7222edc6d6 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -975,7 +975,10 @@ if ( C4::Context->preference("virtualshelves") ) { my $shelves = Koha::Virtualshelves->search( { biblionumber => $biblionumber, - public => 1, + '-or' => { + public => 1, + owner => $borrowernumber + } }, { join => 'virtualshelfcontents', -- 2.30.2