From: Bill Erickson Date: Fri, 12 Aug 2011 13:07:35 +0000 (-0400) Subject: Vandelay: show record match counts in record queue UI X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3ef7e28ac8099c8918636f564e136d86865d16b4;p=contrib%2FConifer.git Vandelay: show record match counts in record queue UI Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- 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) {