Bug 32030: Make 'Is perpetual' filter a dropdown list

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-03 10:10:06 +02:00 committed by Tomas Cohen Arazi
parent 47848faa6d
commit 52ef336fd0
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ export default {
map[e.authorised_value] = e
return map
}, {})
window['av_is_perpetual'] = [{ _id: 0, _str: _('No') }, { _id: 1, _str: _("Yes") }]
$('#my_table').kohaTable({
"ajax": {
@ -176,6 +177,7 @@ export default {
$("#" + table_id).find("thead th").eq(1).attr('data-filter', 'av_vendors')
$("#" + table_id).find("thead th").eq(3).attr('data-filter', 'av_statuses')
$("#" + table_id).find("thead th").eq(4).attr('data-filter', 'av_closure_reasons')
$("#" + table_id).find("thead th").eq(5).attr('data-filter', 'av_is_perpetual')
$("#" + table_id).find("thead th").eq(6).attr('data-filter', 'av_renewal_priorities')
}