[open-ils-commits] r9055 - in
trunk/Open-ILS/xul/staff_client/server: cat locale/en-US
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Mar 16 06:04:49 EDT 2008
Author: phasefx
Date: 2008-03-16 05:30:57 -0400 (Sun, 16 Mar 2008)
New Revision: 9055
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.xul
trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
Log:
bucket item count
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2008-03-16 09:17:21 UTC (rev 9054)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js 2008-03-16 09:30:57 UTC (rev 9055)
@@ -263,7 +263,9 @@
}
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 @@
}
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(),
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.xul 2008-03-16 09:17:21 UTC (rev 9054)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.xul 2008-03-16 09:30:57 UTC (rev 9055)
@@ -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"/>
Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2008-03-16 09:17:21 UTC (rev 9054)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul 2008-03-16 09:30:57 UTC (rev 9055)
@@ -42,6 +42,7 @@
<menuitem command="cmd_record_buckets_refresh" label="Refresh"/>
</menupopup>
</button>
+ <label id="bucket_item_count" />
</hbox>
<groupbox flex="1">
<caption>
Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties 2008-03-16 09:17:21 UTC (rev 9054)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties 2008-03-16 09:30:57 UTC (rev 9055)
@@ -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
More information about the open-ils-commits
mailing list