From 973523322203ffc0d1dbaf89cc9ad0aaf13b8909 Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 16 Mar 2008 09:30:57 +0000 Subject: [PATCH] bucket item count 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 | 7 ++++++- Open-ILS/xul/staff_client/server/cat/record_buckets.xul | 1 + .../xul/staff_client/server/cat/record_buckets_overlay.xul | 1 + .../xul/staff_client/server/locale/en-US/cat.properties | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index c187212708..ef1bde126d 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -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(), diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.xul b/Open-ILS/xul/staff_client/server/cat/record_buckets.xul index 68ffd9bd6b..65a4744683 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.xul +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.xul @@ -80,6 +80,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul b/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul index d5ee250bd3..f588cc27e7 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul @@ -42,6 +42,7 @@ +