From 3cb2b6966b8ebff0921949ba86c9142b2ab25eb8 Mon Sep 17 00:00:00 2001 From: Aude Charillon Date: Fri, 17 Nov 2023 15:30:22 +0000 Subject: [PATCH] Bug 34793: Add default HTML Customisations for cookie information This patch adds some default html customisation content for the cookie consent feature. Test plan 1) Run through the installer and pick to import the sample news items 2) Confirm that after enabling the CookieConsent preference that the default content appears in the cookie bar at the bottom of the page and in the modal that appears after clicking 'More information' Mentored-by: Martin Renvoize --- .../data/mysql/en/optional/sample_news.yml | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/installer/data/mysql/en/optional/sample_news.yml b/installer/data/mysql/en/optional/sample_news.yml index b2f8db7dd2b..0d1cca555a7 100644 --- a/installer/data/mysql/en/optional/sample_news.yml +++ b/installer/data/mysql/en/optional/sample_news.yml @@ -53,6 +53,19 @@ tables: expirationdate: "2099-01-10" number: 1 + - code: "CookieConsentBar_1" + category: "html_customizations" + location: "CookieConsentBar" + published_on: "2007-10-29 05:25:58" + expirationdate: "2099-01-10" + number: 1 + + - code: "CookieConsentPopup_1" + category: "html_customizations" + location: "CookieConsentPopup" + published_on: "2007-10-29 05:25:58" + expirationdate: "2099-01-10" + number: 1 - additional_contents_localizations: translatable: [ title, content ] multiline: [ content ] @@ -99,3 +112,83 @@ tables: - "**Expected behavior**" - "A clear and concise description of what you expected to happen." lang: "default" + + - additional_content_id: 5 + title: "Cookie consent bar" + content: + - "

The online catalog uses functional cookies: these are essential to make the site work.

" + lang: "default" + + - additional_content_id: 6 + title: "Cookie information" + content: + - "

What are cookies?

" + - "

Cookies are small text files placed on your browser by websites. They help make websites work, or work more efficiently. They also \u0022remember\u0022 some of your preferences, so you don't have to set a preference again every time you switch to a different page on the same website.

" + - "

If cookies are a concern for you, you may like to regularly clear your cookies on your browser or use a private browser mode. Check your browser settings for these options.

" + - "

Essential cookies

" + - "

Here is the list of essential cookies used on the Koha online catalog.

" + - "

Some of these depend on settings chosen by the library team; therefore all the cookies listed may not apply to this site.

" + - "" + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - " " + - "
StorageNameValueExpirationDescription
CookieCGISESSIDSession IDUntil logout or end of sessionSession cookie
CookieKohaOpacLanguageLanguage code3 yearsStores the language the user selected, so the online catalog will appear in that same language the next time it is visited.
Cookie" + - "

form_serialized

" + - "

form_serialized_limits

" + - "
Search terms and limitsEnd of session or when the advanced search page is accessed again.jQuery cookie. Stores search terms and limits of the last advanced search. Set when an advanced search is submitted.
Cookiesearch_path_codeads (fewer) or exs (more)End of session or when the advanced search page is accessed again.jQuery cookie. Related to serialized_form* cookies. Stores if the advanced search form was used with 'More options' or 'Fewer options'.
Cookienum_paragraphCount of search options addedEnd of session or when the advanced search page is accessed again.jQuery cookie. Used to store the number of created options when user selects 'More options' in advanced search to increase search boxes.
Cookiebib_listList of record IDs (biblionumbers) separated by /End of session or until the cart is emptied.Stores cart contents in the online catalog. Set when records are added to the cart for the first time.
" + - "

Non-essential cookies

" + - "

The library team may create additional cookies. These are optional and will require your agreement before they are used.

" + - "

If any non-essential cookies are created, they will appear below.

" + lang: "default" + + -- 2.42.0