Bug 11880: Select the barcode index by default then searching for label items.
authorFrédérick <frederick.capovilla@libeo.com>
Fri, 28 Feb 2014 21:21:46 +0000 (16:21 -0500)
committerMason James <mtj@kohaaloha.com>
Mon, 28 Sep 2015 12:06:01 +0000 (01:06 +1300)
Test case:
* Go to "Tools -> Label creator -> Manage batches"
* Click on the "New batch" button
* Click on the "Add item(s)" button
* A search window should open. The "Barcode" value should be selected in the the selectbox.

Followed test case. Patch behaves as expected.
Signed-off-by: Marc Veron <veron@veron.ch>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>

koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt

index 748d5ac..af95538 100644 (file)
@@ -59,7 +59,7 @@ to add to Batch [% batch_id %]
 [% ELSE %]<option value="se">Series title</option>[% END %]
 
 [% IF ( selected ) %]<option value="bc" selected="selected">Barcode</option>
-[% ELSE %]<option value="bc">Barcode</option>[% END %]
+[% ELSE %]<option value="bc" selected="selected">Barcode</option>[% END %]
 
 [% IF ( selected ) %]<option value="acqdate" selected="selected">Acquisition date</option>
 [% ELSE %]<option value="acqdate">Acquisition date</option>[% END %]