Koha/koha-tmpl/opac-tmpl
Martin Renvoize 96f7ef4636
Bug 35346: Update template logic to display 'Essential'
This patch updates the cookie consent template logic to always display
the 'Accept essential cookies' button and only expose the 'Accept all
cookies' button when there are additional cookies to accept, i.e. when
JSConsents is populated.

Test plan
1) Enable CookieConsent
2) Note you see 'Accept essential cookies' in both OPAC and Staff client
   until you have accepted them
3) Add a cookie to ConsentJS
4) Note that you will now see 'Accept all cookies' as well as the 'Accept
   essential cookies' button.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-26 11:21:18 +01:00
..
bootstrap Bug 35346: Update template logic to display 'Essential' 2024-03-26 11:21:18 +01:00
lib Bug 35638: Upgrade Enquire JS library from v2.0.1 to v2.1.6 2024-03-22 10:35:28 +01:00
xslt Bug 33270: (follow-up) Handle records that fail attempt to ignore bad characters 2023-07-18 12:46:58 -03:00