From b99ec5b29b257ba7f7ab063d6f60b529cddfcaff Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Tue, 5 Mar 2019 12:10:55 -0500 Subject: [PATCH] LP#1818576 Display Noncat Type and Number in Offline If a noncataloged item is checked out in the offline circulation interface, it will now show the noncat type and number of items in the right-hand preview pane. (Prior to this, nothing displayed for noncat items.) Signed-off-by: Terran McCanna --- Open-ILS/src/templates/staff/offline-interface.tt2 | 5 ++++- Open-ILS/web/js/ui/default/staff/offline.js | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/offline-interface.tt2 b/Open-ILS/src/templates/staff/offline-interface.tt2 index fafc74e12b..dc7b56ba9b 100644 --- a/Open-ILS/src/templates/staff/offline-interface.tt2 +++ b/Open-ILS/src/templates/staff/offline-interface.tt2 @@ -358,7 +358,10 @@ {{xact.patron_barcode}} - {{xact.barcode}} + +
{{xact.barcode}}
+
{{lookupNoncatTypeName(xact.noncat_type)}} ({{xact.noncat_count}})
+ {{xact.due_date | date:'shortDate'}} diff --git a/Open-ILS/web/js/ui/default/staff/offline.js b/Open-ILS/web/js/ui/default/staff/offline.js index 7ab361f34b..7d80de6d5f 100644 --- a/Open-ILS/web/js/ui/default/staff/offline.js +++ b/Open-ILS/web/js/ui/default/staff/offline.js @@ -330,6 +330,12 @@ function($routeProvider , $locationProvider , $compileProvider) { egCore.hatch.setItem('eg.offline.print_receipt', $scope.do_print) } + $scope.lookupNoncatTypeName = function (type) { + var nc = $scope.noncats.filter(function(n){ return n.id() == type })[0]; + if (nc) return nc.name(); + return ''; + } + $scope.logged_in = egCore.auth.token() ? true : false; -- 2.11.0