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 <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
<div class='rdetail_extras_div'>
- [% 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 %]
</div>