ou_id,
row
) {
-
if ( Number( number_of_copies_textbox.value ) > g_max_copies_that_can_be_added_at_a_time_per_volume ) {
g.error.yns_alert($("catStrings").getFormattedString('staff.cat.volume_copy_creator.render_volume_count_entry.message', [g_max_copies_that_can_be_added_at_a_time_per_volume]),
$("catStrings").getString('staff.cat.volume_copy_creator.render_volume_count_entry.title'),
var copy_call_number = g.org_label_existing_copy_map[ou_id][vol_id][0].a[3].a[7];
call_number_textbox.value = copy_call_number.trim();
-
-
+
/**** NUMBER OF COPIES COLUMN ****/
var number_of_copies_node = document.createElement('vbox');
r.appendChild(number_of_copies_node);
+
var number_of_copies_textbox = document.createElement('textbox');
number_of_copies_node.appendChild(number_of_copies_textbox);
-
- number_of_copies_textbox.setAttribute('size','3'); number_of_copies_textbox.setAttribute('cols','3');
+ number_of_copies_textbox.setAttribute('size','1'); number_of_copies_textbox.setAttribute('cols','1');
number_of_copies_textbox.setAttribute('rel_vert_pos',rel_vert_pos_copy_count);
number_of_copies_textbox.setAttribute('ou_id',ou_id);
-
number_of_copies_textbox.addEventListener( 'focus', function(ev) { g.last_focus = ev.target; }, false );
-
number_of_copies_textbox.disabled = true;
number_of_copies_textbox.style.color = "#000000";
-
/**** BARCODE COLUMN ****/
var barcode_column_box = document.createElement('vbox');
r.appendChild(barcode_column_box);
row
);
+//number_of_copies_textbox.setAttribute('size','1'); number_of_copies_textbox.setAttribute('cols','1'); //added here
+
} catch(E) {
alert(E+": 762 - "+JSON.stringify(number_of_copies_textbox));
}
g.render_volume_copies = function(barcode_column,acn_id,count,ou_id,row) {
try {
-
// Add the status and note boxes
var status_column = barcode_column.nextSibling;
oils_unlock_page();
try {
-
+
if (g.update_copy_editor_timeoutID) {
clearTimeout(g.update_copy_editor_timeoutID);
'opac_url' : opac_url
};
- xulG.set_tab(
+ xulG.set_tab(
xulG.url_prefix('XUL_OPAC_WRAPPER'),
{
'tab_name':'Retrieving title...',
}
else {
-
+
if (typeof label_editor_func == 'function') {
label_editor_func();
btn.setAttribute('label',$('catStrings').getString('staff.cat.volume_copy_creator.my_init.btn.label'));
btn.setAttribute('accesskey',$('catStrings').getString('staff.cat.volume_copy_creator.my_init.btn.accesskey'));
btn.setAttribute('image','/xul/server/skin/media/images/down_arrow.gif');
+
hbox.appendChild(btn);
btn.addEventListener(
'command',
var nl = document.getElementsByTagName('textbox');
var label = $('marc_cn').firstChild.value;
-
if (label != '') {
-
for (var i = 0; i < nl.length; i++) {
-
- /* label */
+ /* label */
if (nl[i].getAttribute('rel_vert_pos')==rel_vert_pos_call_number && !nl[i].disabled) {
nl[i].value = label;
g.map_acn[acn_id].ischanged(get_db_true());
}
}
- }
-
+ }
if (g.last_focus){
g.last_focus.focus();
}
- },
+ },
false
- );
+ );
}
g.setGridId = function() {