Bugzilla – Attachment 130233 Details for
Bug 29621
Add link for Lists on opac-detail.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29621: Add link for Lists on opac-detail.pl
Bug-29621-Add-link-for-Lists-on-opac-detailpl.patch (text/plain), 2.07 KB, created by
Pierre Fagot
on 2022-02-07 14:44:37 UTC
(
hide
)
Description:
Bug 29621: Add link for Lists on opac-detail.pl
Filename:
MIME Type:
Creator:
Pierre Fagot
Created:
2022-02-07 14:44:37 UTC
Size:
2.07 KB
patch
obsolete
>From e519ad4480490797a50c3c3e9f696bcd430d25a6 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 3 Dec 2021 23:01:05 -1000 >Subject: [PATCH] Bug 29621: Add link for Lists on opac-detail.pl > >When logged into the OPAC and viewing a results list of titles on >opac-search.pl it is possible to see if a title is contained in a List. >The link allows the user to click on it to get to the contents of the >List. It would be helpful if the link for the List was also displayed >on opac-detail.pl so the user could get to the results of the List >from that page as well. > >This patch uses Koha::Virtualshelves->get_shelves_containing_record() >in opac detail page like it is used in opac results page. > >Test plan : >1) Connect to OPAC as user U1 >2) Create a public and a private list >3) Add a record B1 to both lists >4) Go to opac detail page of record B1 >5) Without patch your see only link to public list, with patch you also > see link to private list >6) Connect to OPAC as another user U2 >7) Add record B1 to a private list >8) Go to opac detail page of record B1 >9) With patch, check you see only link to your private list, not to list > of user U1 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Pierre Fagot <pierre.fagot@biblibre.com> >--- > opac/opac-detail.pl | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 1c705db734..7242fdaf96 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -918,14 +918,11 @@ $template->param( > ); > > # Lists >-if (C4::Context->preference("virtualshelves") ) { >- my $shelves = Koha::Virtualshelves->search( >+if ( C4::Context->preference("virtualshelves") ) { >+ my $shelves = Koha::Virtualshelves->get_shelves_containing_record( > { >- biblionumber => $biblionumber, >- public => 1, >- }, >- { >- join => 'virtualshelfcontents', >+ biblionumber => $biblionumber, >+ borrowernumber => $borrowernumber, > } > ); > $template->param( shelves => $shelves ); >-- >2.17.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 29621
:
128246
|
128247
|
128282
|
128283
| 130233 |
130234