From: Galen Charlton
Date: Thu, 27 Jul 2017 20:51:25 +0000 (+0000)
Subject: limit display of scope notes only when main heading is linked to browse list result
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa018e2669d5067510ee334c2681056a62e25d2b;p=working%2FEvergreen.git
limit display of scope notes only when main heading is linked to browse list result
Signed-off-by: Galen Charlton
---
diff --git a/Open-ILS/src/templates/opac/browse.tt2 b/Open-ILS/src/templates/opac/browse.tt2
index 9d58cd07a7..72819a5ce0 100644
--- a/Open-ILS/src/templates/opac/browse.tt2
+++ b/Open-ILS/src/templates/opac/browse.tt2
@@ -99,7 +99,6 @@
[% END %]
-
[% FOR result IN ctx.browse_results %]
-
@@ -119,14 +118,13 @@
[% END %]
+ [% FOR a IN result.authorities;
+ PROCESS authority_notes authority=a IF !sees.grep(a.id);
+ END %]
[% auth_headings_ul_added = 0; %]
[% seenit = {}; # for headings we've rendered
FOR a IN result.sees;
- PROCESS authority_notes authority=a;
-
- # Other than displaying public general
- # notes, we can go no further sans
- # control_set.
+ # We can go no further sans control_set.
NEXT UNLESS a.control_set;
# get_authority_fields is fast and cache-y.
@@ -158,12 +156,8 @@
[% END %]
[% END %]
[% END %]
- [% FOR a IN result.authorities; # I don't think we'll ever get here...
- PROCESS authority_notes authority=a IF !sees.grep(a.id);
-
- # Other than displaying public general
- # notes, we can go no further sans
- # control_set.
+ [% FOR a IN result.authorities;
+ # We can go no further sans control_set.
NEXT UNLESS a.control_set;
# get_authority_fields is fast and cache-y.