Bugzilla – Attachment 67087 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), 2.93 KB, created by
ByWaterSandboxes
on 2017-09-12 14:16:33 UTC
(
hide
)
Description:
Bug 19233 - Add ability to send itemnumbers in report results to batch modification
Filename:
MIME Type:
Creator:
ByWaterSandboxes
Created:
2017-09-12 14:16:33 UTC
Size:
2.93 KB
patch
obsolete
>From 94715cec86ead7f75e86f6e42d666d78afdaf43f 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> >--- > .../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 5902b92..5311927 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 >@@ -75,6 +75,9 @@ function load_group_subgroups () { > } > > $(document).ready(function(){ >+ >+ $('[data-toggle="tooltip"]').tooltip(); >+ > $('#limit').change(function() { > $('#limitselect').submit(); > }); >@@ -92,6 +95,12 @@ $("#delColumn").on("click",function(){ > 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') %], >@@ -920,14 +929,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 %] > >-- >2.1.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 19233
:
66680
|
67087
|
67186
|
67805
|
67806
|
69920
|
69921
|
72566
|
72567
|
73344
|
73345
|
73346
|
73347
|
73356