From 52c46ae8d0c35a4964adf83e55d016c60af28141 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 2 May 2024 16:44:36 +0000 Subject: [PATCH] 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 Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/includes/facets.inc | 2 +- .../bootstrap/en/includes/opac-facets.inc | 55 +++++++++---------- 2 files changed, 26 insertions(+), 31 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index fa6c6def47..27b34bfeaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -64,7 +64,7 @@ Series [% CASE 'ItemTypes' %] Item types - [% CASE 'HomeLibrary' %] + [% CASE 'homelibrary' %] Home libraries [% CASE 'HoldingLibrary' %] Holding libraries diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc index 635058eb82..90aa92f007 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -54,37 +54,32 @@ [% FOREACH facets_loo IN facets_loop %] [% IF facets_loo.facets.size > 0 %]
  • - [% SWITCH facets_loo.label %] - [% CASE 'Authors' %] -

    Authors

    - [% CASE 'Titles' %] -

    Titles

    - [% CASE 'Topics' %] -

    Topics

    - [% CASE 'Places' %] -

    Places

    - [% CASE 'Series' %] -

    Series

    - [% CASE 'ItemTypes' %] -

    Item types

    - [% CASE 'Location' %] -

    Locations

    - [% CASE 'CollectionCodes' %] -

    Collections

    - [% CASE 'Languages' %] -

    Languages

    - [% CASE %] - - [% END %] - - [% UNLESS singleBranchMode %] - [% IF ( facets_loo.label == HomeLibrary ) %] -

    Home libraries

    + [% SWITCH facets_loo.label %] + [% CASE 'Authors' %] +

    Authors

    + [% CASE 'Titles' %] +

    Titles

    + [% CASE 'Topics' %] +

    Topics

    + [% CASE 'Places' %] +

    Places

    + [% CASE 'Series' %] +

    Series

    + [% CASE 'ItemTypes' %] +

    Item types

    + [% CASE 'homelibrary' %] +

    Home libraries

    + [% CASE 'HoldingLibrary' %] +

    Holding libraries

    + [% CASE 'Location' %] +

    Locations

    + [% CASE 'CollectionCodes' %] +

    Collections

    + [% CASE 'Languages' %] +

    Languages

    + [% CASE %] + [% END %] - [% IF ( facets_loo.label == 'HoldingLibrary' ) %] -

    Holding libraries

    - [% END %] - [% END %]
      [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] [% IF ( sort_by ) %]