Bugzilla – Attachment 36982 Details for
Bug 13866
Columns configuration - Patrons search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13866: Columns configuration - Patrons search
Bug-13866-Columns-configuration---Patrons-search.patch (text/plain), 2.95 KB, created by
Jonathan Druart
on 2015-03-18 12:29:05 UTC
(
hide
)
Description:
Bug 13866: Columns configuration - Patrons search
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-18 12:29:05 UTC
Size:
2.95 KB
patch
obsolete
>From e6a1d015c719365cbd1da7e583cc17b9d97ff5b9 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] 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. >--- > admin/columns_settings.yml | 25 ++++++++++++++++++++++ > .../prog/en/modules/members/member.tt | 7 ++++-- > 2 files changed, 30 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 0a1f667..72a5093 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -82,3 +82,28 @@ modules: > columnname: active > - > columnname: actions >+ member: >+ member: >+ memberresulst: >+ - >+ columname: checkbox >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ - >+ columname: cardnumber >+ - >+ columname: name >+ - >+ columname: category >+ - >+ columname: library >+ - >+ columname: expires_on >+ - >+ columname: od_checkouts >+ - >+ columname: fines >+ - >+ columname: circ_notes >+ - >+ columname: actions >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 ea90bfd..d16b4d6 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( 'member', 'member', 'member', '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(); > }); > >-- >2.1.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 13866
:
36982
|
37350
|
37360
|
37372
|
37375
|
37647