x = document.createElement('label'); r.appendChild(x);
x.setAttribute('value',$("catStrings").getString('staff.cat.copy_editor.status'));
x.setAttribute('style','font-weight: bold');
- x = document.createElement('label'); r.appendChild(x);
- x.setAttribute('value',$("catStrings").getString('staff.cat.volume_copy_creator.render_callnumber_copy_count_entry.notes'));
- x.setAttribute('style','font-weight: bold');
var row = document.createElement('row');
if (status_column_box){
// This will throw an error if status_column_box doesn't exist
- var note_column_box = status_column_box.nextSibling;
while (barcode_column_box.childNodes.length > Number(number_of_copies_textbox.value)) {
barcode_column_box.removeChild( barcode_column_box.lastChild );
status_column_box.removeChild( status_column_box.lastChild );
- note_column_box.removeChild( note_column_box.lastChild );
}
}
r.appendChild(status_column_box);
/**** NOTE COLUMN ****/
- var note_column_box = document.createElement('vbox');
- r.appendChild(note_column_box);
try {
// Add the status and note boxes
var status_column = barcode_column.nextSibling;
- var note_column = status_column.nextSibling;
// For each copy
for (var i = 0; i < count; i++) {
// Make notes
note_node = document.createElement('hbox');
- note_column.appendChild(note_node);
note_textbox = document.createElement('textbox');
copy_map[acp_id] = {"ou_id" : ou_id, "barcode" : barcode, "acn_id" : acn_id }
- var note = notes[i].value;
+ var note = null;
if (note !== null && note.length > 0 && barcode !== null && barcode.length > 0){