From 826e5ddaba5fcbba77b857002bf03ba895fb191b Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 28 Feb 2013 14:49:16 -0500 Subject: [PATCH] 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 Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/js.tt2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2 index d6cacbef5b..d1690e2862 100644 --- a/Open-ILS/src/templates/opac/parts/js.tt2 +++ b/Open-ILS/src/templates/opac/parts/js.tt2 @@ -21,12 +21,14 @@ -- 2.11.0