]> git.koha-community.org Git - koha.git/commit
Bug 17318: Allow chosing fixed normalization routines
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 21 Sep 2016 14:40:09 +0000 (11:40 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 16:16:34 +0000 (16:16 +0000)
commit6fb994257ecf74f65b0951564341561dd40df3a5
tree60cecc3bd2ea370281edbf3370c0eea773225ccb
parent4579f1ad906b28a78c0ef7a1669b0a08138745d1
Bug 17318: Allow chosing fixed normalization routines

This patch changes the matching-rules.pl page, so it allows the user to choose
from the different hardcoded normalization routines. It is done using TT blocks
and the routine descriptions are translatable.

To test:
- Create some matching rule
- Have free text values on the 'Normalization rule' field
- Apply the patches
- Create a new routine
=> SUCCESS: You can now only choose between fixed option
- Save the rule
- Open it for editing
=> SUCCESS: Chosen rules are preserved
- Edit the original free-text including rule
=> SUCCESS: Rules fall back to 'None'
- Sign off :-D

TODO: A followup will add a warning about the current value and the fact that
      saving the matching rule will overwrite those, with 'none'.

Sponsored-by: FIT
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
admin/matching-rules.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt