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);
var listcell3 = document.createElement('listcell');
listcell3.setAttribute('label',barcode);
listitem.appendChild(listcell3);
+ */
}
<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>
<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"/>