show barcodes in copy editor
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 23:41:10 +0000 (23:41 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Jul 2005 23:41:10 +0000 (23:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1523 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/copy.js
Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul

index 38e95e7..33ddfcf 100644 (file)
@@ -329,8 +329,17 @@ function update_stat_cat_entry(copy,menuitem) {
        copy.stat_cat_entries( entries );
 }
 
+var add_to_listbox_first_comma = 0;
+
 function add_to_listbox(cn_pos,cp_pos,name,callnumber,barcode) {
        mw.sdump('D_CAT','xul: name = ' + name + ' cn = ' + callnumber + ' bc = ' + barcode + '\n');
+       var desc = document.getElementById('description_box');
+       if (add_to_listbox_first_comma++ == 0) {
+               desc.appendChild( document.createTextNode( ' ' + barcode ) );
+       } else {
+               desc.appendChild( document.createTextNode( ', ' + barcode ) );
+       }
+       /*
        var listbox = document.getElementById('ephemeral_listbox');
        var listitem = document.createElement('listitem');
                listitem.setAttribute('cn_pos',cn_pos);
@@ -345,5 +354,6 @@ function add_to_listbox(cn_pos,cp_pos,name,callnumber,barcode) {
        var listcell3 = document.createElement('listcell');
                listcell3.setAttribute('label',barcode);
        listitem.appendChild(listcell3);
+       */
 }
 
index ba0dc71..8489172 100644 (file)
@@ -44,7 +44,7 @@
                <hbox id="copy_button_box"/>
        </vbox>
        <splitter collapse="after"> <grippy/> </splitter>
-       <vbox flex="1" hidden="true">
+       <vbox flex="1" hidden="false">
                <deck id="bottom_deck"/>
        </vbox>
 </vbox>
@@ -73,7 +73,8 @@
 
 <deck id="bottom_deck" flex="1">
        <vbox>
-               <listbox id="ephemeral_listbox" flex="1" seltype="multiple" onselect="transfer_attributes(event);">
+               <description id="description_box">Modifying the following copies:</description>
+               <listbox id="ephemeral_listbox" flex="1" seltype="multiple" onselect="transfer_attributes(event);" hidden="true">
                        <listhead>
                                <listheader/>
                                <listheader label="Location"/>