Bug 9533: batch item modification form now shows default field values only by request
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 17 Apr 2013 13:33:55 +0000 (09:33 -0400)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sat, 3 Aug 2013 18:20:41 +0000 (15:20 -0300)
commit2db1c2b208c53a59bd896af426455122b7b738e5
treef8d969b75eaf25826a896650ebccde3bf7f1421e
parent70cc750a5f96ca72c07f359006730ff92f9ff5b5
Bug 9533: batch item modification form now shows default field values only by request

This patch makes the pre-population of the fields for the batch
item editor with the default values from the default framework
optional and off by default.

Test Plan:
1) Apply patch
2) Add default values for cost and replacement cost to the
   default framework.
3) Browse to Tools / Batch item modification
4) Choose a file, or entire some barcodes in the text area
5) Ensure that the 'Populate fields with default values from default
   framework' is *not* checked
6) Click 'Continue'
7) Observe that the fields for cost and replacement cost are blank
8) Click the 'back' button on your browser
9) Check the checkbox to enable the default value
10) Click 'Continue'
11) Observe that the fields for cost and replacement cost now contain
    the default values you assigned them in the default MARC framework

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Switch works correctly, all tests and QA script pass.

Note: there is a bug with default values for all non text input
fields. Default values won't be applied for those fields as the
pull downs are not preselected correctly with the default values
defined in the framework.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 2d32ab38148f7d75412a36e928dea799717bc5fb)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 3865b14a57c4e0d4547980acf67060eac181161f)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 3865b14a57c4e0d4547980acf67060eac181161f)
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt
tools/batchMod.pl