https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42553
Bug ID: 42553
Summary: preferences.pl: Allow 'multiple_sortable' to use
'authval' source for dynamic choices
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
The 'choices' renderer in admin/preferences.pl already supports a
dynamic 'authval' source pattern, where the YAML can say:
choices: authval
source: SOMECATEGORY
and the choices are populated from the named authorised value category
at render time.
The 'multiple_sortable' renderer (the SortableJS-backed drag-and-drop
multi-select used by OPACAuthorIdentifiersAndInformation and
ArticleRequestsSupportedFormats) does not have an equivalent. Choices
must be hardcoded in the .pref YAML.
This bug adds the same dynamic-source pattern to multiple_sortable so
prefs needing an ordered, picker-driven multi-select of authorised
values can declare:
multiple_sortable: authval
source: PAYMENT_TYPE
Motivation: Bug 33501 (cashup amount should be configurable) needs an
ordered multi-select of PAYMENT_TYPE auth values for a new
CashupPaymentTypes preference. Adding it generically here means future
prefs benefit too.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/