Bugzilla – Attachment 33093 Details for
Bug 13176
Add links "My account" and "My checkouts" for logged in user to drop down in staff client header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13176 - Add links "My account" and "My checkouts" for logged in user to drop down in staff client header
PASSED-QA-Bug-13176---Add-links-My-account-and-My-.patch (text/plain), 2.75 KB, created by
Kyle M Hall (khall)
on 2014-10-31 18:01:05 UTC
(
hide
)
Description:
[PASSED QA] Bug 13176 - Add links "My account" and "My checkouts" for logged in user to drop down in staff client header
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-10-31 18:01:05 UTC
Size:
2.75 KB
patch
obsolete
>From af9cfae0da3b4c7ee71f3f8011f1bfee465c5f2a Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 31 Oct 2014 07:19:32 +0100 >Subject: [PATCH] [PASSED QA] 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 <digitalutvikling@gmail.com> >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 <kyle@bywatersolutions.com> >--- > C4/Auth.pm | 1 + > .../intranet-tmpl/prog/en/includes/header.inc | 8 ++++++++ > 2 files changed, 9 insertions(+), 0 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index c6dda85..8702a8c 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 b1de549..e4caee8 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 @@ > <a class="toplinks" href="/cgi-bin/koha/catalogue/search-history.pl">Search history</a> > </li> > [% END %] >+ [% IF loggedinusernumber %] >+ <li class ="toplinks-myaccount"> >+ <a class="toplinks" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loggedinusernumber %]">My account</a> >+ </li> >+ <li class="toplinks-mycheckouts"> >+ <a class="toplinks" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% loggedinusernumber %]">My checkouts</a> >+ </li> >+ [% END %] > <li> > <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a> > </li> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13176
:
33024
|
33025
|
33026
|
33027
|
33092
| 33093