[% alternative_link = BLOCK %] [% ctx.browse_leading_article_alternative | html %] [%- END; # alternative_link BLOCK l("Did you mean [_1]?", alternative_link); END # IF %]
-
[% FOR result IN ctx.browse_results %]
-
[% IF result.sources > 0 %]
[% result.value | html %]
([%
IF result.accurate == 'f';
l("At least"); " ";
END;
result.sources %])
[% ELSE %]
[% result.value | html %]
[% 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.
NEXT UNLESS a.control_set;
# get_authority_fields is fast and cache-y.
acs = ctx.get_authority_fields(a.control_set);
FOR field_group IN a.headings;
field_id = field_group.keys.0;
field = acs.$field_id;
headings = field_group.values.0;
FOR h IN headings;
# We could display headings without
# links here when h.target is
# undef, if we wanted to, but note
# that h.target_count is only
# defined when h.target is.
IF h.target AND h.target_count AND result.list_authorities.grep('^' _ h.target _ '$').size == 0;
id = h.target; NEXT IF seenit.$id; seenit.$id = 1;
IF !auth_headings_ul_added;
# only add a
- if we have at least one
- (WCAG 2.0) auth_headings_ul_added = 1; %]