From c0aa0f5529825724e654fa7ccaae2b3e98c95cd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Fri, 31 Oct 2014 07:19:32 +0100 Subject: [PATCH] Bug 13176 - Add links "My account" and "My checkouts" for logged in user to drop down in staff client header This patch adds links to "My account" and "My checkouts" to drop down in staff client header. To test: Apply patch Got to drop down of logged in user (top right) See new links to "My account" and "My checkout" (above "Log out") Test the links. Signed-off-by: Magnus Enger Works as advertised. The options are not displayed when you are logged in as the db/admin user. Added classes "toplinks-myaccount" and "toplink-mycheckouts" to li tags to make it possible to hide them (per Kyle M $ Switching back to "Signd-off" (Hope this is OK becuause it is a tiny string addition) Marc Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Auth.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index 16d3ec2a56..b808c663b5 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -189,6 +189,7 @@ sub get_template_and_user { # user info $template->param( loggedinusername => $user ); + $template->param( loggedinusernumber => $borrowernumber ); $template->param( sessionID => $sessionID ); my ($total, $pubshelves, $barshelves) = C4::VirtualShelves::GetSomeShelfNames($borrowernumber, 'MASTHEAD'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index b1de549c2c..e4caee8948 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -78,6 +78,14 @@ Search history [% END %] + [% IF loggedinusernumber %] + + + [% END %]
  • Log out
  • -- 2.39.5