|
Lines 39-44
Link Here
|
| 39 |
[% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] |
39 |
[% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] |
| 40 |
</li> |
40 |
</li> |
| 41 |
|
41 |
|
|
|
42 |
[% IF Koha.Preference("ShowComponentRecordsFacet") == 'opac' || Koha.Preference("ShowComponentRecordsFacet") == 'both' %] |
| 43 |
<li id="component_record_facet"><h3 id="facet-compontent-records">Component records</h3> |
| 44 |
<ul> |
| 45 |
<li> |
| 46 |
[% IF ( limit_exclude_component_records ) || ( limit_component_records ) %] |
| 47 |
<strong>[% IF ( limit_exclude_component_records ) %]Excluding[% ELSE %]Showing only[% END %] component records</strong> |
| 48 |
</li> |
| 49 |
<li> |
| 50 |
<a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% IF ( limit_exclude_component_records ) %][% limit_cgi_not_limit_exclude_component_records %][% END %][% IF ( limit_component_records ) %][% limit_cgi_not_limit_component_records %][% END %][% IF ( sort_by ) %]&sort_by=[% sort_by | uri %][% END %]">Show all records</a> |
| 51 |
[% ELSE %] |
| 52 |
<a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |uri %][% END %]&limit=exclude_component_records">Exclude component records</a> |
| 53 |
</li> |
| 54 |
<li> |
| 55 |
<a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&sort_by=[% sort_by |uri %][% END %]&limit=component_records">Limit to component records</a> |
| 56 |
[% END # /IF limit_exclude_component_records %] |
| 57 |
</li> |
| 58 |
</ul> |
| 59 |
</li> <!-- /#component_record_facet --> |
| 60 |
[% END # /IF ShowComponentRecordsFacet %] |
| 61 |
|
| 42 |
[% FOREACH facets_loo IN facets_loop %] |
62 |
[% FOREACH facets_loo IN facets_loop %] |
| 43 |
[% IF facets_loo.facets.size > 0 %] |
63 |
[% IF facets_loo.facets.size > 0 %] |
| 44 |
<li id="[% facets_loo.type_id | html %]"> |
64 |
<li id="[% facets_loo.type_id | html %]"> |