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
admin-home.tt
adveditorshortcuts.tt
aqbudgetperiods.tt
aqbudgets.tt
aqcontract.tt
aqplan.tt
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt
authtypes.tt
background_jobs.tt Bug 27027: Fixed typo - extra dot removed 2021-01-22 13:46:46 +01:00
biblio_framework.tt
branch_transfer_limits.tt
branches.tt Bug 27437: Improve hint labels on library creation form 2021-01-20 13:42:08 +01:00
cash_registers.tt
categories.tt Bug 26985: Remove code for "Upcoming events" from codebase as not implemented 2021-01-20 13:42:08 +01:00
checkmarc.tt
cities.tt Bug 27402: Add DT column filtering to the cities admin page 2021-01-28 16:41:22 +01:00
classsources.tt
clone-rules.tt
columns_settings.tt
credit_types.tt Bug 27458: Set focus for cursor to Credit type code field 2021-01-21 15:42:32 +01:00
currency.tt
debit_types.tt Bug 27457: Set focus for cursor to Debit type code field 2021-01-21 15:42:46 +01:00
desks.tt
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 27192: Automatically set focus to the item type input box 2021-01-20 16:27:23 +01:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc_subfields_structure.tt
marctagstructure.tt Bug 27416: Make "Modify tag" and "Add tag" translatable 2021-01-13 17:17:00 +01:00
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
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
smart-rules.tt
sms_providers.tt
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
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt