From 59ac731b1dbe1a69ce077dd5474b4a2325426fb3 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 9 Jul 2026 18:59:16 +0000 Subject: [PATCH] Bug 43043: Pass logged in branchcode to OpacMySummaryNote This patch uses the logged in branchcode to find the correct entries To test: 1 - Create two new HTML customizations - OpacMySummaryNote - one for all libraries, one for a specific library 2 - Log in to opac as a user from the specific library 3 - Only see the all libaries note 4 - Apply patch 5 - Reload 6 - See both of the notes as expected! 7 - Sign off! Signed-off-by: David Nind Signed-off-by: Lucas Gass Signed-off-by: Pedro Amorim --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index d1b8b296e5..f11ab67043 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -13,7 +13,7 @@ [% PROCESS 'html_helpers.inc' %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] -[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %] +[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => logged_in_user.branchcode ) %] [% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %] [% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %]