Bug 26305 - Warn IE users of staff interface that it is no longer supported and to use a supported browser instead
Summary: Warn IE users of staff interface that it is no longer supported and to use a ...
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Browser compatibility (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 06:32 UTC by David Cook
Modified: 2022-12-12 21:24 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 26305: Detect Internet Explorer and show warning in Staff Interface (1.74 KB, patch)
2020-08-27 06:57 UTC, David Cook
Details | Diff | Splinter Review
Screenshot of IE warning (135.02 KB, image/jpeg)
2020-08-27 06:58 UTC, David Cook
Details
Bug 26305: Detect Internet Explorer and show warning in Staff Interface (1.80 KB, patch)
2020-09-03 14:16 UTC, PTFS Europe Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2020-08-27 06:32:03 UTC
I frequently get people raising issues about Koha not working because they're using Internet Explorer.

While I think it is very sensible for Koha not to support IE, I think it might be useful in this transitional time to show a warning banner on the Staff Interface to tell users that they can't use IE anymore and expect Koha to work.
Comment 1 David Cook 2020-08-27 06:57:53 UTC
Created attachment 109217 [details] [review]
Bug 26305: Detect Internet Explorer and show warning in Staff Interface

Koha no longer works with Internet Explorer. Since this change,
and Microsoft's own dropping of support for IE is quite recent,
let us show a banner warning staff interface users, so they
can understand why Koha does not work as expected when they try
to use it in IE.

This patch detects a Microsoft property in the window object,
and displays an alert banner, when one uses Koha's staff
interface in Internet Explorer.

To test:
1) Go to http://localhost:8081 in Internet Explorer
2) Note the banner that says the following:
"Koha no longer supports the Internet Explorer browser. Please
use a supported browser such as Firefox, Chrome, or Edge."
Comment 2 David Cook 2020-08-27 06:58:25 UTC
Created attachment 109218 [details]
Screenshot of IE warning
Comment 3 David Cook 2020-09-02 04:30:24 UTC
I haven't gotten any responses on Bugzilla or via the listserv, but I will start running this locally very soon. I'm happy to report back on our local experience.
Comment 4 PTFS Europe Sandboxes 2020-09-03 14:16:49 UTC
Created attachment 109629 [details] [review]
Bug 26305: Detect Internet Explorer and show warning in Staff Interface

Koha no longer works with Internet Explorer. Since this change,
and Microsoft's own dropping of support for IE is quite recent,
let us show a banner warning staff interface users, so they
can understand why Koha does not work as expected when they try
to use it in IE.

This patch detects a Microsoft property in the window object,
and displays an alert banner, when one uses Koha's staff
interface in Internet Explorer.

To test:
1) Go to http://localhost:8081 in Internet Explorer
2) Note the banner that says the following:
"Koha no longer supports the Internet Explorer browser. Please
use a supported browser such as Firefox, Chrome, or Edge."

Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>
Comment 5 Henry Bolshaw 2020-09-03 14:19:18 UTC
Tested on sandbox. I can confirm that the warning banner appeared in IE but did not appear in Chrome, Edge or Firefox.
Comment 6 David Cook 2020-09-04 03:51:29 UTC
(In reply to Henry Bolshaw from comment #5)
> Tested on sandbox. I can confirm that the warning banner appeared in IE but
> did not appear in Chrome, Edge or Firefox.

Cheers!
Comment 7 Marcel de Rooy 2020-09-05 15:59:08 UTC
(In reply to David Cook from comment #0)
> I frequently get people raising issues about Koha not working because
> they're using Internet Explorer.
> 
> While I think it is very sensible for Koha not to support IE, I think it
> might be useful in this transitional time to show a warning banner on the
> Staff Interface to tell users that they can't use IE anymore and expect Koha
> to work.

Ten years ago we couldnt use the staff client either with Internet Explorer. You speak here about "not .. anymore" and "transitional time". I dont understand. What happened? Where are you referring to? Which transition?

Shouldnt we speak about "Does not support" ?
Until now we 'tolerated' use of IE like "on your own risk". Do we really need an agressive banner like the one here?

Moving to In discussion
Comment 8 David Cook 2020-09-07 00:49:39 UTC
(In reply to Marcel de Rooy from comment #7)
> Ten years ago we couldnt use the staff client either with Internet Explorer.

That's not correct. I've supported Internet Explorer for Koha for about 8.5 years now. I've contributed a few patches to Koha to provide Internet Explorer support over the years. 

> You speak here about "not .. anymore" and "transitional time". I dont
> understand. What happened? Where are you referring to? Which transition?
 
Microsoft will no longer support Internet Explorer for their own apps like Office 365 starting from November 2020. 

> Shouldnt we speak about "Does not support" ?
> Until now we 'tolerated' use of IE like "on your own risk". Do we really
> need an agressive banner like the one here?
 
I don't think it's aggressive. Quite the opposite. I think it's user-friendly. It improves UX, since users will see the problem is their browser, rather than the problem being a broken Koha. 

As I noted above, I'm constantly getting complaints from people saying that Koha is broken in the staff interface, even after I tell them they can't use Internet Explorer anymore (before 19.11 they could still use IE 11). 

So I will be applying a patch like like locally very soon, but I figured I'd contribute it back to the community, as I'm sure other people will be having this same issue.
Comment 9 Marcel de Rooy 2020-09-07 06:15:41 UTC
(In reply to David Cook from comment #8)

Thanks for your feedback.

> > Ten years ago we couldnt use the staff client either with Internet Explorer.
> That's not correct. I've supported Internet Explorer for Koha for about 8.5
> years now. I've contributed a few patches to Koha to provide Internet
> Explorer support over the years. 

Well, it is correct. We already use Koha for more than 10 years in production. And all the time I have been redirecting our staff users away from IE. Such recommendations were found in the wiki and documentation too. I dont recall any exact issues anymore, but some things just didnt work in IE (related to some standard Javascript things?). Display stuff?

> > You speak here about "not .. anymore" and "transitional time". I dont
> > understand. What happened? Where are you referring to? Which transition?
> Microsoft will no longer support Internet Explorer for their own apps like
> Office 365 starting from November 2020. 

Okay. That is more clear.
Comment 10 David Cook 2020-09-08 01:21:44 UTC
(In reply to Marcel de Rooy from comment #9)
> Well, it is correct. We already use Koha for more than 10 years in
> production. And all the time I have been redirecting our staff users away
> from IE. Such recommendations were found in the wiki and documentation too.
> I dont recall any exact issues anymore, but some things just didnt work in
> IE (related to some standard Javascript things?). Display stuff?
 
I've had librarians using the Koha staff interface with IE for the last 10 years. While it may not have been recommended, I made it work for them, because they had no other options than IE for browsers at their workplaces. (That's changing with Microsoft pushing Edge over IE.)

Typically, it was Javascript issues, but in many cases I was able to fix them using fairly simple feature detection.

Technically, I could actually make master Koha work in IE by transpiling the Javascript, but with Edge being available it's just not worth the effort anymore. Edge represents a viable alternative to IE for corporate IT. 

> > > You speak here about "not .. anymore" and "transitional time". I dont
> > > understand. What happened? Where are you referring to? Which transition?
> > Microsoft will no longer support Internet Explorer for their own apps like
> > Office 365 starting from November 2020. 
> 
> Okay. That is more clear.

No worries. It's an exciting time!
Comment 11 Marcel de Rooy 2020-09-08 11:11:59 UTC
Moving back to SO. Thx for feedback
Comment 12 Katrin Fischer 2020-09-12 21:54:05 UTC
Text in .js files requires __( to be translatable. _( can only be used in templates. See: https://wiki.koha-community.org/wiki/Coding_Guidelines#JS5:_Enabling_translation_of_language_strings_in_linked_JavaScript But I believe as the .js file in question is outside of the language directories, this won't work there either.

I am not sure, but do we really want this check on every page? Would it not be enough to warn on the start page maybe?
Comment 13 David Cook 2020-09-13 23:19:47 UTC
(In reply to Katrin Fischer from comment #12)
> Text in .js files requires __( to be translatable. _( can only be used in
> templates. See:
> https://wiki.koha-community.org/wiki/Coding_Guidelines#JS5:
> _Enabling_translation_of_language_strings_in_linked_JavaScript But I believe
> as the .js file in question is outside of the language directories, this
> won't work there either.
> 

Ahh good to know. I'll look at fixing that.

> I am not sure, but do we really want this check on every page? Would it not
> be enough to warn on the start page maybe?

That's a good point, although in theory we never know how people access the staff client. If they're using browser bookmarks, it could be possible to avoid the start page I think.
Comment 14 Owen Leonard 2022-05-05 14:39:39 UTC
Is this WONTFIX by now?
Comment 15 David Cook 2022-05-05 23:39:59 UTC
(In reply to Owen Leonard from comment #14)
> Is this WONTFIX by now?

Yeah for sure. Done!