From cf60b1fd2652408cb7531a9522d16605e877223f Mon Sep 17 00:00:00 2001
From: Mark Tompsett
Date: Fri, 21 Sep 2012 11:43:38 +0200
Subject: [PATCH] Bug 7867: Staff and OPAC login areas lack consistency
This patch:
- Changes the Staff client's login area text from "Username:"
into "Login:", since login is more generic than username.
- Adds a tool tip to the staff client's login area 'Login:'
textbox: "Please enter your username or card number."
- Adds a tool tip to the main OPAC screen's login area 'Login:'
textbox using the bootstrap theme:
"Please enter your username or card number."
- Adds a tool tip to the main OPAC screen's login area 'Login:'
textbox using the prog theme:
"Please enter your username or card number."
- Adds a tool tip to the OPAC screen triggered by clicking the
'Log in to your account' link in the top right using the
bootstrap theme: "Please enter your username or card number."
- Adds a tool tip to the OPAC screen triggered by clicking the
'Log in to your account' link in the top right using the
bootstrap theme: "Please enter your username or card number."
NOTE: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt was
modified similarly as well, though I don't think it can be
triggered, since the modal login screen of bootstrap is
triggered by the 'Log in to your account' link, and it no
longer goes to page it did before. The page still exists
by going there by pasting in the known URL.
TEST PLAN
---------
1) Go to staff client.
2) Log in and change the OPAC system preference opacthemes to
'bootstrap'.
3) Logout.
4) Go to OPAC in a different tab.
-- notice staff client's "Username:" differs from the
OPAC's "Login" text.
5) Click the 'Log in to your account' link in the top right.
-- notice staff client's "Username:" differs from the
OPAC's "Login" text.
6) Go to http://YOUROPAC/cgi-bin/koha/opac-user.pl
-- notice staff client's "Username:" differs from the
OPAC's "Login" text.
7) Log in to the staff client and change the OPAC system
preference opacthemes to 'prog'.
8) Logout
9) In the OPAC tab, reload the page.
-- notice staff client's "Username:" differs from the
OPAC's "Login" text.
10) Click the icon in the top left to return to the main Koha
screen.
-- notice staff client's "Username:" differs from the
OPAC's "Login" text.
11) Apply the patch
12) Repeat steps 1-10 again.
-- The textbox associated with the login should have a
tooltip: "Please enter your username or card number."
13) Run the koha qa test tool.
---
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 4 ++--
.../opac-tmpl/bootstrap/en/includes/masthead.inc | 4 ++--
.../opac-tmpl/bootstrap/en/modules/opac-auth.tt | 2 +-
.../opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +-
koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt | 2 +-
koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tt | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
index 5f97758..ea7e3d3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
@@ -48,8 +48,8 @@
[% FOREACH INPUT IN INPUTS %]
[% END %]
-