Bug 35483: Restore holds table select to switch item level holds to record level...
authorLari Taskula <lari.taskula@hypernova.fi>
Mon, 4 Dec 2023 22:51:45 +0000 (22:51 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 30 Jan 2024 16:48:43 +0000 (17:48 +0100)
commitc20f4568ad15c5a073c074d9bd7ab0949d32aa65
treea788be56d8829978637bf14f0d00f3911b1f0117
parentb5ccd83c6f85b28affe82d980178e376a3dd0a1d
Bug 35483: Restore holds table select to switch item level holds to record level holds

To test:
1. Apply patch
2. Add item level hold to a record/item, make sure patron has no other
   holds on that record
3. Go to /cgi-bin/koha/reserve/request.pl?biblionumber=xxx where xxx is
   the record you placed the hold for
4. Under "Existing holds" table, in "Details" column you should see
   "Only item <barcode>" dropdown
5. Select "Next available" from the dropdown
6. Click Update hold(s)
7. Observe dropdown is gone and cell value has changed from
   "Only item <barcode>" to "Next available"
8. Cancel the hold and add two item level holds for the same patron
9. Under "Existing holds" table, in "Details" column you should see
   "Only item <barcode>", but no select dropdown

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc