From: Kyle Huckins Date: Mon, 9 Jan 2017 21:15:54 +0000 (-0800) Subject: LP#1615845 In House Uses on Item Status X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fkhuckins%2Flp1615845-in-house-use-item-status;p=working%2FEvergreen.git LP#1615845 In House Uses on Item Status Display number of in-house uses in quick summary of item status interface. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/templates/staff/cat/item/t_list.tt2 modified: Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 modified: Open-ILS/web/js/ui/default/staff/cat/item/app.js --- 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 1ab16a571b..5935f870a8 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 @@ -127,8 +127,8 @@
[% l('Holdable') %]
{{copy.opac_visible()}}
-
[% l('Renewal Workstation') %]
-
{{circ_summary.last_renewal_workstation()}}
+
[% l('In-House Uses') %]
+
{{copy._inHouseUseCount}}
[% l('Checkin Time') %]
@@ -144,6 +144,9 @@
[% l('Circulate') %]
{{copy.circulate()}}
+
[% l('Renewal Workstation') %]
+
{{circ_summary.last_renewal_workstation()}}
+
[% l('Remaining Renewals') %]
{{circ.renewal_remaining()}}
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 7a266357ed..fe1d42dfb7 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 @@ -90,6 +90,11 @@ function(egCore) { function(copy) { var flatCopy; + + copy._inHouseUseCount = 0; + egCore.pcrud.search('aihu', {item : copy.id()}) + .then(null, null, function() { copy._inHouseUseCount++}); + if (noListDupes) { // use the existing copy if possible flatCopy = service.copies.filter(