LP#1284864 display code value code in composite def builder
authorBill Erickson <berick@esilibrary.com>
Tue, 25 Feb 2014 20:33:32 +0000 (15:33 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 10 Mar 2014 16:29:51 +0000 (12:29 -0400)
When selected code values to add to a composite definition in the coded
value map composite def. editor, display both the label and the code, as
many people or more familiar w/ the codes than the labels.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/conify/global/config/composite_attr_entry_definition.js

index daa34db..29b61c4 100644 (file)
@@ -258,7 +258,10 @@ function buildSelectors() {
                     var items = [];
                     dojo.forEach(maps, function(map) {
                         codedValueMaps[map.id()] = map;
-                        items.push({name : map.value(), value : map.id()});
+                        items.push({
+                            name : map.value() + ' (' + map.code() + ')', 
+                            value : map.id()
+                        });
                     });
                     ccvmSelector.store = new dojo.data.ItemFileReadStore({
                         data : {