Bugzilla – Attachment 36981 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.06 KB, created by
Jonathan Druart
on 2015-03-18 12:27:35 UTC
(
hide
)
Description:
Bug 13865: Columns configuration - Orders search
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-18 12:27:35 UTC
Size:
3.06 KB
patch
obsolete
>From 797098ac30bcd5fc9a81f06d8243ad8b27974a0e 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. >--- > 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..0a1f667 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1,5 +1,36 @@ > modules: > acqui: >+ histsearch: >+ histsearcht: >+ - >+ columname: order_line >+ - >+ columname: status >+ - >+ columname: basket >+ - >+ columname: basket_creator >+ - >+ columname: basket_group >+ - >+ columname: invoice_number >+ - >+ columname: summary >+ - >+ columname: vendor >+ - >+ columname: placed_on >+ - >+ columname: received_on >+ - >+ columname: quantity_received >+ - >+ columname: pending_order >+ - >+ columname: unit_cost >+ - >+ columname: 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({ >-- >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 13865
:
36981
|
37359
|
37371
|
37649