Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Agustin Moyano 954d2606a8 Bug 23678: Allow cancel holds in bulk
This patch allows staff patrons to cancel multiple holds in bulk.

To test:
1. Apply this patch
2. restart_all
3. In cataloge go to a book and place many holds
CHECK => Holds table shows a column of checkboxes
4. Play with checkboxes (have some fun ;-P)
CHECK => When you manually check all checkboxes, the checkbox in the
header also gets checked.
      => When you uncheck one of the checkboxes, the one in the header also gets unchecked.
      => If no checkbox is checked and you check the one in the header,
all checkboxes get checked.
      => If there are some checkboxes that are checked and others are
not, when you click on the checkbox in the header all checkboxes get
unchecked.
      => If all checkboxes are checked, when you uncheck the one in the
header, all checkboxes get unchecked.
      => Every time you play with checkboxes, the number in the button
"Cancel selected" changes.
5. Check some of the checkboxes and click on cancel selected.
SUCCESS => A background job gets fired to cancel all selected holds.
        => A message should appear with a link to the job.
6. Wait a few seconds and click on the link
SUCCESS => A message appears with the report of the execution of the
background job.
7. Grab a patron and search to hold
8. Select multiple biblios and click on "place hold for <patron>"
CHECK => After holds are confirmed, multiple holds table are shown.. one for
   each record. Checkboxes work exactly the same as before, but scoped
for each individual table. Checkboxes from one table will not affect
checkboxes from other tables.
9. Repeat steps 4 to 6.
10. Check In some of the items so the get in Waiting state.
11. Update expirationdate os some of those holds and set it to
    ReservesMaxPickUpDelay + 1 days earlier
NOTE => ReservesMaxPickUpDelay = 7 days by default, so sql syntax to update would be
     => update reserves set expirationdate = date_sub(expirationdate, interval 8 day) where reserve_id in (...)
12. Repeat steps 4 to 6 but in waitingreserves.pl, in both tabs.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 23678: (QA follow-up) Add missing template filter

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 23678: (QA follow-up) Add missing filters

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 23678: (QA follow-up) Use correct indentation

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

JD amended patch: also Koha/BackgroundJob/BatchCancelHold.pm

JD Amended patch: Full rebase and adjustements made on top of bug 26080.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-01 16:02:58 +02:00
..
acqui Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
admin Bug 26080: Use the task queue for batch delete authorities 2021-10-01 15:35:36 +02:00
authorities Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
basket Bug 26703: authorities, basket and batch folders 2021-04-21 11:16:33 +02:00
batch Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
catalogue Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
cataloguing Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
circ Bug 23678: Allow cancel holds in bulk 2021-10-01 16:02:58 +02:00
clubs Bug 26703: clubs, common & course_reserves folders 2021-04-21 11:16:34 +02:00
common Bug 28350: Fix borrowernotes sorting for patron search 2021-06-14 17:35:20 +02:00
course_reserves Bug 28898: (follow-up) Add context to some more occurrences of Term in course reserves 2021-09-21 20:22:57 +02:00
errors Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
ill Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
installer Bug 25078: Keep atomic updates in "atomicupdate" dir 2021-08-16 11:55:56 +02:00
labels Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
mana
members Bug 28772: Display API secret once 2021-09-30 09:19:05 +02:00
offline_circ Bug 26703: offline_circ and onboarding folders 2021-04-21 11:16:34 +02:00
onboarding Bug 28134: Replace use of input type number in onboarding templates 2021-05-04 15:20:46 +02:00
patron_lists Bug 18747: Select All in Add Patron Option in Patron Lists only selects the first 20 entries 2021-09-20 14:04:48 +02:00
patroncards Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
plugins Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
pos Bug 28390: Move timestamp into grouping row 2021-08-18 15:10:18 +02:00
reports Bug 28454: Add Koha version number to database schema link in reports 2021-09-29 12:47:33 +02:00
reserve Bug 23678: Allow cancel holds in bulk 2021-10-01 16:02:58 +02:00
reviews Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
rotating_collections Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
serials Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
services Bug 28066: Remove select tag's size attribute where it is 1 2021-04-06 15:56:31 +02:00
suggestion Bug 28408: Add 'Last updated' column to suggestions table 2021-07-26 10:47:54 +02:00
tags Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
test
tools Bug 26080: Use the task queue for batch delete authorities 2021-10-01 15:35:36 +02:00
virtualshelves Bug 28427: Terminology: Shelf should be list 2021-06-21 12:07:28 +02:00
about.tt Bug 28912: Remove duplicated warnings on the about page 2021-09-09 10:59:38 +02:00
auth.tt Bug 28914: Fix wording in authentication forms 2021-09-20 12:35:41 +02:00
intranet-main.tt Bug 28819: Fix advanced search button on mainpage.pl incorrectly links to item search 2021-08-19 10:01:15 +02:00