if (window.xulG && window.xulG.copies) g.copies = g.copies.concat( window.xulG.copies );
if (g.cgi.param('copies')) g.copies = g.copies.concat( JSON2js( g.cgi.param('copies') ) );
if (g.data.temp_copies != 'undefined' && g.data.temp_copies) g.copies = g.copies.concat( JSON2js( g.data.temp_copies ) );
+ g.data.temp_copies = null; g.data.stash('temp_copies');
/******************************************************************************************************/
/* We try to retrieve callnumbers for existing copies, but for new copies, we rely on this */
if (typeof volumes_hash[ou_id] == 'undefined') { volumes_hash[ou_id] = {} }
if (typeof volumes_hash[ou_id][callnumber] == 'undefined') { volumes_hash[ou_id][callnumber] = [] }
- volumes_hash[ou_id][callnumber].push( barcode );
+ if (barcode != '') volumes_hash[ou_id][callnumber].push( barcode );
}
var volumes = [];
<hbox style="border-bottom: solid black thin">
<hbox id="marc_cn"/>
<spacer flex="1" />
- <checkbox id="print_labels" label="Print Labels" persist="checked"/>
- <button id="Create" accesskey="C" label="Create" disabled="true" oncommand="g.stash_and_close();"/>
+ <checkbox id="print_labels" label="Print Labels" persist="checked" accesskey="P"/>
+ <button id="Create" accesskey="C" label="Edit then Create" disabled="true" oncommand="g.stash_and_close();"/>
</hbox>
<grid flex="1">
<columns> <column flex="0"/> <column flex="0"/> <column flex="1"/> </columns>