From: Mike Rylander Date: Wed, 31 May 2017 16:39:25 +0000 (-0400) Subject: webstaff: offline in house use improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d175d0d9e3cd5ebcc3227c388c96def74cabd1f;p=working%2FEvergreen.git webstaff: offline in house use improvements Signed-off-by: Mike Rylander --- 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(); }