From 88b0b3fb702fb8f3f4b5057d817f1b335a452d0c Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Mon, 22 Jul 2013 14:08:05 -0400 Subject: [PATCH] OPAC Browse: Avoid showing tracing if linked authorities have no bibs If the OPAC browser is displaying a heading, e.g. Stephen King, and there's a 5XX for Richard Bachman, and that the authority records are properly linked together, you're going to see a "See Also Richard Bachman" link indented under Stephen King. However, you probably don't actually want to see See Also Richard Bachman if you have no bibs linked to the Richard Bachman authority record. This commit skips display of such tracings if the target authority has no bibs linked to it. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/templates/opac/browse.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/browse.tt2 b/Open-ILS/src/templates/opac/browse.tt2 index 9212e93314..58bb0f55f8 100644 --- a/Open-ILS/src/templates/opac/browse.tt2 +++ b/Open-ILS/src/templates/opac/browse.tt2 @@ -129,7 +129,7 @@ # that h.target_count is only # defined when h.target is. - IF h.target %] + IF h.target AND h.target_count %]
  • [% field.name %] [% h.heading | html %] ([% h.target_count %]) -- 2.11.0