Bugzilla – Attachment 165570 Details for
Bug 35348
Cookie information should be available regardless of whether you are logged in or not
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35348: Remove cookie consents link from opac consents
Bug-35348-Remove-cookie-consents-link-from-opac-co.patch (text/plain), 3.85 KB, created by
Martin Renvoize (ashimema)
on 2024-04-25 16:09:41 UTC
(
hide
)
Description:
Bug 35348: Remove cookie consents link from opac consents
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-04-25 16:09:41 UTC
Size:
3.85 KB
patch
obsolete
>From 1c1e711db3380fc1d22f3b63e761bd1acb00dd4c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 17 Nov 2023 11:18:27 +0000 >Subject: [PATCH] Bug 35348: Remove cookie consents link from opac consents > >The cookies details modal is now visible for all users from a footer >link, we no longer need it under the 'Consents' tab for logged in users. > >Test plan >1) Enable CookieConsent and add a placholder tracker cookie to > CookieConsentedJS preference >2) Log into the OPAC >3) Note that the 'Consents' link no longer appears in the users page. >4) Enable 'PrivacyPolicyConsent' >5) Note that the 'Consents' link now appears but on navigating to it > there is no link for Cookie consents. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 4 ---- > koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc | 2 +- > .../opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt | 6 ------ > koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js | 2 +- > 4 files changed, 2 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index 023d3bbb34e..753d5775e3e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -2955,10 +2955,6 @@ $star-selected: #EDB867; > } > } > >-#viewCookieConsents { >- margin-top: 10px; >-} >- > #patronconsents h2 { > margin-top: 30px; > font-size: 1.1rem; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc >index 37ec40ffe01..87268831fc9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc >@@ -25,7 +25,7 @@ > [% END %] > <a href="/cgi-bin/koha/opac-memberentry.pl">Personal details</a></li> > >- [% IF Koha.Preference('PrivacyPolicyConsent') || Koha.Preference('CookieConsent') || KohaPlugins.feature_enabled('patron_consent_type') %] >+ [% IF Koha.Preference('PrivacyPolicyConsent') || KohaPlugins.feature_enabled('patron_consent_type') %] > [% IF consentview %]<li class="active">[% ELSE %]<li>[% END %] > <a href="/cgi-bin/koha/opac-patron-consent.pl">Consents</a> > </li> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt >index e75217566e3..7b766c37d71 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt >@@ -78,12 +78,6 @@ > <input id="saveconsent" type="submit" value="Save" class="btn btn-primary" /> > </fieldset> > </form> >- >- [% IF Koha.Preference('CookieConsent') %] >- <h2>Cookies policy</h2> >- <button id="viewCookieConsents" type="button" class="btn btn-success">View your cookie consents</button> >- [% END %] >- > </div> <!-- / #patronconsents --> > </div> <!-- / .col-lg-10 --> > </div> <!-- / .row --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js b/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js >index dab24fe1f04..0d44f11140d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js >@@ -183,7 +183,7 @@ > }); > > // "More information" handler >- $('#consentMoreInfo, #cookieConsentFooter, #cookieConsentButton, #viewCookieConsents').on( >+ $('#consentMoreInfo, #cookieConsentFooter, #cookieConsentButton').on( > 'click', > function (e) { > e.preventDefault(); >-- >2.44.0
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 35348
:
159059
|
159078
|
159079
|
159080
|
159091
|
159092
|
159093
|
159444
|
159445
|
159446
|
165568
|
165569
|
165570
|
165632
|
165633
|
165634