Signed-off-by: Michael Peters <mrpeters@library.in.gov>
staff.patron.display.cmd_patron_delete.dest_user.title=Destination User
staff.patron.display.cmd_patron_delete.dest_user.failure=Failed to retrieve destination user. User deletion aborted.
staff.patron.display.cmd_patron_delete.dest_user.self_reference_failure=Cannot specify the deleted user as the destination user. User deletion aborted.
+staff.patron.display.cmd_patron_delete.open_xact=The user you have attempted to delete cannot be deleted because it has open circulations and/or unpaid bills.
staff.patron.display.spawn_editor.editing_related_patron=Editing Related Patron
staff.patron.display.init.retrieving_patron=Retrieving Patron...
staff.patron.display.init.retrieving=Retrieving...
}
params.push( dest_usr.id() );
}
- obj.network.simple_request( 'FM_AU_DELETE', params );
+ var robj = obj.network.simple_request( 'FM_AU_DELETE', params );
+ alert(js2JSON(robj));
+ if (typeof robj.ilsevent != 'undefined') {
+ switch(Number(robj.ilsevent)) {
+ case 2004 /* ACTOR_USER_DELETE_OPEN_XACTS */ :
+ alert(document.getElementById('patronStrings').getString('staff.patron.display.cmd_patron_delete.open_xact'));
+ return;
+ break;
+ }
+ }
obj.refresh_all();
}
} catch(E) {