From eebd7b1a96ca771e743f5f1179e683e9689dbd25 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 27 Jul 2017 20:51:25 +0000 Subject: [PATCH] LP#1638299: improve display of scope notes in headings browse Scope notes are now displayed only under uses of a heading as a main heading. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/opac/browse.tt2 | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates/opac/browse.tt2 b/Open-ILS/src/templates/opac/browse.tt2 index ed946094a9..4e7424185e 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. -- 2.43.2