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:
Nick Clemens 2024-05-02 16:44:36 +00:00 committed by Katrin Fischer
parent 7cc445e95c
commit 52c46ae8d0
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 26 additions and 31 deletions

View file

@ -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>

View file

@ -67,6 +67,10 @@
<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' %]
@ -76,15 +80,6 @@
[% 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>
[% 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 ) %]