From da490f117af20f4307d2c62e01bc1db7bc0b7695 Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Thu, 6 Jun 2024 14:29:54 +0000 Subject: [PATCH] Bug 37044: Added library branch to SCO OPAC message This patch simply adds the correct branch at the end of an OPAC message on the SCO page. To Test: 1) From the staff interface, click on a patron and add an OPAC message to their account. 2) Log into the SCO with this patron. (http://localhost:8080/cgi-bin/koha/sco/sco-main.pl) 3) Notice how in the "Messages for you" at the top, you will see the message, however, at the timestamp, it says something like "Written on 06/06/2024 by " w/o listing the library that sent it. 4) Apply patch 5) Log back into SCO module 6) Note that now in the message timestamp, it correctly lists the library that sent the message. 7) Sign-off Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer (cherry picked from commit 4801037abe0f8d294eb03503c2b5a275ed06f62a) Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index b6e682658e..279538bc7c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -6,6 +6,7 @@ [% USE To %] [% USE Price %] [% USE AdditionalContents %] +[% USE Branches %] [% SET SCOMainUserBlock = AdditionalContents.get( location => "SCOMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% INCLUDE 'doc-head-open.inc' %] Self checkout › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] -- 2.39.5