Bug 19943: Gentle error handling for bookcount.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 9 Mar 2018 13:51:53 +0000 (10:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Mar 2018 15:32:05 +0000 (12:32 -0300)
commit88fb04d180f5251d3c150e31d767616f08796964
treec383df105f45cef546b09a2cb9cadf5d13971a4c
parentd9bc1949e9dd544cf791acccbdacf5a595458ef8
Bug 19943: Gentle error handling for bookcount.pl

This patch tests the required parameters and redirects with a 400 HTTP
code if parameters are invalid.

It also removes the need for the passed biblioitemnumber which is not
used at all.

A (now) useless sub is removed too.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
circ/bookcount.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt