Allow the list of borrowers to be created dynamically from a report. So that there is not the need to run the report, and then try to cut and paste a big list.
We could add the patron card creator to the batch actions you can trigger from reports.
Created attachment 152697 [details] [review] Bug 29181: Create patron card creator batch from report result This patch adds the option of taking the results of a report that returns borrowernumbers and create a new patron card creator batch with those results. The logic of the dropdown menu has been modified in order to ensure that duplicate patron modification options aren't shown in the menu when a report return both borrowernumber and cardnumber. To test, apply the patch and create a new report which will return patron borrowernumbers, e.g. SELECT borrowernumber, cardnumber, surname, firstname FROM borrowers order by RAND() LIMIT 20 - Run your report - Click the "Batch operations with..." button at the top of the result - Click "Patron card creator" - A new tab should open with a new patron card creator batch with the patrons from your report.
I don't know if this patch satisfies the original intent of the bug, but I hope it will be useful either way.
Created attachment 152878 [details] [review] Bug 29181: Create patron card creator batch from report result This patch adds the option of taking the results of a report that returns borrowernumbers and create a new patron card creator batch with those results. The logic of the dropdown menu has been modified in order to ensure that duplicate patron modification options aren't shown in the menu when a report return both borrowernumber and cardnumber. To test, apply the patch and create a new report which will return patron borrowernumbers, e.g. SELECT borrowernumber, cardnumber, surname, firstname FROM borrowers order by RAND() LIMIT 20 - Run your report - Click the "Batch operations with..." button at the top of the result - Click "Patron card creator" - A new tab should open with a new patron card creator batch with the patrons from your report. Signed-off-by: Sam Lau <samalau@gmail.com>
Created attachment 156009 [details] [review] Bug 29181: Create patron card creator batch from report result This patch adds the option of taking the results of a report that returns borrowernumbers and create a new patron card creator batch with those results. The logic of the dropdown menu has been modified in order to ensure that duplicate patron modification options aren't shown in the menu when a report return both borrowernumber and cardnumber. To test, apply the patch and create a new report which will return patron borrowernumbers, e.g. SELECT borrowernumber, cardnumber, surname, firstname FROM borrowers order by RAND() LIMIT 20 - Run your report - Click the "Batch operations with..." button at the top of the result - Click "Patron card creator" - A new tab should open with a new patron card creator batch with the patrons from your report. Signed-off-by: Sam Lau <samalau@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 23.11. Nice work everyone, thanks!
Enhancement not pushed to 23.05.x