From f122c55ce286ef71fa7e03e4ca8b508f77a84107 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 29 Mar 2012 17:07:23 -0400 Subject: [PATCH] Only load "new" serials display if we have data If we try to load the "new" serials display template, but have no data (for instance, if "Use fully compressed serial holdings" is false), we get a server error. Rather than wrap the whole template in an 'if', let's just not load it. Signed-off-by: Dan Wells --- Open-ILS/src/templates/opac/parts/record/issues.tt2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/issues.tt2 b/Open-ILS/src/templates/opac/parts/record/issues.tt2 index 585cee6a04..998e2d64d9 100644 --- a/Open-ILS/src/templates/opac/parts/record/issues.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/issues.tt2 @@ -1,4 +1,8 @@
- [% INCLUDE 'opac/parts/record/issues-db.tt2' # "new" serials holdings %] + [% + IF ctx.holding_summary_tree; + INCLUDE 'opac/parts/record/issues-db.tt2'; # "new" serials holdings + END; + %] [% INCLUDE 'opac/parts/record/issues-mfhd.tt2' # mfhd-based "classic" serials %]
-- 2.11.0