Bug 36750: (35138 follow-up) Use same display code for OPAC
To test: 1 - In OPAC with ES enabled do a search 2 - Note missing facet labels 3 - Apply patch 4 - They are back! Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
7cc445e95c
commit
52c46ae8d0
2 changed files with 26 additions and 31 deletions
|
@ -64,7 +64,7 @@
|
|||
<span id="facet-series">Series</span>
|
||||
[% CASE 'ItemTypes' %]
|
||||
<span id="facet-itemtypes">Item types</span>
|
||||
[% CASE 'HomeLibrary' %]
|
||||
[% CASE 'homelibrary' %]
|
||||
<span id="facet-home-libraries">Home libraries</span>
|
||||
[% CASE 'HoldingLibrary' %]
|
||||
<span id="facet-holding-libraries">Holding libraries</span>
|
||||
|
|
|
@ -54,37 +54,32 @@
|
|||
[% FOREACH facets_loo IN facets_loop %]
|
||||
[% IF facets_loo.facets.size > 0 %]
|
||||
<li id="[% facets_loo.type_id | html %]">
|
||||
[% SWITCH facets_loo.label %]
|
||||
[% CASE 'Authors' %]
|
||||
<h3 id="facet-authors">Authors</h3>
|
||||
[% CASE 'Titles' %]
|
||||
<h3 id="facet-titles">Titles</h3>
|
||||
[% CASE 'Topics' %]
|
||||
<h3 id="facet-topics">Topics</h3>
|
||||
[% CASE 'Places' %]
|
||||
<h3 id="facet-places">Places</h3>
|
||||
[% CASE 'Series' %]
|
||||
<h3 id="facet-series">Series</h3>
|
||||
[% CASE 'ItemTypes' %]
|
||||
<h3 id="facet-itemtypes">Item types</h3>
|
||||
[% CASE 'Location' %]
|
||||
<h3 id="facet-locations">Locations</h3>
|
||||
[% CASE 'CollectionCodes' %]
|
||||
<h3 id="facet-collections">Collections</h3>
|
||||
[% CASE 'Languages' %]
|
||||
<h3 id="facet-languages">Languages</h3>
|
||||
[% CASE %]
|
||||
<h3 id="facet-[% facets_loo.type_link_value | html %]">[% facets_loo.label | html %]</h3>
|
||||
[% END %]
|
||||
|
||||
[% UNLESS singleBranchMode %]
|
||||
[% IF ( facets_loo.label == HomeLibrary ) %]
|
||||
<h3 id="facet-home-libraries">Home libraries</h3>
|
||||
[% SWITCH facets_loo.label %]
|
||||
[% CASE 'Authors' %]
|
||||
<h3 id="facet-authors">Authors</h3>
|
||||
[% CASE 'Titles' %]
|
||||
<h3 id="facet-titles">Titles</h3>
|
||||
[% CASE 'Topics' %]
|
||||
<h3 id="facet-topics">Topics</h3>
|
||||
[% CASE 'Places' %]
|
||||
<h3 id="facet-places">Places</h3>
|
||||
[% CASE 'Series' %]
|
||||
<h3 id="facet-series">Series</h3>
|
||||
[% CASE 'ItemTypes' %]
|
||||
<h3 id="facet-itemtypes">Item types</h3>
|
||||
[% CASE 'homelibrary' %]
|
||||
<h3 id="facet-home-libraries">Home libraries</h3>
|
||||
[% CASE 'HoldingLibrary' %]
|
||||
<h3 id="facet-holding-libraries">Holding libraries</h3>
|
||||
[% CASE 'Location' %]
|
||||
<h3 id="facet-locations">Locations</h3>
|
||||
[% CASE 'CollectionCodes' %]
|
||||
<h3 id="facet-collections">Collections</h3>
|
||||
[% CASE 'Languages' %]
|
||||
<h3 id="facet-languages">Languages</h3>
|
||||
[% CASE %]
|
||||
<h3 id="facet-[% facets_loo.type_link_value | html %]">[% facets_loo.label | html %]</h3>
|
||||
[% END %]
|
||||
[% IF ( facets_loo.label == 'HoldingLibrary' ) %]
|
||||
<h3 id="facet-holding-libraries">Holding libraries</h3>
|
||||
[% END %]
|
||||
[% END %]
|
||||
<ul>
|
||||
[% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %]
|
||||
[% IF ( sort_by ) %]
|
||||
|
|
Loading…
Reference in a new issue