Bugzilla – Attachment 72566 Details for
Bug 19233
Add ability to send itemnumbers in report results to batch modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19233 - Add ability to send itemnumbers in report results to batch modification
Bug-19233---Add-ability-to-send-itemnumbers-in-rep.patch (text/plain), 3.22 KB, created by
Julian Maurice
on 2018-03-09 12:34:11 UTC
(
hide
)
Description:
Bug 19233 - Add ability to send itemnumbers in report results to batch modification
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-03-09 12:34:11 UTC
Size:
3.22 KB
patch
obsolete
>From e2a2c05f8f6c5eeb4f91228b67251421600d3864 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 1 Sep 2017 00:54:44 +0000 >Subject: [PATCH] Bug 19233 - Add ability to send itemnumbers in report results > to batch modification > >To test: >1 - Apply patch >2 - Run a report with an itemnumber column >3 - Note there is a linked '^' after column title >4 - Hover over the '^' >5 - You should see a tooltip 'Send visible items to batch modification' >6 - Click the '^' >7 - You should be sent to batch item modification with itemnumbers that >were visible in report > >Signed-off-by: George <george@nekls.org> >Signed-off-by: BWS Sandboxes <ByWaterSandboxes@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >--- > .../en/modules/reports/guided_reports_start.tt | 28 ++++++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) > >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 706e1d683c..ca696e1cb7 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 >@@ -705,14 +705,29 @@ canned reports and writing custom SQL reports.</p> > > <div class="pages">[% pagination_bar %]</div> > [% UNLESS ( errors ) %] >+<form method="POST" id="report_results"> >+<input type="hidden" name="op" value="show"> > <table> >-<tr>[% FOREACH header_ro IN header_row %]<th>[% header_ro.cell %]</th>[% END %]</tr> >+<tr>[% FOREACH header_ro IN header_row %] >+ [% IF header_ro.cell == 'itemnumber' %] >+ <th>[% header_ro.cell %] <a href="" data-toggle="tooltip" title="Send visible items to batch modification" class="send_to_item_mod">^</a></th> >+ [% ELSE %] >+ <th>[% header_ro.cell %]</th> >+ [% END %] >+ [% END %]</tr> > [% FOREACH result IN results %] > <tr> >- [% FOREACH cell IN result.cells %]<td>[% cell.cell %]</td>[% END %] >+ [% FOREACH cells IN result.cells %] >+ [% place = loop.index %] >+ [% IF header_row.$place.cell == 'itemnumber' %] >+ <input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]"> >+ [% END %] >+ <td>[% cells.cell %]</td> >+ [% END %] > </tr> > [% END %] > </table> >+</form> > [% END %] > [% END %] > >@@ -959,6 +974,9 @@ Sub report:<select name="subreport"> > } > > $(document).ready(function(){ >+ >+ $('[data-toggle="tooltip"]').tooltip(); >+ > $('#limit').change(function() { > $('#limitselect').submit(); > }); >@@ -976,6 +994,12 @@ Sub report:<select name="subreport"> > delColumn(); > }); > >+ $(".send_to_item_mod").click(function(e){ >+ e.preventDefault(); >+ $("#report_results").attr("action","/cgi-bin/koha/tools/batchMod.pl"); >+ $("#report_results").submit(); >+ }); >+ > [% IF (saved1) %] > var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { > 'iDisplayLength': [% Koha.Preference('NumSavedReports') %], >-- >2.14.2
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 19233
:
66680
|
67087
|
67186
|
67805
|
67806
|
69920
|
69921
| 72566 |
72567
|
73344
|
73345
|
73346
|
73347
|
73356