Bugzilla – Attachment 188669 Details for
Bug 41113
Missing doc-head-close and cssinclude in sci-main.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41113: Missing doc-head-close and cssinclude in sci-main.tt
Bug-41113-Missing-doc-head-close-and-cssinclude-in.patch (text/plain), 4.20 KB, created by
Owen Leonard
on 2025-10-30 16:31:40 UTC
(
hide
)
Description:
Bug 41113: Missing doc-head-close and cssinclude in sci-main.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-10-30 16:31:40 UTC
Size:
4.20 KB
patch
obsolete
>From 13ea68aa5d25e00218ad1c1658daff8e159f9d21 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 30 Oct 2025 16:10:30 +0000 >Subject: [PATCH] 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 >--- > .../bootstrap/en/modules/sci/sci-main.tt | 57 ++++--------------- > 1 file changed, 10 insertions(+), 47 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >index db3333f9603..8396b7c89cb 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt >@@ -21,57 +21,20 @@ > [% END %] > [% END %] > [% PROCESS 'html_helpers.inc' %] >-[% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] > [% SET SelfCheckInMainUserBlock = AdditionalContents.get( location => "SelfCheckInMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] > [% INCLUDE 'doc-head-open.inc' %] >-[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %] > <title>Self check-in › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha[% END %]</title> >- >-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >-<meta name="generator" content="Koha" /> >-<!-- leave this for stats --> >- >-[% IF ( Koha.Preference('OpacFavicon') ) %] >- <link rel="shortcut icon" href="[% Koha.Preference('OpacFavicon') | url %]" type="image/x-icon" /> >-[% ELSE %] >- <link rel="shortcut icon" href="[% interface | html %]/[% theme | html %]/images/favicon.ico" type="image/x-icon" /> >-[% END %] >-[% Asset.css("lib/fontawesome/css/fontawesome.min.css") | $raw %] >-[% Asset.css("lib/fontawesome/css/brands.min.css") | $raw %] >-[% Asset.css("lib/fontawesome/css/solid.min.css") | $raw %] >-[% IF ( bidi ) %] >- [% Asset.css("css/sco-rtl.css") | $raw %] >-[% ELSE %] >- [% Asset.css("css/sco.css") | $raw %] >-[% END %] >-[% IF ( Koha.Preference('OPACUserCSS') ) %] >- <!-- prettier-ignore-start --> >- <style>[% Koha.Preference('OPACUserCSS') | $raw %]</style> >- <!-- prettier-ignore-end --> >-[% END %] >-[% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %] >- <!-- prettier-ignore-start --> >- <style> >- [% Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) | $raw %] >- </style> >- <!-- prettier-ignore-end --> >-[% END %] >-[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %] >- <!-- prettier-ignore-start --> >- <style>[% Koha.Preference('SelfCheckInUserCSS') | $raw %]</style> >- <!-- prettier-ignore-end --> >-[% END %] >-<script> >- var Koha = {}; >- function _(s) { >- return s; >- } // dummy function for gettext >-</script> >-[% IF lang && lang != 'en' %] >- [% Asset.js(lang _ '/js/locale_data.js') | $raw %] >+[% INCLUDE 'doc-head-close.inc' %] >+[% BLOCK cssinclude %] >+ [% SET SelfCheckInUserCSS = Koha.Preference('SelfCheckInUserCSS') %] >+ [% IF ( SelfCheckInUserCSS ) %] >+ <!-- prettier-ignore-start --> >+ <!-- SelfCheckInUserCSS --> >+ <style>[% SelfCheckInUserCSS | $raw %]</style> >+ <!-- prettier-ignore-end --> >+ [% Asset.css("css/sco.css") | $raw %] >+ [% END %] > [% END %] >-[% Asset.js('js/Gettext.js') | $raw %] >-[% Asset.js('js/i18n.js') | $raw %] > </head> > <body id="sci_main" class="sci"> > [% INCLUDE 'masthead-sci.inc' %] >-- >2.39.5
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 41113
: 188669