Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Alex Buckley 5c2daf28a5
Bug 13552: (follow-up) Add debar option to batch patron modification
As per test feedback I've changed wording from debarrment to restriction

Added insertion into the borrower_debarments table and removal from
borrower_debarments table (and borrowers.debarred and
borrowers.debarredcomment) when either 'Restriction
expiration' or 'Restriction comment' are ticket to be disabled/deleted.

Test plan (please follow this instead of following test plan in the
first patch):

1. Go to Tools > Batch patron modification

2. Input the cardnumbers of several (undebarred/unrestricted) patrons
and submit

3. Notice there is no input for setting Restriction expiration date or
Restriction comment

Also notice in the list of matching borrowers at the top of the page
there is no display of the 'Restriction expiration' or 'Restriction
comment' values for the patron

4. Apply patch

5. Restart memcached and plack

6. Refresh the page notice 'Restriction expiration' (a date picker
input) and 'Restriction comment'are now input options

Also notice in the table at the top of the page 'Restriction
expiration' and 'Restriction comment' are shown on the far right of the table (you may need
to scroll to see this)

7. Pick a date in the 'Restriction expired' datepicker and write in text into
the 'Restriction comment' field and submit

8. Notice in the next loaded page the selected patrons have the
'Restriction expiration' and 'Restriction comment' values you entered

9. Query the borrower_debarments database table and check that the new
debarments are added to this table

10. Go back to the Batch patron modification page and re-input the same
cardnumbers

11. Write text into the 'Restriction comment' field and don't pick a
'Restriction expiration' value and submit

12. Notice in the next loaded page the selected patrons have the
'Restriction expiration' value of 9999-12-31 and 'Restriction comment'
value you just entered

13. Query the borrowers table and notice the borrowers.debarred value
for the modified patrons is '9999-12-31' and the
borrower.debarredcomment is what you inputted in step 11

14. Query the borrower_debarments table and notice the expiration value
is NULL and the comment value is set to what you entered in step 11

Also note the addition of the new debarment has not removed the existing
debarment on the patrons

15. Click on the cardnumber link of one of the patrons and notice the red
text on their patron account page informing you they are restricted
until the date you set

16. In the Koha home directory enter Koha shell:
sudo koha-shell <instancename>

17. Run: prove xt

18. All tests should pass

19. Repeat step 10 and tick the checkbox beside the 'Restriction
expiration' field and submit

20. In the next loaded screen notice the 'Restricted expiration'and
'Restricted comment' are empty

Check the borrower_debarments table and notice all restrictions for the
patron are removed.

Check the borrowers table and notice the debarred and debarredcomment
fields are empty for the patrons

21. Repeat steps 10 and 11 to make a new restriction

22. Repeat step 19 and this time check the 'Restriction comment' field
and submit and observe that also clears the restriction in the next
loaded page, in the borrower_debarments and borrowers table

23. Sign off

Sponsored-By: Brimbank Library, Australia
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-08-13 11:49:43 +01:00
..
access_files.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
automatic_item_modification_by_age.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
batch_delete_records.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
batch_record_modification.tt Bug 23196: (follow-up) Add comments to highlight structure 2019-06-28 14:38:19 +01:00
batchMod-del.tt Bug 22914: Add holds column to batch item delete to fix show/hide columns behaviour 2019-05-30 10:15:19 +00:00
batchMod-edit.tt Bug 19722: Don't show items at job completion if over pref 2019-03-28 18:06:23 +00:00
batchMod.tt Bug 21433: Update two-column templates with Bootstrap grid: Tools part 1 2018-11-08 02:18:46 +00:00
cleanborrowers.tt Bug 11642: (follow-up) Improve Batch patron deletion and anonymization GUI to make consequences clearer 2019-07-15 12:43:03 +01:00
csv-profiles.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
export.tt Bug 21434: Update two-column templates with Bootstrap grid: Tools part 2 2018-10-27 14:20:58 +00:00
holidays.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
import_borrowers.tt Bug 23385: (follow-up) Update link 2019-08-13 11:44:04 +01:00
inventory.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
koha-news.tt Bug 23279: In news management interface, sort news by publication date descending 2019-07-19 14:03:39 +01:00
letter.tt Bug 23278: Reopen last panel upon "Save and continue" in notices 2019-07-19 14:07:36 +01:00
manage-marc-import.tt Bug 23094: Use Bootstrap-style pagination on staged MARC records page 2019-07-15 11:28:06 +01:00
marc_modification_templates.tt Bug 15814: Add missing filters 2019-06-21 13:07:40 +01:00
modborrowers.tt Bug 13552: (follow-up) Add debar option to batch patron modification 2019-08-13 11:49:43 +01:00
overduerules.tt Bug 21435: Update two-column templates with Bootstrap grid: Tools part 3 2018-10-27 14:20:59 +00:00
picture-upload.tt Bug 21993: Display a user-friendly message when the CSRF token is wrong 2019-01-25 20:38:32 +00:00
preview_letter.tt Bug 21795: Switch two-column templates to Bootstrap grid: Notices and slips 2018-12-26 20:47:03 +00:00
quotes-upload.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
quotes.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
scheduler.tt Bug 21436: Update two-column templates with Bootstrap grid: Tools part 4 2019-01-04 03:13:48 +00:00
showdiffmarc.tt Bug 21436: Update two-column templates with Bootstrap grid: Tools part 4 2019-01-04 03:13:48 +00:00
stage-marc-import.tt Bug 19417: (QA follow-up) Fix missing $raw filter 2019-03-13 05:31:34 +00:00
stockrotation.tt Bug 22209: Move stock rotation stage and item forms into modals 2019-08-08 16:05:50 +01:00
tools-home.tt Bug 11642: change / to and in related tools menu 2019-07-15 12:43:12 +01:00
upload-images.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
upload.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
viewlog.tt Bug 22069: Make log viewer find item renewals 2019-04-16 13:17:32 +00:00