]> git.koha-community.org Git - koha.git/commit
Bug 35198: Sort database column names alphabetically on automatic item modification...
authorOwen Leonard <oleonard@myacpl.org>
Tue, 31 Oct 2023 13:48:11 +0000 (13:48 +0000)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 14 Nov 2023 14:49:58 +0000 (13:49 -0100)
commit5dc358fb2355c46c2d8dcba1de1115a52e2d04d2
tree94f6ee1c722416818037b055bcd77cd322b8a87b
parent1a04d21a71d42d227f05959ed2ea4ecb89243d82
Bug 35198: Sort database column names alphabetically on automatic item modification page

This patch modifies the automatic item modification by age page so that
the rule entry form sorts <select>s alphabetically, making it easier to
find the entry you need.

The [% FOR field IN... %] directives now include the "sort" method, e.g.

    [% FOR field IN agefields.sort %]

To test, apply the patch and go to Cataloging -> Item modifications by
age

- Click the "Add rules" button, then the "Add rule" button.
- Check the "Age field," "Conditions," and "Substitutions" dropdowns to
  confirm that the choices are listed alphabetically.
- Fill in the form and save the rule.
- Go back and edit the rule you created. Check that the dropdowns are
  still correct.

Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit fd258280482e0c84bf6baf61d7054b1c628e53f7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 2872ebe3d49e3425077b58ce6829a34e954b80c0)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt