Lines 21-39
Link Here
|
21 |
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %] |
21 |
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %] |
22 |
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %] |
22 |
[% IF facets_loo.type_label_Location %]<span id="facet-locations">Locations</span>[% END %] |
23 |
<ul> |
23 |
<ul> |
|
|
24 |
[% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %] |
25 |
[% IF ( sort_by ) %] |
26 |
[% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] |
27 |
[% END %] |
24 |
[% FOREACH facet IN facets_loo.facets %] |
28 |
[% FOREACH facet IN facets_loo.facets %] |
25 |
<li> |
29 |
<li> |
26 |
[% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %] |
|
|
27 |
[% IF ( sort_by ) %] |
28 |
[% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] |
29 |
[% END %] |
30 |
[% IF facet.active %] |
30 |
[% IF facet.active %] |
31 |
[% SET url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] |
31 |
[% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] |
32 |
<span class="facet-label">[% facet.facet_label_value %]</span> |
32 |
<span class="facet-label">[% facet.facet_label_value %]</span> |
33 |
[<a href="[% url %]" title="Remove facet [% facet.facet_link_value | html %]">x</a>] |
33 |
[<a href="[% local_url %]" title="Remove facet [% facet.facet_link_value | html %]">x</a>] |
34 |
[% ELSE %] |
34 |
[% ELSE %] |
35 |
[% SET url = url _ "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] |
35 |
[% SET local_url = url _ "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] |
36 |
<span class="facet-label"><a href="[% url %]" title="[% facet.facet_title_value |html %]">[% facet.facet_label_value %]</a></span> |
36 |
<span class="facet-label"><a href="[% local_url %]" title="[% facet.facet_title_value |html %]">[% facet.facet_label_value %]</a></span> |
37 |
[% IF ( displayFacetCount ) %] |
37 |
[% IF ( displayFacetCount ) %] |
38 |
<span class="facet-count"> ([% facet.facet_count %])</span> |
38 |
<span class="facet-count"> ([% facet.facet_count %])</span> |
39 |
[% END %] |
39 |
[% END %] |
Lines 42-49
Link Here
|
42 |
[% END %] |
42 |
[% END %] |
43 |
[% IF ( facets_loo.expandable ) %] |
43 |
[% IF ( facets_loo.expandable ) %] |
44 |
<li class="showmore"> |
44 |
<li class="showmore"> |
45 |
<a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi %][% limit_cgi |url %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %][% IF ( offset ) %] |
45 |
<a href="[% url %][% IF offset %]&offset=[% offset |url %][% END %]&expand=[% facets_loo.expand |url %]#[% facets_loo.type_id |url %]">Show more</a> |
46 |
&offset=[% offset |url %][% END %]&expand=[% facets_loo.expand |url %]#[% facets_loo.type_id |url %]">Show more</a> |
|
|
47 |
</li> |
46 |
</li> |
48 |
[% END %] |
47 |
[% END %] |
49 |
</ul></li> |
48 |
</ul></li> |