From: Lebbeous Fogle-Weekley Date: Mon, 22 Jul 2013 18:08:05 +0000 (-0400) Subject: OPAC Browse: Avoid showing tracing if linked authorities have no bibs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=88b0b3fb702fb8f3f4b5057d817f1b335a452d0c;p=working%2FEvergreen.git 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 --- 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 %])