Bugzilla – Attachment 37647 Details for
Bug 13866
Columns configuration - Patrons search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13866: Columns configuration - Patrons search
PASSED-QA-Bug-13866-Columns-configuration---Patron.patch (text/plain), 3.96 KB, created by
Kyle M Hall (khall)
on 2015-04-10 13:11:32 UTC
(
hide
)
Description:
[PASSED QA] Bug 13866: Columns configuration - Patrons search
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-10 13:11:32 UTC
Size:
3.96 KB
patch
obsolete
>From bef48651089c721871d8d32ec4e6f2f9de78e2ca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 18 Mar 2015 13:09:06 +0100 >Subject: [PATCH] [PASSED QA] Bug 13866: Columns configuration - Patrons search > >This patch adds the ability to hide columns on the patrons search page >(acqui/lateorders.pl). > >Test plan: >Go on the patrons search page and confirm you are able to hide columns. >You can also play with the columns configuration admin page and confirm >that the behaviors are consistent. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >Works as expected > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > admin/columns_settings.yml | 27 ++++++++++++++++++++ > .../prog/en/modules/admin/columns_settings.tt | 6 ++++ > .../prog/en/modules/members/member.tt | 7 +++- > 3 files changed, 38 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 5222253..253edb2 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -51,3 +51,30 @@ modules: > columnname: active > - > columnname: actions >+ members: >+ member: >+ memberresultst: >+ - >+ columnname: checkbox >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ - >+ columnname: cardnumber >+ - >+ columnname: name >+ - >+ columnname: category >+ - >+ columnname: library >+ - >+ columnname: expires_on >+ - >+ columnname: od_checkouts >+ - >+ columnname: fines >+ - >+ columnname: circ_notes >+ - >+ columnname: actions >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >index b1a8565..f6f5076 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >@@ -144,6 +144,12 @@ > <h4>Circulation tables</h4> > [% PROCESS pagelist module=modules.circ modulename="circ" %] > </div> >+ >+ <h3><a href="#members">Patrons</a></h3> >+ <div id="members"> >+ <h4>Patrons tables</h4> >+ [% PROCESS pagelist module=modules.members modulename="members" %] >+ </div> > </div> > </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index d481c60..7ecf271 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -1,9 +1,11 @@ > [% USE Koha %] >+[% USE ColumnsSettings %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'datatables.inc' %] >+[% INCLUDE 'columns_settings.inc' %] > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >@@ -130,7 +132,8 @@ $(document).ready(function() { > }); > > // Apply DataTables on the results table >- dtMemberResults = $("#memberresultst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ var columns_settings = [% ColumnsSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) %]; >+ dtMemberResults = KohaTable("#memberresultst", { > 'bServerSide': true, > 'sAjaxSource': "/cgi-bin/koha/svc/members/search", > 'fnServerData': function(sSource, aoData, fnCallback) { >@@ -215,7 +218,7 @@ $(document).ready(function() { > 'sPaginationType': 'full_numbers', > "iDisplayLength": [% PatronsPerPage %], > "bProcessing": true, >- })); >+ }, columns_settings); > update_searched(); > }); > >-- >1.7.2.5
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 13866
:
36982
|
37350
|
37360
|
37372
|
37375
| 37647