Bug 41113

Summary: Missing doc-head-close and cssinclude in sci-main.tt
Product: Koha Reporter: Owen Leonard <oleonard>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: aleisha, alexbuckley, david, dcook, hammat.wele, lucas, testopia
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21266
GIT URL: Initiative type: ---
Sponsorship status: Sponsored Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 41144    
Bug Blocks:    
Attachments: Bug 41113: Missing doc-head-close and cssinclude in sci-main.tt

Description Owen Leonard 2025-10-27 18:18:36 UTC
+++ This bug was initially created as a clone of Bug #21266 +++

Many of the some changes should be made to the self checkin templates
Comment 1 Owen Leonard 2025-10-30 16:31:40 UTC
Created attachment 188669 [details] [review]
Bug 41113: Missing doc-head-close and cssinclude in sci-main.tt

This patch makes changes to the self checkin template in order to
replace inline markup with doc-head-close.inc. A cssinclude BLOCK is
added for the inclusion of SelfCheckInUserCSS.

To test you must have the SelfCheckInModule system preference enabled.

- In the staff client, add a link to a custom stylesheet in the
  OpacAdditionalStylesheet system preference. For example:
  https://static.myacpl.org/public/css/test.css
- Go to the self-checkin page and confirm that the page background is
  now blue.
- Empty the OpacAdditionalStylesheet preference and add custom CSS to
  the SelfCheckInUserCSS preference.
- Reload the self checkin page to confirm that your CSS has been
  applied.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2026-01-01 18:25:40 UTC
I had a go at testing, but I couldn't get it to work for me:

1. For step 3, I emptied OpacAdditionalStylesheet and reloaded the page - it turned back to normal (without the light blue background).
2. I added the same CSS to SelfCheckInUserCSS, and refreshed the page (I also deleted the cache and restarted everything) - the background remained normal, not the light blue.
3. The CSS is the page source (I added a comment just to make sure):
     <!-- SelfCheckInUserCSS --> <style>/* This is a comment */ body { background-color: #7bbbff; } </style>