dump('\tcomposite_key = ' + callnumber_composite_key + '\n');
_call_number_column_textbox.setAttribute('callkey',callnumber_composite_key);
+ //_call_number_column_textbox.setAttribute('tooltiptext',callnumber_composite_key);
_call_number_column_textbox.setAttribute('acnc_id',acnc_id);
_call_number_column_textbox.setAttribute('acnp_id',acnp_id);
_call_number_column_textbox.setAttribute('acns_id',acns_id);
call_number_column_textbox.addEventListener( 'focus', function(ev) { g.last_focus = ev.target; }, false );
/**** CLASSIFICATION COLUMN revisited ****/
- var classification_column_menulist = g.render_class_menu(call_number_column_textbox);
- classification_column_menulist.addEventListener(
- 'command',
- function() {
- handle_change_to_callnumber_data({'target':call_number_column_textbox});
- }
- ,false
+ var classification_column_menulist = g.render_class_menu(
+ call_number_column_textbox,
+ handle_change_to_callnumber_data
);
classification_column_box.appendChild(classification_column_menulist);
classification_column_menulist.value = g.label_class;
/**** PREFIX COLUMN revisited ****/
- var prefix_column_menulist = g.render_prefix_menu(call_number_column_textbox);
- prefix_column_menulist.addEventListener(
- 'command',
- function() {
- handle_change_to_callnumber_data({'target':call_number_column_textbox});
- }
- ,false
+ var prefix_column_menulist = g.render_prefix_menu(
+ call_number_column_textbox,
+ handle_change_to_callnumber_data
);
prefix_column_box.appendChild(prefix_column_menulist);
suffix_column_box.setAttribute('class','cn_suffix');
r.appendChild(suffix_column_box);
suffix_column_box.width = $('batch_suffix').parentNode.boxObject.width;
- var suffix_column_menulist = g.render_suffix_menu(call_number_column_textbox);
- suffix_column_menulist.addEventListener(
- 'command',
- function() {
- handle_change_to_callnumber_data({'target':call_number_column_textbox});
- }
- ,false
+ var suffix_column_menulist = g.render_suffix_menu(
+ call_number_column_textbox,
+ handle_change_to_callnumber_data
);
suffix_column_box.appendChild(suffix_column_menulist);
}
tb.setAttribute('ou_id',ou_id);
tb.setAttribute('callkey',callnumber_composite_key);
+ //tb.setAttribute('tooltiptext',callnumber_composite_key);
tb.setAttribute('rel_vert_pos',rel_vert_pos_barcode);
part_menu.firstChild.setAttribute('rel_vert_pos',rel_vert_pos_part);
if (!tb.value && g.org_label_existing_copy_map[ ou_id ]) {
}
}
-g.render_class_menu = function(call_number_tb) {
+g.render_class_menu = function(call_number_tb,update_func) {
var ml = cat.util.render_cn_class_menu();
ml.setAttribute('rel_vert_pos',rel_vert_pos_call_number_classification);
ml.addEventListener(
'command',
function() {
call_number_tb.setAttribute('acnc_id',ml.value);
+ update_func({'target':call_number_tb});
},
false
);
return ml;
}
-g.render_prefix_menu = function(call_number_tb) {
+g.render_prefix_menu = function(call_number_tb,update_func) {
var ou_id = call_number_tb.getAttribute('ou_id');
var menulist = cat.util.render_cn_prefix_menu([ou_id]);
menulist.setAttribute('rel_vert_pos',rel_vert_pos_call_number_prefix);
'command',
function() {
call_number_tb.setAttribute('acnp_id',menulist.value);
+ update_func({'target':call_number_tb});
},
false
);
return menulist;
}
-g.render_suffix_menu = function(call_number_tb) {
+g.render_suffix_menu = function(call_number_tb,update_func) {
var ou_id = call_number_tb.getAttribute('ou_id');
var menulist = cat.util.render_cn_suffix_menu([ou_id]);
menulist.setAttribute('rel_vert_pos',rel_vert_pos_call_number_suffix);
'command',
function() {
call_number_tb.setAttribute('acns_id',menulist.value);
+ update_func({'target':call_number_tb});
},
false
);