Jonathan Druart
829d193a1a
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> |
||
---|---|---|
.. | ||
preferences | ||
searchengine/elasticsearch | ||
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 | ||
biblio_framework.tt | ||
branch_transfer_limits.tt | ||
branches.tt | ||
cash_registers.tt | ||
categories.tt | ||
checkmarc.tt | ||
cities.tt | ||
classsources.tt | ||
clone-rules.tt | ||
columns_settings.tt | ||
credit_types.tt | ||
currency.tt | ||
debit_types.tt | ||
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 | ||
koha2marclinks.tt | ||
library_groups.tt | ||
localization.tt | ||
marc_subfields_structure.tt | ||
marctagstructure.tt | ||
matching-rules.tt | ||
oai_set_mappings.tt | ||
oai_sets.tt | ||
overdrive.tt | ||
patron-attr-types.tt | ||
preferences.tt | ||
share_content.tt | ||
smart-rules.tt | ||
sms_providers.tt | ||
smtp_servers.tt | ||
sru_modmapping.tt | ||
sru_modmapping_auth.tt | ||
systempreferences.tt | ||
transport-cost-matrix.tt | ||
usage_statistics.tt | ||
z3950servers.tt |