Bug 11759: (follow-up) Some fixes
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 9 Apr 2015 08:18:47 +0000 (10:18 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Oct 2015 18:04:09 +0000 (15:04 -0300)
commit63d61e7c50ec81588effd2307339bd53242536f1
tree156c3690ea74004dee2559fbfe56cf5d837b5189
parent98f08fc340ae750ad0b8ea05a80b1c9ae47d8944
Bug 11759: (follow-up) Some fixes

This is a squash of the following patches:

Bug 11759: (follow-up) Prevent access to the batch checkout if not allowed

If a user pass '&batch=1' to the url, he was allowed to access to the
batch checkout page even if the patron is not in an authorised
category.

This patch also fixes the link to "Batch check out" from the "Details"
tab (cf changes in circ-menu.inc).

Bug 11759: FIX Javascript error

The following JS error occurred:
  ReferenceError: MSG_ADD_MESSAGE is not defined

The circulation.js file is useless and should not be included.

Bug 11759: FIX the alert message if an item is on hold.

If an item is on hold, the hold is not cancelled.
This patch corrects the message displayed in this case.

Bug 11759: FIX issue list is empty

The issue list is empty after checking an item out to a patron without
existing checkout.

To reproduce:
- Search for a patron without checkout.
- Check an item out using the "normal" checkout.
- Verify the checkout list contain the checkout.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt