Bug 33713

Summary: Report batch operations should open in new tab
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: ReportsAssignee: Lucas Gass <lucas>
Status: RESOLVED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P5 - low CC: lucas, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
When using the batch operations from report results, the links to the batch tools will now open in a new tab instead of the same one, leaving the report results visible.
Version(s) released in:
23.05.00,22.11.07
Attachments: Bug 33713: Make batch operations from report results open in new tab
Bug 33713: Make batch operations from report results open in new tab
Bug 33713: Make batch operations from report results open in new tab

Description Andrew Fuerste-Henry 2023-05-10 16:47:20 UTC
When using the batch operations from report results, it would be great if the batch operation links defaulted to opening in a new tab, rather than navigating one away from the report results. 

I'm working on a project that involves running a report with a runtime variable, doing a batch edit on all of the objects in the results, then rerunning the report with a new variable, a new edit, and so on. Getting pushed out of the reports module for each batch action makes the workflow much more cumbersome.
Comment 1 Lucas Gass 2023-05-12 18:11:41 UTC
Created attachment 151157 [details] [review]
Bug 33713: Make batch operations from report results open in new tab

To test:
1. Have some reports that can do the following batch operations:
    -Batch patron mod
    -Batch item deletion
    -Batch add to list
    -Batch item mod
    -Batch record delection
    -Batch record mod

2. Run the report ann click 'Batch operations with X visible records', make sure each batch op opens in a new tab.

These two simple reports should allow you to test each of the batch cases:

select * from items limit 1
select * from borrowers limit 1
Comment 2 ByWater Sandboxes 2023-05-12 18:59:32 UTC
Created attachment 151159 [details] [review]
Bug 33713: Make batch operations from report results open in new tab

To test:
1. Have some reports that can do the following batch operations:
    -Batch patron mod
    -Batch item deletion
    -Batch add to list
    -Batch item mod
    -Batch record delection
    -Batch record mod

2. Run the report ann click 'Batch operations with X visible records', make sure each batch op opens in a new tab.

These two simple reports should allow you to test each of the batch cases:

select * from items limit 1
select * from borrowers limit 1

Signed-off-by: Andrew  Fuerste-Henry <andrewfh@dubcolib.org>
Comment 3 Marcel de Rooy 2023-05-17 13:39:01 UTC
Created attachment 151337 [details] [review]
Bug 33713: Make batch operations from report results open in new tab

To test:
1. Have some reports that can do the following batch operations:
    -Batch patron mod
    -Batch item deletion
    -Batch add to list
    -Batch item mod
    -Batch record delection
    -Batch record mod

2. Run the report ann click 'Batch operations with X visible records', make sure each batch op opens in a new tab.

These two simple reports should allow you to test each of the batch cases:

select * from items limit 1
select * from borrowers limit 1

Signed-off-by: Andrew  Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 4 Tomás Cohen Arazi 2023-05-18 14:36:11 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!
Comment 5 Matt Blenkinsop 2023-06-08 16:51:54 UTC
Nice work everyone!

Pushed to stable for 22.11.x