Bug 30613: Hide RSS feed link when viewing private list in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Thu, 5 May 2022 14:02:26 +0000 (14:02 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 6 May 2022 20:33:10 +0000 (10:33 -1000)
commit5e1a1171cbf4996c648a11b88c95dacc2d9eeb83
treef6f92dc5901e80f2b08e910520d8970af7c972e8
parentb63f6d95f7eadba6aa7cbf44b130755c5b2ea7af
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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt