Koha-clms/Koha/Template/Plugin
Matt Blenkinsop 49bfb9ff39
Bug 27378: Introduce cookie consent to OPAC and staff client
To avoid confusion around commit messages and the content of this enhancement, this first commit is a squashed commit of all the original code submited to this bug. Following a few years of inactivity, it has been rebased and re-submitted with some fixes and concept changes contained in the more recent commits.

Signed-ff-by: Barry Cannon <bc@interleaf.ie>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (follow-up) Add missing filters

(cherry picked from commit 6b8565b949b62269f6d850e6d412458d0dbcfb37)
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: Fix accessibility issues

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: Update to new atomicupdate structure

This patch consolidates the previous 4 database update files into one atomicupdate file in line with the new structure

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: Change ConsentJS to CookieConsentedJS

This patch updates the name of the ConsentJS syspref to CookieConsentedJS and amends the description to be more clear what the syspref is for

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: Stop the codemirror editor and delete confirmation from duplicating

Previously, if the "Add new code button" was clicked in the CookieConsentedJS editor, the original entry would have duplicated CodeMirror editors.
This was exponential, i.e adding two new lines would result in three codemirror editors appearing on the first entry, two on the second and so on.
The click event was not being applied properly and was being applied to every element with the .expand-textarea class, rather than specifically the new elements being created. The addExpandHandler function now loops through each element individually and decides whether to apply the click event handler.

Similarly, the delete confirmation was dupliacting for the same reason. This has also been resolved.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: Remove two sysprefs and replace with html customisations

Currently there are two sysprefs - CookieConsentBar and CookieConsentPopup. These allow the user to select what text they would like to see in the consent bar and modal. These have been removed and replaced with HTML customisations to allow more flexible customisations and different languages.

Sponsored by: PTFS-Europe

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (QA follow-up) Small fixes and tidy-ups

This patch does the following:
- Realphabetizes the lines in sysprefs.sql
- Fixes a formatting error in patrons.pref
- Adjusts the position of the cookie consent bar if the language selector is visible
- Fixes translatability on the syspref modal

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (QA follow-up) Allow staff to view their cookie consents

This patch allows staff to view their cookie consents through a link in the dropdown menu in the navbar. Previously staff had no way of accessing their cookie consents

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (QA follow-up) Add cancel button to cookie modal

This patch adds a cancel button to the modal for reviewing cookie consents. Previously there was no way to exit without selecting one of the cookie options

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (QA follow-up) Add filtering for OPAC only and staff only cookies

This patch fixes an issue where cookies selected as OPAC only would still show in the staff client and vise versa. The cookies are now filtered and only the correct cookies will be used in the OPAC and staff client

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Bug 27378: (QA follow-up) Fix tests and character encoding

This patch fixes an encoding issue when using diacritics. It also fixes a failing test, corrects the format of the "Cancel" links in the modal and perltidy has been used on all relevant files

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-12 09:45:07 -03:00
..
AdditionalContents.pm Bug 29691: Use template to display news on opac homepage 2023-06-15 08:48:13 -03:00
Asset.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
AudioAlerts.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
AuthClient.pm Bug 33708: Provide non-public endpoint for OAuth/OIDC for staff interface 2023-05-18 11:35:15 -03:00
AuthorisedValues.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Biblio.pm Bug 30291: Changes to controller scripts 2022-05-05 11:17:36 -10:00
Branches.pm Bug 29826: Manage call of Template Plugin Branches GetName() with null or empty branchcode 2022-03-03 16:11:50 -10:00
Cache.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Categories.pm Bug 32127: Sort by description in Koha::Template::Plugin::Categories 2023-04-14 11:35:23 -03:00
CirculationRules.pm Bug 30901: Add POD for Koha::Template::Plugin::CirculationRules 2022-08-16 10:43:10 -03:00
ClassSources.pm Bug 11844: Fix QA issues (POD, TT filters, file exec flag) 2023-05-16 12:58:38 +02:00
Context.pm Bug 23166: Early return if no set 2020-08-25 12:01:38 +02:00
Desks.pm Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
Frameworks.pm Bug 33607: Handle default framework 2023-05-16 15:17:44 -03:00
HtmlId.pm Bug 27336: Add POD for new package 2021-01-11 10:27:37 +01:00
HtmlTags.pm Bug 18665 - Translatability: Add tt filter to allow html tags inside tt directives 2017-06-21 11:22:18 -03:00
I18N.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ItemTypes.pm Bug 29454: Use Koha Cache Memory Lite to stash itemtype descriptions for template plugin 2022-06-24 11:55:34 -03:00
JSConsents.pm Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
Koha.pm Bug 30524: (QA follow-up) Only generate CSRF token if it will be used 2023-08-07 21:00:06 -03:00
KohaDates.pm Bug 33029: Add wrapper method for dt_from_string to KohaDates template toolkit plugin 2023-07-06 12:24:17 -03:00
KohaPlugins.pm Bug 32680: Add cover images plugin hook 2023-05-15 08:53:55 -03:00
KohaSpan.pm Bug 15707: (QA follow-up) Allow object names to be styled without impeding translation 2018-02-12 15:41:08 -03:00
Languages.pm Bug 18213: Add Template plugin and fix for C4/Languages 2019-03-28 15:57:32 +00:00
Price.pm Bug 4078: Pass with_symbol to module 2018-03-23 11:45:38 -03:00
Registers.pm Bug 24665: Add support for filtering by cash register 2020-11-06 15:55:17 +01:00
Remove_MARC_punctuation.pm Bug 19578: Remove MARC punctuation in notices (TT syntax) 2018-04-04 15:45:43 -03:00
TablesSettings.pm Bug 29723: Add a "Configure table" button for KohaTable tables 2022-08-16 10:12:26 -03:00
To.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
raw.pm Bug 13618: Add POD to raw.pm 2018-08-17 16:14:14 +00:00