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.
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.
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>
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.
Whole bunch of deps in PQA and SO too. Skipping for now.
Created attachment 166120 [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> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed for 24.05! Well done everyone, thank you!
Depends on Bug 35348 not in 23.11.x
No updates required to the manual - this fixes an issue with the output from printing a list,