Bugzilla – Attachment 162039 Details for
Bug 34793
We should ship default 'CookieConsentPopup' data that describes our required cookies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34793: Add default HTML Customisations for cookie information
Bug-34793-Add-default-HTML-Customisations-for-cook.patch (text/plain), 6.37 KB, created by
Victor Grousset/tuxayo
on 2024-02-12 15:48:09 UTC
(
hide
)
Description:
Bug 34793: Add default HTML Customisations for cookie information
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-02-12 15:48:09 UTC
Size:
6.37 KB
patch
obsolete
>From 2ca7baa017fcdf3362c49a465e17d27326d8b1cf Mon Sep 17 00:00:00 2001 >From: Aude Charillon <aude.charillon@ptfs-europe.com> >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 <martin.renvoize@ptfs-europe.com> >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > .../data/mysql/en/optional/sample_news.yml | 91 +++++++++++++++++++ > 1 file changed, 91 insertions(+) > >diff --git a/installer/data/mysql/en/optional/sample_news.yml b/installer/data/mysql/en/optional/sample_news.yml >index b2f8db7dd2..b2f251aee6 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,81 @@ 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: >+ - "<p>The online catalog uses functional cookies: these are essential to make the site work.</p>" >+ lang: "default" >+ >+ - additional_content_id: 6 >+ title: "Cookie information" >+ content: >+ - "<h3>What are cookies?</h3>" >+ - "<p>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.</p>" >+ - "<p>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.</p>" >+ - "<h3>Essential cookies</h3>" >+ - "<p>Here is the list of essential cookies used on the Koha online catalog.</p>" >+ - "<p>Some of these depend on settings chosen by the library team; therefore all the cookies listed may not apply to this site.</p>" >+ - "<table id=\u0022cookiesinfot\u0022>" >+ - " <thead>" >+ - " <tr>" >+ - " <th>Storage</th>" >+ - " <th>Name</th>" >+ - " <th>Value</th>" >+ - " <th>Expiration</th>" >+ - " <th>Description</th>" >+ - " </tr>" >+ - " </thead>" >+ - " <tbody>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>CGISESSID</td>" >+ - " <td>Session ID</td>" >+ - " <td>Until logout or end of session</td>" >+ - " <td>Session cookie</td>" >+ - " </tr>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>KohaOpacLanguage</td>" >+ - " <td>Language code</td>" >+ - " <td>3 years</td>" >+ - " <td>Stores the language the user selected, so the online catalog will appear in that same language the next time it is visited.</td>" >+ - " </tr>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>" >+ - " <p>form_serialized</p>" >+ - " <p>form_serialized_limits</p>" >+ - " </td>" >+ - " <td>Search terms and limits</td>" >+ - " <td>End of session or when the advanced search page is accessed again.</td>" >+ - " <td>jQuery cookie. Stores search terms and limits of the last advanced search. Set when an advanced search is submitted.</td>" >+ - " </tr>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>search_path_code</td>" >+ - " <td>ads (fewer) or exs (more)</td>" >+ - " <td>End of session or when the advanced search page is accessed again.</td>" >+ - " <td>jQuery cookie. Related to serialized_form* cookies. Stores if the advanced search form was used with 'More options' or 'Fewer options'.</td>" >+ - " </tr>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>num_paragraph</td>" >+ - " <td>Count of search options added</td>" >+ - " <td>End of session or when the advanced search page is accessed again.</td>" >+ - " <td>jQuery cookie. Used to store the number of created options when user selects 'More options' in advanced search to increase search boxes.</td>" >+ - " </tr>" >+ - " <tr>" >+ - " <td>Cookie</td>" >+ - " <td>bib_list</td>" >+ - " <td>List of record IDs (biblionumbers) separated by /</td>" >+ - " <td>End of session or until the cart is emptied.</td>" >+ - " <td>Stores cart contents in the online catalog. Set when records are added to the cart for the first time.</td>" >+ - " </tr>" >+ - " </tbody>" >+ - "</table>" >+ - "<h3>Non-essential cookies</h3>" >+ - "<p>The library team may create additional cookies. These are optional and will require your agreement before they are used.</p>" >+ - "<p>If any non-essential cookies are created, they will appear below.</p>" >+ lang: "default" >-- >2.43.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 34793
:
159089
|
159090
|
159094
|
159095
|
159132
|
159133
|
159134
|
159135
|
162014
| 162039 |
162040
|
162041
|
162042