From ac576029935194e980bd0112babdc64bbe212c14 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 Oct 2023 15:21:30 +0000 Subject: [PATCH] Bug 35013: Font Awesome icons broken in self checkout and self checkin This patch updates the way Font Awesome icon assets are included on the self checkout and self checkin pages. This change should have been made during the upgrade to Font Awesome 6 (Bug 32910). To test, apply the patch and make sure both SelfCheckInModule and WebBasedSelfCheck system preferences are enabled. - Go to the self checkout module (/cgi-bin/koha/sco/sco-main.pl) and log in. - Check that Font Awesome icons are working: You should see an information icon by the "Help" link in the header, and a check mark icon in the "Finish" button. - Click the help link to confirm that the icon appears there too. - Go to the self checkin module (/cgi-bin/koha/sci/sci-main.pl). - In the header you should see the information icon by the help link and an icon with the "Log out" link too. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt | 3 +++ koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 cc044a6845..50649956c0 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 @@ -34,6 +34,9 @@ [% ELSE %] [% 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 %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 003c792402..2b1581f0c7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -14,7 +14,9 @@ [% ELSE %] [% END %] -[% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %] +[% 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 %] -- 2.30.2