Records with no items cannot be deleted from the Labeled MARC view. The error message that comes up says "There are [ 1 ] item(s) attached to this record / You must delete all items before deleting this record." Trying to delete the same record from the Normal view works fine. This may be related to bug 2310 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2310 )
Created attachment 2572 [details] [review] Proposed fix 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.
Fixed as of 3.2-RC.