From 7ded1e3f8fc1d1cf3e1116cfbcb17de6583c25d2 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 Signed-off-by: David Nind Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 2e0871fa1bfb6ca9999b050d48912baa5a8e0b5e) Signed-off-by: Lucas Gass --- .../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 2b1f520b92..579dbbbc5c 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 @@ - + [% IF ( logged_in_user ) %] + + [% END %] -- 2.39.5