@@ -, +, @@
column
- it's also working for "Expires on" on the same table. We may want to
- You need to search for the full formatted date to make it work.
---
.../intranet-tmpl/prog/en/includes/patron-search.inc | 4 ++--
koha-tmpl/intranet-tmpl/prog/js/datatables.js | 8 ++++++--
2 files changed, 8 insertions(+), 4 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
@@ -149,14 +149,14 @@
[% SWITCH column %]
[% CASE 'checkbox' %]
|
[% CASE 'cardnumber' %]Card |
- [% CASE 'dateofbirth' %]Date of birth |
+ [% CASE 'dateofbirth' %]Date of birth |
[% CASE 'name' %]Name |
[% CASE 'name-address' %]Name |
[% CASE 'address' %]Address |
[% CASE 'address-library' %]Address |
[% CASE 'branch' %]Library |
[% CASE 'category' %]Category |
- [% CASE 'dateexpiry' %]Expires on
+ [% CASE 'dateexpiry' %] | Expires on
[% CASE 'borrowernotes' %] | Notes |
[% CASE 'phone' %]Phone |
[% CASE 'checkouts' %]Checkouts |
--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/datatables.js
@@ -663,8 +663,12 @@ function _dt_default_ajax (params){
if(query_parameters.length) {
query_parameters = JSON.stringify(query_parameters.length === 1?query_parameters[0]:{"-and": query_parameters});
- dataSet.q = query_parameters;
- delete options.query_parameters;
+ if(options.header_filter) {
+ options.query_parameters = query_parameters;
+ } else {
+ dataSet.q = query_parameters;
+ delete options.query_parameters;
+ }
} else {
delete options.query_parameters;
}
--