Bugzilla – Attachment 91666 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.75 KB, created by
Maryse Simard
on 2019-07-19 19:28:05 UTC
(
hide
)
Description:
Bug 23206: Batch patron modification from reports which return cardnumber
Filename:
MIME Type:
Creator:
Maryse Simard
Created:
2019-07-19 19:28:05 UTC
Size:
3.75 KB
patch
obsolete
>From 9c9350510c90d7bf14448e37ab3dd28f3f8d6649 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> >--- > .../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 ba2dc6d..45f3789 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.7.4
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