[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 826e5ddaba5fcbba77b857002bf03ba895fb191b
Evergreen Git
git at git.evergreen-ils.org
Mon Mar 11 20:03:30 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, rel_2_3 has been updated
via 826e5ddaba5fcbba77b857002bf03ba895fb191b (commit)
from 2b1ba191e443fae1f18dbeeee23ea2445a83a61d (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 826e5ddaba5fcbba77b857002bf03ba895fb191b
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 d6cacbe..d1690e2 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