]> git.koha-community.org Git - koha.git/commit
Bug 15210 - Novelist throws an error if no ISBN
authorNick <nick@bywatersolutions.com>
Wed, 18 Nov 2015 16:49:15 +0000 (11:49 -0500)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 31 Dec 2015 17:00:27 +0000 (18:00 +0100)
commitc80033b27710254c0a5e6f9b69ecbaf378be9402
treeec9eb75a18045254f05cc4b5ed5f438bf9233e54
parent706ab6c926bfaed5c79412e9cadfe2e5dd7cd9f4
Bug 15210 - Novelist throws an error if no ISBN

This patch makes opac-detail.tt check for an ISBN before attempting to load
Novelist content and prevents a js error which breaks other code.

To test:
1 - Enable novelist
2 - Add a visible change to OPACUserJS eg: $(document).ready(function()
    {$("body").css("background-color","pink");}); 3 - Load a record with no ISBN
4 - Note you do not see a color change in the body and that there is an error
    in the console 5 - Apply patch
6 - Reload the record
7 - You should see the color change and no error in the js

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 65c5fa4385a8e080cfd46a8197b4417bcd579b6a)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 77bd7557fa7adb196ed46fd7ae3ceea98db3a67c)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt