bucket item count
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Mar 2008 09:30:57 +0000 (09:30 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Mar 2008 09:30:57 +0000 (09:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9055 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/record_buckets.js
Open-ILS/xul/staff_client/server/cat/record_buckets.xul
Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
Open-ILS/xul/staff_client/server/locale/en-US/cat.properties

index c187212..ef1bde1 100644 (file)
@@ -263,7 +263,9 @@ cat.record_buckets.prototype = {
                                                                        }
                                                                        if (!bucket_id) return;
                                                                        var x = document.getElementById('info_box');
-                                                                       x.setAttribute('hidden','true');
+                                                                       if (x) x.setAttribute('hidden','true');
+                                    x = document.getElementById('bucket_item_count');
+                                    if (x) x.setAttribute('label','');
                                     obj.controller.view.cmd_record_buckets_delete_bucket.setAttribute('disabled','true');
                                     obj.controller.view.cmd_record_buckets_refresh.setAttribute('disabled','true');
                                     obj.controller.view.record_buckets_export_records.disabled = true;
@@ -307,6 +309,9 @@ cat.record_buckets.prototype = {
                                                                        }
                                                                        var items = bucket.items() || [];
                                                                        obj.list2.clear();
+                                    var x = document.getElementById('bucket_item_count');
+                                    var catStrings = document.getElementById('catStrings');    
+                                    if (x && catStrings) x.setAttribute('value',catStrings.getFormattedString('cat.total_bucket_items_in_bucket',[items.length]));
                                                                        for (var i = 0; i < items.length; i++) {
                                                                                var item = obj.prep_record_for_list( 
                                                                                        items[i].target_biblio_record_entry(),
index 68ffd9b..65a4744 100644 (file)
@@ -80,6 +80,7 @@
        </script>
 
     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
+    <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
 
        <commandset id="record_buckets_cmds">
                <command id="sel_clip1" disabled="true"/>
index d5ee250..f588cc2 100644 (file)
@@ -42,6 +42,7 @@
                                 <menuitem command="cmd_record_buckets_refresh" label="Refresh"/>
                             </menupopup>
                         </button>
+                        <label id="bucket_item_count" />
                     </hbox>
                     <groupbox flex="1">
                         <caption>
index 933b8d4..21e0150 100644 (file)
@@ -1,3 +1,4 @@
 cat.barcode_for_item=The barcode for the item is %1$s
 cat.batch_operation_failed=The whole batch operation failed. %1$s
 cat.copy_buckets.tab=Copy Buckets
+cat.total_bucket_items_in_bucket=Contains %1$s bucket items