From 3710c281746eb274c5471c6305485e44c1e31e52 Mon Sep 17 00:00:00 2001 From: "a. bellenir" Date: Thu, 24 May 2018 11:44:28 -0400 Subject: [PATCH] LP#1743801: Item Status List View Display Issues Age Protection was missing '.name' field. Loan Duration and Fine Levels are numeric: 1, 2, or 3. Added an Angular filter to show the desired string from numeric index. Conflicts: Open-ILS/src/templates/staff/cat/item/t_list.tt2 Signed-off-by: a. bellenir Signed-off-by: Kathy Lussier Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 10 +++++++--- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index e1dd08205f..15e048640c 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -80,7 +80,7 @@ - + @@ -108,7 +108,9 @@ - + @@ -116,7 +118,9 @@ - + diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js index 46a977d6a1..4c13dd367e 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js @@ -949,3 +949,4 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog return service; }]) +.filter('string_pick', function() { return function(i){ return arguments[i] || ''; }; }) -- 2.43.2