Bug 36003 - Printing list from OPAC shows "Cookies" when CookieConsent enabled
Summary: Printing list from OPAC shows "Cookies" when CookieConsent enabled
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Lists (show other bugs)
Version: 23.11
Hardware: All All
: P5 - low trivial (vote)
Assignee: Martin Renvoize
QA Contact: Testopia
URL:
Keywords:
Depends on: 35348
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-06 14:01 UTC by Mirjam Vantieghem
Modified: 2024-02-10 03:09 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 36003: Add cookie consent buttons to hidden list on print (1007 bytes, patch)
2024-02-07 13:38 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 36003: Add cookie consent buttons to hidden list on print (1.03 KB, patch)
2024-02-10 03:07 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Mirjam Vantieghem 2024-02-06 14:01:30 UTC
If system preference CookieConsent is set to "Required", the word "Cookies" appears at the bottem left on the last page, under the last result, when printing a list from the OPAC. Funny, but not desirable.
Not sure if similar to bug #12260.
Comment 1 Martin Renvoize 2024-02-07 13:38:16 UTC
Created attachment 161801 [details] [review]
Bug 36003: Add cookie consent buttons to hidden list on print

This patch adds #consentMoreInfo, #cookieConsentFooter and
.consentAcceptEssential to the hidden fields for OPAC printing.
Comment 2 David Nind 2024-02-10 03:07:51 UTC
Created attachment 162001 [details] [review]
Bug 36003: Add cookie consent buttons to hidden list on print

This patch adds #consentMoreInfo, #cookieConsentFooter and
.consentAcceptEssential to the hidden fields for OPAC printing.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2024-02-10 03:09:45 UTC
Testing notes (using koha-testing-docker):

1. Set the CookieConsent system preference to required.
2. Create a public list and add some items.
3. Go to the OPAC and view the list (don't log in, or click the 'Accept all cookies' prompt in the footer).
4. Print the list.
5. Note that "Accept all cookies" is printed near the bottom of the page.
6. Apply the patch.
7. Rebuild the CSS: yarn build
8. Restart everything: reset_all
9. Refresh the list page and print the list again - it should now not show "Accept all cookies" near the bottom of the page.