Bugzilla – Attachment 37371 Details for
Bug 13865
Columns configuration - Orders search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13865: Columns configuration - Orders search
Bug-13865-Columns-configuration---Orders-search.patch (text/plain), 3.19 KB, created by
Nicole C. Engard
on 2015-03-30 13:35:13 UTC
(
hide
)
Description:
Bug 13865: Columns configuration - Orders search
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2015-03-30 13:35:13 UTC
Size:
3.19 KB
patch
obsolete
>From dd2606ac11668ea2d626cb5290b79a9282cbaf38 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 18 Mar 2015 13:16:43 +0100 >Subject: [PATCH] Bug 13865: Columns configuration - Orders search > >This patch adds the ability to hide columns on the orders search page >(acqui/histsearch.pl). > >Test plan: >Go on the orders 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: Nicole <nicole@bywatersolutions.com> > >http://bugs.koha-community.org/show_bug.cgi?id=13685 >--- > admin/columns_settings.yml | 31 ++++++++++++++++++++ > .../prog/en/modules/acqui/histsearch.tt | 7 +++-- > 2 files changed, 36 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 5222253..197d8af 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1,5 +1,36 @@ > modules: > acqui: >+ histsearch: >+ histsearcht: >+ - >+ columnname: order_line >+ - >+ columnname: status >+ - >+ columnname: basket >+ - >+ columnname: basket_creator >+ - >+ columnname: basket_group >+ - >+ columnname: invoice_number >+ - >+ columnname: summary >+ - >+ columnname: vendor >+ - >+ columnname: placed_on >+ - >+ columnname: received_on >+ - >+ columnname: quantity_received >+ - >+ columnname: pending_order >+ - >+ columnname: unit_cost >+ - >+ columnname: fund >+ > lateorders: > late_orders: > - >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >index ebb9f74..77e42a4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >@@ -1,23 +1,26 @@ > [% USE KohaDates %] >+[% USE ColumnsSettings %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › [% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %]</title> > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] >+[% INCLUDE 'columns_settings.inc' %] > > <script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.js"></script> > <script type="text/javascript"> > //<![CDATA[ > var MSG_REMOVE_PATRON = _("Remove"); > $(document).ready(function() { >- $("#histsearcht").dataTable($.extend(true, {}, dataTablesDefaults, { >+ var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) %]; >+ KohaTable("#histsearcht", { > "aoColumnDefs": [ > { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, > { "sType": "title-string", "aTargets" : [ "title-string" ] } > ], > "sPaginationType": "four_button" >- } ) ); >+ }, columns_settings ); > > [% UNLESS order_loop %] > patron_autocomplete({ >-- >1.7.10.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 13865
:
36981
|
37359
|
37371
|
37649