Bug 23206

Summary: Batch patron modification from reports which return cardnumber
Product: Koha Reporter: Owen Leonard <oleonard>
Component: ReportsAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Josef Moravec <josef.moravec>
Severity: enhancement    
Priority: P5 - low CC: black23, fridolin.somers, josef.moravec, koha-bugs, lisettepalouse+koha, martin.renvoize, maryse.simard, testopia
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This enhancement adds `Batch patron modification` to the available options display when a report outputs a list of borrowernumbers or cardnumbers.
Version(s) released in:
19.11.00
Bug Depends on: 19233, 23197    
Bug Blocks: 25536, 23390    
Attachments: Screenshot snippet showing the menu of batch operations
Bug 23206: Batch patron modification from reports which return cardnumber
Bug 23206: Batch patron modification from reports which return cardnumber
Bug 23206: Batch patron modification from reports which return cardnumber
Bug 23206: Batch patron modification from reports which return cardnumber

Description Owen Leonard 2019-06-25 15:43:16 UTC
Batch patron operations should be available to reports which return borrowernumber or cardnumber columns:

 - Batch patron modification
 - Add to patron list
 - Add to new patron card batch?
 - Batch patron deletion?
Comment 1 Owen Leonard 2019-07-18 17:55:23 UTC
I'm changing the scope of this bug because there isn't a clear path to any option besides batch patron modification.
Comment 2 Owen Leonard 2019-07-18 18:05:20 UTC
Created attachment 91606 [details]
Screenshot snippet showing the menu of batch operations

A screenshot showing the menu of batch operations available on a report which returns biblionumbers, itemnumbers, and cardnumbers
Comment 3 Owen Leonard 2019-07-18 18:16:53 UTC Comment hidden (obsolete)
Comment 4 Maryse Simard 2019-07-19 19:28:05 UTC Comment hidden (obsolete)
Comment 5 ByWater Sandboxes 2019-07-19 21:19:32 UTC Comment hidden (obsolete)
Comment 6 Josef Moravec 2019-07-25 17:41:02 UTC
Created attachment 91771 [details] [review]
Bug 23206: Batch patron modification from reports which return cardnumber

This patch adds an option to submit patron card numbers from report
results to the batch patron modification tool.

As with a report which returns biblionumbers or itemnumbers, a button
appears at the top of report results which triggers a menu of batch
operation options.

To test, apply the patch and create a report which includes patron card
number in the results.

 - Run the report and confirm that under the "Batch operations" button
   a batch patron modification menu item appears.
   - Confirm that selecting this option sends the correct patrons to the
     batch patron modification tool.
 - Test also with a report which returns both patron cardnumber and
   biblionumber or itemnumber.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>

Signed-off-by: George <george@nekls.org>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 7 Martin Renvoize 2019-07-26 10:19:23 UTC
Nice work!

Pushed to master for 19.11.00
Comment 8 Fridolin Somers 2019-08-09 12:37:11 UTC
Depends on Bug 23197 not in 19.05.x