From 00727740513a9f08ade6df487c6683f9b3c81ec8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Dec 2023 15:15:20 +0000 Subject: [PATCH] Bug 35642: Upgrade Font Face Observer library from v2.0.3 to v2.3.0 This patch upgrades the Font Face Observer library from v2.0.3 to the latest release, v2.3.0. The file is moved to its own directory for consistency's sake. To test, apply the patch and clear your browser cache. - Load any page in the OPAC. - The custom font we supply for the OPAC (Noto Sans) should load correctly. - If you want to see more about the functionality of the library, use your browser's developer tools to simulate a slow connection. - The page should load with a default sans-serif font first, and then the downloaded font will be applied. Note: If you throttle your connection speed *too* much, the loading of the custom font will time out and you'll only see the default sans-serif font. Signed-off-by: David Nind Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 2 +- .../opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 2 +- .../opac-tmpl/bootstrap/en/modules/sco/printslip.tt | 2 +- koha-tmpl/opac-tmpl/lib/fontfaceobserver.min.js | 12 ------------ .../lib/fontfaceobserver/fontfaceobserver.min.js | 8 ++++++++ 5 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 koha-tmpl/opac-tmpl/lib/fontfaceobserver.min.js create mode 100644 koha-tmpl/opac-tmpl/lib/fontfaceobserver/fontfaceobserver.min.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 016fdfcf304..e61c1dad066 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -1048,7 +1048,7 @@

Font Face Observer

- Font Face Observer JavaScript library v2.0.3: BSD License + Font Face Observer JavaScript library v2.3.0: BSD 2-Clause "Simplified" License

GreyBox

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index 943c862eaba..1a3809e3f2b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -137,7 +137,7 @@ [% Asset.js("lib/jquery/jquery-3.6.0.min.js") | $raw %] [% Asset.js("lib/jquery/jquery-migrate-3.3.2.min.js") | $raw %] [% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %] -[% Asset.js("lib/fontfaceobserver.min.js") | $raw %] +[% Asset.js("lib/fontfaceobserver/fontfaceobserver.min.js") | $raw %] [% Asset.js("lib/enquire.min.js") | $raw %]