]> git.koha-community.org Git - koha.git/commit
Bug 36099: count and holdcount template vars into JS vars should default to 0 if...
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Mon, 26 Feb 2024 10:03:22 +0000 (10:03 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 15:09:46 +0000 (15:09 +0000)
commita140d42c7bb5657aa4e767c4b0184c06e14c55f7
tree5b9b8cd0dcd82c371b7353105dd26ba762230aed
parent5bfa03865205a8dc086a3d9d763605cfb3aa87ac
Bug 36099: count and holdcount template vars into JS vars should default to 0 if empty

Visit:
http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=4321
Notice you have 2 console errors:
1) Uncaught SyntaxError: Unexpected token ';'
2) Uncaught ReferenceError: biblionumber is not defined

Apply patch. Repeat. Notice no error shows.
Visit an existing biblionumber. Confirm all is well.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f94d763b6a5d671c4860db76263f72d0643b7555)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit d4e1ea5d71fd339c800215f95369cfae51c5ade7)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc