'hidden' : true,
'editable' : false, 'render' : function(my) {
var s = '';
- var notes = my.ahr.notes();
+ var notes = my.ahrn_note;
for (var i = 0; i < notes.length; i++) {
s += notes[i].title() + ':' + notes[i].body() + '; \n';
}
render_patron();
}
+ retrieve_notes();
a_list_of_one();
var x = document.getElementById('bib_brief_box'); while (x.firstChild) x.removeChild(x.lastChild);
get_contentWindow(bib_brief).xulG = { 'docid' : g.blob.mvr.doc_id() };
}
- retrieve_notes(); render_notes();
+ render_notes();
retrieve_notifications(); render_notifications();
'queue_position' : g.blob.queue_position,
'potential_copies' : g.blob.potential_copies,
'estimated_wait' : g.blob.estimated_wait,
- 'ahrn_count' : g.blob.hold.notes().length,
+ 'ahrn_count' : g.notes.length,
+ 'ahrn_note' : g.notes,
'blob' : g.blob
}
},
obj.determine_hold_interface_type();
var progressmeter = document.getElementById('progress');
+ dojo.require ('openils.PermaCrud');
+ g.pcrud = new openils.PermaCrud({authtoken :ses()});
JSAN.use('circ.util');
var columns = circ.util.hold_columns(
row.my.queue_position = blob.queue_position;
row.my.potential_copies = blob.potential_copies;
row.my.estimated_wait = blob.estimated_wait;
- row.my.ahrn_count = blob.hold.notes().length;
+ g.notes = g.pcrud.search('ahrn', {'hold' : row.my.hold_id});
+ g.notes = g.notes.reverse();
+ row.my.ahrn_count = g.notes.length;
+ row.my.ahrn_note = g.notes;
var copy_id = row.my.ahr.current_copy();
if (typeof copy_id == 'object') {