Bugzilla – Attachment 140856 Details for
Bug 31527
Breadcrumbs for anonymous suggestions are not correct
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31527: Breadcrumbs for anonymous suggestions are not correct
Bug-31527-Breadcrumbs-for-anonymous-suggestions-ar.patch (text/plain), 1.97 KB, created by
Owen Leonard
on 2022-09-22 18:27:35 UTC
(
hide
)
Description:
Bug 31527: Breadcrumbs for anonymous suggestions are not correct
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-09-22 18:27:35 UTC
Size:
1.97 KB
patch
obsolete
>From 485464792907f2d77823332cb1f66dd55737d593 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 22 Sep 2022 16:41:12 +0000 >Subject: [PATCH] Bug 31527: Breadcrumbs for anonymous suggestions are not > correct > >This patch updates the OPAC suggestions template in order to >omit the patron name breadcrumb if there is not a logged-in >user. > >To test, apply the patch and view the OPAC suggestions page >with the AnonSuggestions preference both enabled and disabled. > >- If you are logged in, the page breadcrumbs will be: > Home -> [Your name] -> Purchase suggestions. >- If you are not logged in it should be: > Home -> Purchase suggestions >--- > .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >index 576178db7d..e147adbb0e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -24,11 +24,13 @@ > <li class="breadcrumb-item"> > <a href="/cgi-bin/koha/opac-main.pl">Home</a> > </li> >- <li class="breadcrumb-item"> >- <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> >- </li> >+ [% IF ( logged_in_user ) %] >+ <li class="breadcrumb-item"> >+ <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> >+ </li> >+ [% END %] > <li class="breadcrumb-item active"> >- <a href="#" aria-current="page">Your purchase suggestions</a> >+ <a href="#" aria-current="page">Purchase suggestions</a> > </li> > </ol> > </nav> <!-- /#breadcrumbs --> >-- >2.30.2
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 31527
:
140856
|
140876
|
140914