Bugzilla – Attachment 165634 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.94 KB, created by
Marcel de Rooy
on 2024-04-26 09:44:43 UTC
(
hide
)
Description:
Bug 35348: Remove cookie consents link from opac consents
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-04-26 09:44:43 UTC
Size:
3.94 KB
patch
obsolete
>From af6761cca41247b6b634373ccf55a978fa43b9cc 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 >Content-Type: text/plain; charset=utf-8 > >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> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 023d3bbb34..753d5775e3 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 37ec40ffe0..87268831fc 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 e75217566e..7b766c37d7 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 dab24fe1f0..0d44f11140 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.30.2
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