From: Bill Erickson Date: Thu, 15 May 2014 01:19:32 +0000 (-0400) Subject: item status UI continued X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e3fa8d8cc2c4c41187e4ee08b69faad6d229e5b0;p=working%2FEvergreen.git item status UI continued Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 index 628c1796f0..1a6119be08 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 @@ -34,7 +34,9 @@
[% l('ISBN') %]
-
{{copy.call_number().record().simple_record().isbn()}}
+
+ {{copy.call_number().record().simple_record().isbn()}} +
[% l('Copy Location') %]
{{copy.location().name()}}
@@ -102,6 +104,59 @@
{{circ.max_fine_rule().name()}}
+
+
[% l('TCN') %]
+
{{copy.call_number().record().tcn_value()}}
+ +
[% l('Holdable') %]
+
{{copy.opac_visible()}}
+ + +
+
+ +
[% l('Checkin Time') %]
+
+ {{circ.checkin_time() || + circ_summary.last_checkin_time() | date:'short'}} +
+
+ +
+
[% l('Floating') %]
+
{{copy.floating()}}
+ +
[% l('Circulate') %]
+
{{copy.circulate()}}
+ +
+
+ +
[% l('Checkin Scan Time') %]
+
+ {{circ.checkin_scan_time() || + circ_summary.last_checkin_scan_time() | date:'short'}} +
+
+ +
+ +
+
+ +
[% l('Circ Modifier') %]
+
{{copy.circ_modifier().name()}}
+ + +
+
+ +
[% l('Checkin Workstation') %]
+
+ {{circ.checkin_workstation().name() || + circ_summary.last_checkin_workstation().name()}} +
+
diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index f23bf06977..efa50f690e 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -302,7 +302,7 @@ table.list tr.selected td { background-color: rgb(248, 248, 248); } .flex-container-bordered .flex-cell { - border: 1px solid rgb(248, 248, 248); + border: 1px solid rgb(224, 224, 224); } .flex-row {display: flex} .flex-cell { diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index 634ddbad33..3699fbba7d 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -57,6 +57,8 @@ function($scope , $location , $routeParams , egCore) { var copyId = $routeParams.id; $scope.tab = $routeParams.tab; + // TODO: cache data per copy + function loadCopy() { egCore.pcrud.retrieve('acp', copyId, { @@ -88,8 +90,11 @@ function($scope , $location , $routeParams , egCore) { var r = copy.call_number().record(); if (r.owner()) r.owner(egCore.org.get(r.owner())); - copy.ref(Boolean(copy.ref() == 't')); - copy.opac_visible(Boolean(copy.opac_visible() == 't')); + // make boolean for auto-magic true/false display + angular.forEach( + ['ref','opac_visible','holdable','floating','circulate'], + function(field) { copy[field](Boolean(copy[field]() == 't')) } + ); $scope.copy = copy; }); @@ -125,6 +130,16 @@ function($scope , $location , $routeParams , egCore) { egCore.auth.token(), circ.id() ).then(function(summary) { $scope.circ_summary = summary; + + console.log(js2JSON(summary)); + console.log(summary.last_checkin_workstation()); + + angular.forEach(egCore.idl.classes.accs.field_map, + function(val, key) { + console.log(key + ' => ' + summary[key]()); + + } + ); }); } }); @@ -160,6 +175,9 @@ function($scope , $location , $routeParams , egCore) { }); } + function loadPrevCirc() { + } + loadCopy(); switch($scope.tab) { @@ -167,6 +185,12 @@ function($scope , $location , $routeParams , egCore) { loadCurrentCirc(); loadCircCounts(); break; + + case 'circs': + loadCurrentCirc(); + loadPrevCirc(); + break; + } }])