From 7d175d0d9e3cd5ebcc3227c388c96def74cabd1f Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 31 May 2017 12:39:25 -0400 Subject: [PATCH] webstaff: offline in house use improvements Signed-off-by: Mike Rylander --- Open-ILS/src/templates/staff/offline-interface.tt2 | 13 +++++++------ Open-ILS/web/js/ui/default/staff/offline.js | 4 +++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Open-ILS/src/templates/staff/offline-interface.tt2 b/Open-ILS/src/templates/staff/offline-interface.tt2 index 357ead279e..0697759f2a 100644 --- a/Open-ILS/src/templates/staff/offline-interface.tt2 +++ b/Open-ILS/src/templates/staff/offline-interface.tt2 @@ -249,23 +249,24 @@
-
+ +
- [% l('Item Barcode:') %] + [% l('Use count:') %]
- +
-
+
- [% l('Use count:') %] + [% l('Item Barcode:') %]
- +
diff --git a/Open-ILS/web/js/ui/default/staff/offline.js b/Open-ILS/web/js/ui/default/staff/offline.js index 1a375bd537..31d17cfbb4 100644 --- a/Open-ILS/web/js/ui/default/staff/offline.js +++ b/Open-ILS/web/js/ui/default/staff/offline.js @@ -255,7 +255,7 @@ function($routeProvider , $locationProvider , $compileProvider) { $scope.checkout = { noncat_type : '' }; $scope.renew = { noncat_type : '' }; - $scope.in_house_use = {}; + $scope.in_house_use = {count : 1}; $scope.checkin = { backdate : new Date() }; $scope.current_workstation_name = function () { @@ -453,6 +453,7 @@ function($routeProvider , $locationProvider , $compileProvider) { $scope.clear = function (xtype) { $scope[xtype] = {}; + if (xtype=="in_house_use") $scope[xtype].count = 1; } $scope.add = function (xtype) { @@ -518,6 +519,7 @@ function($routeProvider , $locationProvider , $compileProvider) { if (pbarcode) $scope[xtype].patron_barcode = pbarcode; if (backdate) $scope[xtype].backdate = backdate; + if (xtype=="in_house_use") $scope[xtype].count = 1; if (digest) $scope.$apply(); } -- 2.11.0