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)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 5 Jul 2013 15:52:26 +0000 (15:52 +0000)
commit2d32ab38148f7d75412a36e928dea799717bc5fb
tree786132342cd3f25ccd09f38f482ac3e9c369ce3f
parent0397e7ea64c208c140d7178ed34c3bd4b266fcfb
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>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt
tools/batchMod.pl