[open-ils-commits] [GIT] Evergreen ILS branch master updated. 642dae8cbd68410b80f518ac1683e64003735738

Evergreen Git git at git.evergreen-ils.org
Thu Sep 8 03:33:24 EDT 2011


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, master has been updated
       via  642dae8cbd68410b80f518ac1683e64003735738 (commit)
       via  5f933061e617d07c05df88dfa91dca1b1bb96ab8 (commit)
      from  5b702c3daf41dfea3c46a42c0c55a6c1488a44b4 (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 642dae8cbd68410b80f518ac1683e64003735738
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Thu Sep 8 03:19:11 2011 -0400

    a CSS hook in case folks want to hide this
    
    If you'd like to hide usr_summary stat cats in the patron
    info pane, add this to server/skin/patron_summary_custom.css:
    
    .stat_cat_summary_row { display: none; }
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js
index 12bb752..5eab31e 100644
--- a/Open-ILS/xul/staff_client/server/patron/summary.js
+++ b/Open-ILS/xul/staff_client/server/patron/summary.js
@@ -987,11 +987,13 @@ patron.summary.prototype = {
                                 var row; var label1; var label2;
                                 if ($(row_id)) {
                                     row = $(row_id);
+                                    row.setAttribute('class','stat_cat_summary_row');
                                     label1 = row.firstChild;
                                     label2 = row.lastChild;
                                 } else {
                                     row = document.createElement('row');
                                     row.setAttribute('id',row_id);
+                                    row.setAttribute('class','stat_cat_summary_row');
                                     label1 = document.createElement('label');
                                     label2 = document.createElement('label');
                                     row.appendChild(label1);

commit 5f933061e617d07c05df88dfa91dca1b1bb96ab8
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Fri Aug 12 11:47:43 2011 -0400

    Stat Cat Summary Display Fixes
    
    1 - Suppress sip field and format in horizontal interface
    2 - Make "show in summary" work for vertical interface
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js
index 55ad634..12bb752 100644
--- a/Open-ILS/xul/staff_client/server/patron/summary.js
+++ b/Open-ILS/xul/staff_client/server/patron/summary.js
@@ -81,7 +81,9 @@ patron.summary.prototype = {
                     obj.stat_cat_list.fm_columns( 'actsc', {
                         'actsc_id' : { 'hidden' : true },
                         'actsc_opac_visible' : { 'hidden' : true },
-                        'actsc_usr_summary' : { 'hidden' : true }
+                        'actsc_usr_summary' : { 'hidden' : true },
+                        'actsc_sip_format' : { 'hidden' : true },
+                        'astsc_sip_field' : { 'hidden' : true }
                     } )
                 ).concat(
                     obj.stat_cat_list.fm_columns( 'actscecm', {
@@ -969,6 +971,43 @@ patron.summary.prototype = {
                 if ($('stat_cat_tab')) {
                     util.widgets.dispatch('command','stat_cat_tab'); 
                 }
+                if ($('pdcgpr')) {
+                    try {
+                        var rows = $('pdcgpr');
+                        var entries = obj.patron.stat_cat_entries();
+                        for (var i = 0; i < entries.length; i++) {
+                            var stat_cat = obj.OpenILS.data.hash.my_actsc[ entries[i].stat_cat() ];
+                            if (!stat_cat) {
+                                stat_cat = obj.OpenILS.data.lookup('actsc',entries[i].stat_cat());
+                            }
+                            if (!stat_cat) { continue; }
+                            // Only a proud few share the Patron Info pane
+                            if (rows && get_bool( stat_cat.usr_summary() )) {
+                                var row_id = 'stat_cat_id_' + stat_cat.id();
+                                var row; var label1; var label2;
+                                if ($(row_id)) {
+                                    row = $(row_id);
+                                    label1 = row.firstChild;
+                                    label2 = row.lastChild;
+                                } else {
+                                    row = document.createElement('row');
+                                    row.setAttribute('id',row_id);
+                                    label1 = document.createElement('label');
+                                    label2 = document.createElement('label');
+                                    row.appendChild(label1);
+                                    row.appendChild(label2);
+                                    // Place before the spacer at the end
+                                    rows.insertBefore(row, rows.lastChild);
+                                }
+                                label1.setAttribute('value',stat_cat.name());
+                                label1.setAttribute('tooltiptext','stat cat id ' + stat_cat.id());
+                                label2.setAttribute('value',entries[i].stat_cat_entry());
+                            }
+                        }
+                    } catch(E) {
+                        alert('Error in summary.js: ' + E);
+                    }
+                }
             } );
 
             // On Complete

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

Summary of changes:
 Open-ILS/xul/staff_client/server/patron/summary.js |   43 +++++++++++++++++++-
 1 files changed, 42 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list