Fix for Bug 4849 - Cannot delete records from Labeled MARC view
authorOwen Leonard <oleonard@myacpl.org>
Wed, 25 Aug 2010 18:36:20 +0000 (14:36 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 12:16:48 +0000 (08:16 -0400)
commitfb5412c529a64ee8ccbe0acf14213ec07d14559f
tree5470a3239f5ced35a9fcc6c7d6504061b51c5797
parent7d44072156e79f3ef52cc3c8f756173d3bbe1e72
Fix for Bug 4849 - Cannot delete records from Labeled MARC view

The template checks for a "count" variable (item count) to see
whether it should allow deletion of the biblio record. For some
reason labeledMARCdetail.pl hard-coded this as 1, which meant
the template always thought was 1 item.

This patch also adds an item count check on the display of
"Delete all items," disabling it if there are no items.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
catalogue/labeledMARCdetail.pl
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc