From 7764e71a667b685a0aec6d1d8c444db0528053e0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 23 May 2018 11:54:34 -0400 Subject: [PATCH] LP#1537228 Precat subsequent checkin shows route alert Display the 'route to cataloging' alert every time a precat copy is checked in, consistent with the XUL client, instead of displaying it only with the first checkin. As with the first checkin, if the alert is configured not to display, it will not show. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Chris Sharp --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index 2807464e64..6be7dc4707 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -1526,7 +1526,12 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl case 11: /* CATALOGING */ egCore.audio.play('info.checkin.cataloging'); evt[0].route_to = egCore.strings.ROUTE_TO_CATALOGING; - return $q.when(final_resp); + if (options.no_precat_alert) + return $q.when(final_resp); + return egAlertDialog.open( + egCore.strings.PRECAT_CHECKIN_MSG, params) + .result.then(function() {return final_resp}); + case 15: /* ON_RESERVATION_SHELF */ egCore.audio.play('info.checkin.reservation'); -- 2.43.2