Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Jonathan Druart 829d193a1a Bug 27402: Add DT column filtering to the cities admin page
Bug 24561 added a wrapper to use easily all the DataTables functionalities when a REST API route was used within Koha.

The filtering method used is working for the global search filter, but not if we have a filter on top of each column.

This patchset is going to, first, add the filters on top of each column
of the cities table, then the code will be moved to the DT REST API wrapper to make it reusable easily.

Test plan:

Generate some cities:
  use Koha::Cities;
  for ( 1 .. 42 ) {
      Koha::City->new({city_name => "name_$_", city_state => "state_$_", city_country => "country_$_", city_zipcode => "zipcode_$_" })->store;
  }
Hit /admin/cities.pl
Use the filters

The general filter must do a OR query on each of the cities' attributes,
when column filters must use AND

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-28 16:41:22 +01:00
..
preferences Bug 27415: Add note to ILLHiddenRequestStatuses 2021-01-22 14:59:27 +01:00
searchengine/elasticsearch Bug 27406: Update elasticsearch mapping to adhere to ACC2 2021-01-21 15:42:46 +01:00
additional-fields.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
admin-home.tt Bug 26809: Removes full stops from admin-home.tt 2020-10-26 00:16:14 +01:00
adveditorshortcuts.tt Bug 21411: (follow-up) Clean up for QA 2019-05-10 18:59:39 +00:00
aqbudgetperiods.tt Bug 24012: (QA follow-up) Use standard patterns 2020-11-04 12:59:32 +01:00
aqbudgets.tt Bug 26217: Move translatable strings out of templates into acq.js 2020-09-29 14:28:18 +02:00
aqcontract.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
aqplan.tt Bug 26496: Add op field to Budget Planning 2020-10-22 09:46:43 +02:00
audio_alerts.tt Bug 26225: Move translatable strings out of audio_alerts.tt and into audio_alerts.js 2020-09-29 14:28:18 +02:00
auth_subfields_structure.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
auth_tag_structure.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
authorised_values.tt Bug 25534: (QA follow-up) Add AV category 2020-08-25 15:07:28 +02:00
authtypes.tt Bug 25954: Replace paragraph tags with labels in header search forms 2021-01-04 14:06:27 +01:00
background_jobs.tt Bug 27027: Fixed typo - extra dot removed 2021-01-22 13:46:46 +01:00
biblio_framework.tt Bug 26551: Correct modal markup to prevent long heading from overflowing 2020-10-08 11:36:32 +02:00
branch_transfer_limits.tt Bug 26768: Remove the use of jquery.checkboxes plugin from library transfer limits page 2020-11-03 10:57:35 +01:00
branches.tt Bug 27437: Improve hint labels on library creation form 2021-01-20 13:42:08 +01:00
cash_registers.tt Bug 26946: Set maxlength for cash register name 2020-12-09 11:23:43 +01:00
categories.tt Bug 26985: Remove code for "Upcoming events" from codebase as not implemented 2021-01-20 13:42:08 +01:00
checkmarc.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
cities.tt Bug 27402: Add DT column filtering to the cities admin page 2021-01-28 16:41:22 +01:00
classsources.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
clone-rules.tt
columns_settings.tt Bug 26160: Make POS items table configurable 2020-08-12 12:07:12 +02:00
credit_types.tt Bug 27458: Set focus for cursor to Credit type code field 2021-01-21 15:42:32 +01:00
currency.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
debit_types.tt Bug 27457: Set focus for cursor to Debit type code field 2021-01-21 15:42:46 +01:00
desks.tt Bug 13881: (QA follow-up) Some documentation and terminology fixes 2020-03-25 09:20:00 +00:00
didyoumean.tt Bug 20399: (QA follow-up) Remove mention of INTRAdidyoumean from text and delete commented code 2020-03-26 11:55:46 +00:00
edi_accounts.tt Bug 26908: (follow-up) Alter template check 2020-11-05 15:24:20 +01:00
edi_ean_accounts.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js 2020-09-29 14:28:18 +02:00
itemtypes.tt Bug 27192: Automatically set focus to the item type input box 2021-01-20 16:27:23 +01:00
koha2marclinks.tt Bug 26007: Add/fix warning for changes to the Koha to MARC mappings 2020-09-09 15:39:51 +02:00
library_groups.tt Bug 22937: Add hint to groups editor 2020-04-08 11:52:25 +01:00
localization.tt Bug 23351: Clean up localization template 2019-10-02 13:53:28 +01:00
marc_subfields_structure.tt Bug 27310: Remove CSS float on 'Visibility' in framework edition 2021-01-04 13:29:58 +01:00
marctagstructure.tt Bug 27416: Make "Modify tag" and "Add tag" translatable 2021-01-13 17:17:00 +01:00
matching-rules.tt Bug 24899: (follow-up) Add markup comments 2020-10-14 14:50:07 +02:00
oai_set_mappings.tt Bug 21520: QA Follow-up: do not build html tags with TT conditions 2020-01-15 13:50:09 +00:00
oai_sets.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
overdrive.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
patron-attr-types.tt Bug 27210: Typo in patron-attr-types.tt 2021-01-22 14:59:27 +01:00
preferences.tt Bug 27336: Sanitize correctly HTML id 2021-01-11 10:27:37 +01:00
share_content.tt Bug 23075: Correct indendation 2019-11-06 17:05:34 +00:00
smart-rules.tt Bug 27280: (bug 27026 follow-up) Make consistent the explanation for "Days mode" 2020-12-26 18:14:11 +01:00
sms_providers.tt Bug 26240: Move translatable strings out of sms_providers.tt and into sms_providers.js 2020-09-29 14:28:18 +02:00
smtp_servers.tt Bug 27356: Don't hide the SMTP servers table when last displayed is deleted 2021-01-12 11:33:55 +01:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 21574: Local use system preferences page doesn't have the system preferences menu 2019-11-26 11:43:57 +00:00
transport-cost-matrix.tt Bug 26726: (QA follow-up) Add line break and 'the' for readability 2020-10-26 00:16:14 +01:00
usage_statistics.tt Bug 23866: Prompt for HEA configuration 2019-10-31 11:35:52 +00:00
z3950servers.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00