<div class='success'>[% l("Hold was successfully placed"); %]</div>
+ [% IF ctx.is_staff %]
+ <script>
+ window.addEventListener(
+ 'load',
+ function() {
+ try {
+ if (typeof xulG != 'undefined' && xulG.opac_hold_placed) {
+ xulG.opac_hold_placed([% hdata.hold_success %]);
+ }
+ } catch(E) {
+ alert('Error updating Work Log with hold placement: ' + E);
+ }
+ },
+ false
+ );
+ </script>
+ [% END %]
+
[% ELSIF hdata.hold_failed; any_failures = 1 %]
<div><big><strong>[% l("Hold was not successfully placed"); %]</strong></big></div>
menu.cmd_patron_register.tab=Register Patron
# 1 - Staff Username 2 - Patron Family 3 - Patron Barcode
staff.circ.work_log_patron_registration.message=%1$s registered %3$s (%2$s)
+# 1 - Staff Username 2 - Patron Family 3 - Patron Barcode 4 - Hold ID 5 - Hold Type
+staff.circ.work_log_hold_placed.message=%1$s placed hold %4$s (%5$s) for %3$s (%2$s)
menu.cmd_browse_holds.tab=Hold Browser
menu.cmd_browse_holds_shelf.tab=Holds Shelf
menu.cmd_browse_hold_pull_list.tab=On Shelf Pull List
},
'opac_hold_placed' : function(hold) {
try {
+ var hold_id = typeof hold == 'object' ? hold.id() : hold;
obj.list.append(
{
'row' : {
'my' : {
- 'hold_id' : typeof hold == 'object' ? hold.id() : hold
+ 'hold_id' : hold_id
}
}
}
if (window.xulG && typeof window.xulG.on_list_change == 'function') {
window.xulG.on_list_change();
}
+ obj.list.wrap_in_full_retrieve(
+ function() {
+ try {
+ obj.error.work_log(
+ $('offlineStrings').getFormattedString(
+ 'staff.circ.work_log_hold_placed.message',
+ [
+ ses('staff_usrname'),
+ obj.holds_map[ hold_id ].patron_last,
+ obj.holds_map[ hold_id ].patron_barcode,
+ hold_id,
+ obj.holds_map[ hold_id ].hold.hold_type()
+ ]
+ ), {
+ 'au_id' : obj.holds_map[ hold_id ].hold.usr(),
+ 'au_family_name' : obj.holds_map[ hold_id ].patron_family_name,
+ 'au_barcode' : obj.holds_map[ hold_id ].patron_barcode
+ }
+ );
+ } catch(F) {
+ obj.error.standard_unexpected_error_alert('holds.js, opac_hold_placed(), work_log: ',F);
+ }
+ }
+ );
} catch(E) {
obj.error.standard_unexpected_error_alert('holds.js, opac_hold_placed(): ',E);
}