From 3ef7e28ac8099c8918636f564e136d86865d16b4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 12 Aug 2011 09:07:35 -0400 Subject: [PATCH] Vandelay: show record match counts in record queue UI Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/vandelay/vandelay.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index 48423c5862..75da815548 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -682,14 +682,17 @@ function vlGetViewMatches(rowIdx, item) { var id = this.grid.store.getValue(item, 'id'); var rec = queuedRecordsMap[id]; if(rec.matches().length > 0) - return id; + return id + ':' + rec.matches().length; } return -1 } function vlFormatViewMatches(id) { if(id == -1) return ''; - return '' + this.name + ''; + var chunks = id.split(':'); + id = chunks[0]; + count = chunks[1]; + return '' + this.name + ' (' + count + ')'; } function vlGetViewErrors(rowIdx, item) { -- 2.43.2