[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. dfb52ae31bef4f3bdadb936e551ad38d413e4d04

Evergreen Git git at git.evergreen-ils.org
Fri Mar 8 14:36:02 EST 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_3_2 has been updated
       via  dfb52ae31bef4f3bdadb936e551ad38d413e4d04 (commit)
      from  80d9c400eafe016343bedfa65c9fad053585d2b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dfb52ae31bef4f3bdadb936e551ad38d413e4d04
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Thu Jan 17 13:33:10 2019 -0500

    LP1798628: Copy alert counts in Holdings
    
    Currently the count of all copy alerts ever applied
    to a copy is displayed in the Holdings view, which
    can be quite confusing when clicking Manage and not
    seeing the expected number of alerts. This branch
    changes the display to only count the number of
    events currently active since those are the only
    ones available to manage.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Garry Collum <gcollum at gmail.com>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js
index ad16b5d1f2..d78c049bc3 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js
@@ -132,7 +132,9 @@ function(egCore , $q) {
 
                 // create virtual field for copy alert count
                 angular.forEach(svc.copies, function (cp) {
-                    if (cp.copy_alerts) cp.copy_alert_count = cp.copy_alerts.length;
+                    if (cp.copy_alerts) {
+                        cp.copy_alert_count = cp.copy_alerts.filter(function(aca) { return aca.ack_time == null ;}).length;
+                    }
                     else cp.copy_alert_count = 0;
                 });
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/staff/cat/services/holdings.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list