Bugzilla – Attachment 134641 Details for
Bug 30613
Hide RSS feed link when viewing private list in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30613: Hide RSS feed link when viewing private list in the OPAC
Bug-30613-Hide-RSS-feed-link-when-viewing-private-.patch (text/plain), 2.17 KB, created by
Owen Leonard
on 2022-05-05 14:10:40 UTC
(
hide
)
Description:
Bug 30613: Hide RSS feed link when viewing private list in the OPAC
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-05-05 14:10:40 UTC
Size:
2.17 KB
patch
obsolete
>From 86da8ff4e63f19977570a95c74a4598c61f984bd Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. >--- > 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' %] > <h1> > [% shelf.shelfname | html %] >- <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint" aria-label="Subscribe to this list"> >- <i class="fa fa-fw fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this list"></i> >- </a> >+ [% IF ( public ) %] >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint" aria-label="Subscribe to this list"> >+ <i class="fa fa-fw fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this list"></i> >+ </a> >+ [% END %] > </h1> > > [% IF ( itemsloop ) %] >-- >2.20.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 30613
:
134641
|
134664
|
134677