From 5e1a1171cbf4996c648a11b88c95dacc2d9eeb83 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 5 May 2022 14:02:26 +0000 Subject: [PATCH] Bug 30613: Hide RSS feed link when viewing private list in the OPAC This patch wraps the List RSS icon in a check on whether the list is public. Private lists RSS can only be accessed by a logged-in patron. To test apply the patch and view a public list in the OPAC. You should see an RSS link icon next to the list title. Now log in to the OPAC and view a private list. There should be no RSS link. Note the QA tool warning about the aria-hidden attribute is a false positive. The parent element has a label. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index df83785141..05388eb3e8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -198,9 +198,11 @@ [% IF shelf AND op == 'view' %]

[% shelf.shelfname | html %] - - - + [% IF ( public ) %] + + + + [% END %]

[% IF ( itemsloop ) %] -- 2.39.5