Bugzilla – Attachment 91676 Details for
Bug 23206
Batch patron modification from reports which return cardnumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23206: Batch patron modification from reports which return cardnumber
Bug-23206-Batch-patron-modification-from-reports-w.patch (text/plain), 3.80 KB, created by
ByWater Sandboxes
on 2019-07-19 21:19:32 UTC
(
hide
)
Description:
Bug 23206: Batch patron modification from reports which return cardnumber
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2019-07-19 21:19:32 UTC
Size:
3.80 KB
patch
obsolete
>From f4b1d8c1112ecc3b86b1d3088303a51aafa22a33 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 25 Jun 2019 16:47:42 +0000 >Subject: [PATCH] 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> >--- > .../prog/en/modules/reports/guided_reports_start.tt | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index ba2dc6dbe9..45f3789c20 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -788,7 +788,14 @@ canned reports and writing custom SQL reports.</p> > [% END %] > </form> > >- [% IF ( batch_biblionumbers || batch_itemnumbers ) %] >+ <form method="POST" action="/cgi-bin/koha/tools/modborrowers.pl" id="batch_patron_modification"> >+ <input type="hidden" name="op" value="show" /> >+ [% # Preserve the whitespace of the following textarea in order to format the values correctly %] >+ <textarea style="display:none" name="cardnumberlist" id="cardnumberlist">[% FOREACH result IN results %][% FOREACH cells IN result.cells %][% place = loop.index %][% IF header_row.$place.cell == 'cardnumber' %][% SET batch_cardnumbers = 1 %] >+[% cells.cell | html %][% END %][% END %][% END %]</textarea> >+ </form> >+ >+ [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] > <p> > <div class="dropdown"> > <button class="btn btn-default dropdown-toggle" type="button" id="batch_mod_menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> >@@ -821,6 +828,15 @@ canned reports and writing custom SQL reports.</p> > <a href="#" data-submit="batch_item_deletion" data-toggle="tooltip" data-placement="right" title="Send visible items to batch item deletion" class="batch_op send_to_item_del">Batch item deletion</a> > </li> > [% END %] >+ [% IF header_ro.cell == 'cardnumber' %] >+ [% IF ( batch_biblionumbers || batch_itemnumbers ) %] >+ <li role="separator" class="divider"></li> >+ [% END %] >+ <li class="dropdown-header">Patron records</li> >+ <li> >+ <a href="#" data-submit="batch_patron_modification" data-toggle="tooltip" data-placement="right" title="Send visible results to batch patron modification" class="batch_op send_to_patron_mod">Batch patron modification</a> >+ </li> >+ [% END %] > [% END %] > </ul> <!-- /.dropdown-menu --> > </div> <!-- /.dropdown --> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23206
:
91606
|
91608
|
91666
|
91676
|
91771