From d571cad48163709044790657792ee0b59c430948 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. Signed-off-by: Katrin Fischer --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt | 3 +++ koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt | 4 +++- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 4 +++- 3 files changed, 9 insertions(+), 2 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 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/help.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt index bc50e98507..eb8a349ee9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/help.tt @@ -8,7 +8,9 @@ -[% 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 %] [% Asset.css("css/sco.css") | $raw %] [% IF ( Koha.Preference('OPACUserCSS') ) %][% END %] [% IF ( SCOUserCSS ) %][% END %] 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