Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 3ec7822..e5c14f6 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
@@ -1401,10 +1401,20 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,
);
}
+
if (!tmpl.match(/hold_shelf/)) {
+ var courier_deferred = $q.defer();
+ promises.push(courier_deferred.promise);
promises.push(
service.find_copy_transit(evt, params, options)
- .then(function(trans) {data.transit = trans})
+ .then(function(trans) {
+ data.transit = trans;
+ egCore.org.settings('lib.courier_code', trans.dest())
+ .then(function(s) {
+ data.dest_courier_code = s['lib.courier_code'];
+ courier_deferred.resolve();
+ });
+ })
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment