Bugzilla – Attachment 49655 Details for
Bug 15793
UX of circulation patron search with long lists of returned borrowers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15793 - UX of circulation patron search with long lists of returned borrowers
Bug-15793---UX-of-circulation-patron-search-with-l.patch (text/plain), 3.62 KB, created by
Aleisha Amohia
on 2016-03-29 21:46:27 UTC
(
hide
)
Description:
Bug 15793 - UX of circulation patron search with long lists of returned borrowers
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-03-29 21:46:27 UTC
Size:
3.62 KB
patch
obsolete
>From a460cf07f291ae0c4585f9c721295b1f86da5a62 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Wed, 23 Mar 2016 21:53:44 +0000 >Subject: [PATCH] Bug 15793 - UX of circulation patron search with long lists > of returned borrowers >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Okay how about this: >This patch has no floating toolbar or names styled as links. I've removed the radio buttons. The row is clickable and will redirect you to the user's page. > >EDIT: This patch makes the cursor a pointer when hovering over the patrons. The row will also be highlighted on hover to make it even clearer. >EDIT2: Removes unnecessary 'Select' button > >To test: >1) Put in a patron search that will bring back a long list of patrons (ie the letter 'a') >2) Select a patron by clicking anywhere on the row - confirm you are taken to the correct patron page > >Sponsored-by: Catalyst IT > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 11 ++++++----- > 2 files changed, 14 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >index 58cb902..a638129 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css >@@ -282,6 +282,14 @@ tr.odd.onissue td { > background-color: #FFFFE1; > } > >+tr.clickable { >+ cursor: pointer; >+} >+ >+.table_borrowers tr:hover td { >+ background-color: #ffff99; >+} >+ > tfoot td { > background-color : #f3f3f3; > font-weight : bold; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 0efe49b..aa7bbdb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -89,6 +89,10 @@ $(document).ready(function() { > } > }); > >+ $(".clickable").click(function() { >+ window.document.location = $(this).data('url'); >+ }); >+ > [% IF !( CircAutoPrintQuickSlip == 'clear' ) %] > // listen submit to trigger qslip on empty checkout > $('#mainform').bind('submit',function() { >@@ -568,10 +572,9 @@ No patron matched <span class="ex">[% message %]</span> > <input type="hidden" name="duedatespec" value="[% duedatespec %]" /> > <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> > >- <table id="table_borrowers"> >+ <table id="table_borrowers" class="table_borrowers"> > <thead> > <tr> >- <th></th> > <th>Name</th> > <th>Cardnumber</th> > <th>Category</th> >@@ -581,8 +584,7 @@ No patron matched <span class="ex">[% message %]</span> > </thead> > <tbody> > [% FOREACH borrower IN borrowers %] >- <tr> >- <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td> >+ <tr class="clickable" data-url="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]"> > <td>[% borrower.surname %], [% borrower.firstname %]</td> > <td>[% borrower.cardnumber %]</td> > <td>[% borrower.categorycode %]</td> >@@ -592,7 +594,6 @@ No patron matched <span class="ex">[% message %]</span> > [% END %] > </tbody> > </table> >- <fieldset class="action"><input type="submit" value="Select" /></fieldset> > </fieldset> > </form> > [% ELSE %] >-- >1.7.10.4
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 15793
:
47938
|
47940
|
47992
|
49457
|
49472
|
49520
|
49521
|
49611
|
49655
|
49656
|
49734