From b5fb150d62c02269c4a56ca0dca0c10525c4f873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 6 Sep 2015 18:52:51 +0200 Subject: [PATCH] Bug 14776 - Remove 'selfcheck' patron related links from and add language selector to SCO header The SCO screen displays patron related menu items in it's header (Link to the account and "Logout"). This makes no sense since the patron that is logged in is the 'selfcheck' user as defined in syspref AutoSelfCheckId. Additionally, the language menue is missing when the syspref OpacLangSelectorMode is set to 'top' or to 'both'. To test: - Set AutoSelfCheck sysprefs as appropriate - Set OpacLangSelectorMode to 'top' or 'both' - Go to SCO page - Verify that the language menue does not display in the header - Enter a card number to check out (this logs in the SCO user) - Verify that you get text similar to "Welcome, checkout" with a link to the sco user's account in the OPAC and a 'Logout' link - Apply patch - Verify that the language menu appears and the SCO user's information disappears. --- .../bootstrap/en/includes/masthead-sco.inc | 51 ++++++++++++++++---- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-sco.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-sco.inc index e7f8059..76c8ef0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-sco.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-sco.inc @@ -1,3 +1,5 @@ +[% USE Koha %] +[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
-- 1.7.10.4