From 16e4b3c7ef618961ad8cd570f462ed7d69f68103 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 29 Feb 2024 22:33:33 +0000 Subject: [PATCH] Bug 36082: Set branchcode correctly in opac-facets.inc Content-Type: text/plain; charset=utf-8 1. Tools> HTML Customization 2. Choose OPACresultssidebar 3. Create an entry specific to a library. 4. Also try to add this same entry into a translation tab, if installed. 5. Go to the OPAC 6. Login as a patron of that library that the specific OPACresultsidebar is assigned to 7. Search the catalog, and look below the facets,where the OPACresultssidebar would appear. 8. No text. 9. APPLY PATCH 10. Try step 7 again. 11. TEXT! Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8a62c4cd93..5415f6fb27 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -3,7 +3,7 @@ [% USE Languages %] [% PROCESS 'i18n.inc' %] [% USE AdditionalContents %] -[% SET OPACResultsSidebar = AdditionalContents.get( location => "OPACResultsSidebar", lang => lang, library => branchcode || default_branch ) %] +[% SET OPACResultsSidebar = AdditionalContents.get( location => "OPACResultsSidebar", lang => lang, library => logged_in_user.branchcode || default_branch ) %] [% IF ( opacfacets && facets_loop && total ) %]