]> git.koha-community.org Git - koha.git/commit
Bug 21078: overdrive.js Catch error if window.opener is not accessible
authorNick Clemens <nick@bywatersolutions.com>
Sat, 14 Jul 2018 14:29:53 +0000 (14:29 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 10 Oct 2018 10:08:35 +0000 (12:08 +0200)
commit8f13b25a177fdd46453fecb38511809792469364
tree99f295015b14142f77588d3217c6761b6daf5c84
parentbde08fa3661b895fc7881bd1523c36761c4667d9
Bug 21078: overdrive.js Catch error if window.opener is not accessible

To Test:
0 - Enable overdrive search results on your koha
1 - From a source develop a link to your koha instance that opens a new
window:
<a target="_blank"
href="http://localhost:8080/cgi-bin/koha/opac-search.pl?q=love">Test</a>
2 - Click that link
3 - Note Overdrive results do not load
4 - Note error in JS console
5 - Apply patch
6 - Click the link again
7 - Note OD results load
8 - Note no error in console

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 6975a6836a21f42675a9394602246891c19d9522)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 20b0ca1f63c6ad97a05476236036996058b784c2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js