[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0aeeb13cf175eb0a6b63dfc5053abcc0afed3934

Evergreen Git git at git.evergreen-ils.org
Mon Mar 11 20:03:29 EDT 2013


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  0aeeb13cf175eb0a6b63dfc5053abcc0afed3934 (commit)
      from  8d86d3fe1d71797d671a13a9b10a6141936ed94e (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 0aeeb13cf175eb0a6b63dfc5053abcc0afed3934
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Thu Feb 28 14:49:16 2013 -0500

    Don't populate the MFHD menu with distributions
    
    If a distribution has no legacy record, it shouldn't get a menu
    entry in the MFHD menus. A magic id of '-1' is used to indicate
    this case, so we need to check for that when populating
    mfhdDetails via the TPAC.
    
    Also, entryNum must be an int, not a string, because it is
    incremented prior to display. Removing the quotes solves this
    display issue.
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2
index 2302e59..071ce21 100644
--- a/Open-ILS/src/templates/opac/parts/js.tt2
+++ b/Open-ILS/src/templates/opac/parts/js.tt2
@@ -21,12 +21,14 @@
         <script>
             window.mfhdDetails = [
                 [% FOR summary IN ctx.mfhd_summaries %]
+                    [% IF summary.sre_id != -1 %]
                 {
                     'id' : '[% summary.sre_id %]', 
                     'label' : '[% summary.location | replace("'", "\\'") %]',
-                    'entryNum' : '[% loop.index %]',
+                    'entryNum' : [% loop.index %],
                     'owning_lib' : '[% summary.owning_lib %]'
                 },
+                    [% END %]
                 [% END %]
             ];
         </script>

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

Summary of changes:
 Open-ILS/src/templates/opac/parts/js.tt2 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list