fixed copy browser after breaking it. copy status tweak
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Jul 2005 21:53:33 +0000 (21:53 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 27 Jul 2005 21:53:33 +0000 (21:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1561 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.js
Evergreen/staff_client/chrome/content/evergreen/cat/browse_list_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.js

index 3231f5a..7ab2c5e 100644 (file)
@@ -355,7 +355,7 @@ function gather_copies_callback(request) {
                                        yesno( copy.opac_visible() ) , copy.circ_as_type() , copy.circ_modifier() ,
                                        copy.loan_duration() , copy.fine_level() , copy.create_date() ,
                                        copy.creator() , copy.edit_date() , copy.editor() , copy.deposit() ,
-                                       copy.deposit_amount() , copy.price() , copy.status()
+                                       copy.deposit_amount() , copy.price() , mw.G.ccs_hash[ copy.status() ].name()
                                ];
 
                                for (var i = 0; i < list.length; i++ ) {
index c3b527e..3b52e0c 100644 (file)
                <splitter class="tree-splitter"/>
                <treecol id="browse11" label="&browse_list.price;" flex="1" hidden="true"/>
                <splitter class="tree-splitter"/>
-               <treecol id="browse12" label="&browse_list.status;" flex="1" hidden="true"/>
+               <treecol id="browse12" label="&browse_list.status;" flex="1" hidden="false"/>
                <splitter class="tree-splitter"/>
        </treecols>
        <treechildren id="browse_list_tree_children" context="browse_menu"/>
index 88f00ee..af9bdb1 100644 (file)
@@ -5,17 +5,20 @@ function copy_edit_init() {
        mw.sdump('D_CAT','TESTING: copy_edit.js: ' + mw.G['main_test_variable'] + '\n');
        mw.sdump('D_CAT','Gathering copies to put in the acn object...\n');
        var id_mapped_list = [];
+       var filtered_list = [];
        if (params.tree) {
                var list = get_list_from_tree_selection( params.tree );
                mw.sdump('D_CAT','list.length = ' + list.length + '\n');
-               var filtered_list = filter_list(
-                       list,
-                       function (obj) {
-                               return (obj.getAttribute('object_type') == 'copy');
-                       }
+               filtered_list = filtered_list.concat( 
+                       filter_list(
+                               list,
+                               function (obj) {
+                                       return (obj.getAttribute('object_type') == 'copy');
+                               }
+                       )
                );
                mw.sdump('D_CAT','filtered_list.length = ' + filtered_list.length + '\n');
-               id_mapped_list.concat(
+               id_mapped_list = id_mapped_list.concat(
                        map_list(
                                filtered_list,
                                function (obj) {