From 65e6deb5fad8eeac8a94748c6760723769295cae Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 22 Oct 2014 00:18:27 -0400 Subject: [PATCH] Bug 13128 - Add span with id for logged in branch name, add hidden span for branchcode It would be nice if there were a simple way to access the name and branchcode of the currently logged in library, as well as the logged in user via JavaScript ( via intranetuserjs ). I propose the following: 1) Remove the whitespace surrounding the loggedinusername span 2) Wrap the logged in branch name with a span that has an id 3) Add the branchcode in a hidden span that has an id Test Plan: 1) Apply this patch 2) Log into Koha 3) Inspect the html source code 4) Note the lack of whitespace within the tag [% loggedinusername %] 5) Note the logged in branch name is now surrounded by a span with an id 6) Note below that is a span containing the branchcode, also with an id. 7) Verify the branchcode span is hidden by default. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Small template change, no problems found. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc index b8bd714e0e..b1de549c2c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -1,3 +1,4 @@ +[% USE Branches %]