[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 778887924c7e543164dda30d1c67db38f017bc28

Evergreen Git git at git.evergreen-ils.org
Fri Jun 7 12:32:06 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_4 has been updated
       via  778887924c7e543164dda30d1c67db38f017bc28 (commit)
      from  562ff4d7fb2e2f8efcc776e31eb8975730282e3a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 778887924c7e543164dda30d1c67db38f017bc28
Author: Ben Shum <bshum at biblio.org>
Date:   Sat Mar 2 02:21:58 2013 -0500

    TPAC - set autofocus to user input when placing holds in staff client
    
    When placing holds in TPAC via the staff client, the focus had been on the
    basic search field above. Change this to have autofocus on the input field
    for the hold user by default.
    
    This can potentially save staff from having to perform an extra click to
    select the input field. Now they can immediately begin entering the barcode
    of the user they plan to create a hold on behalf of.
    
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2
index 3ce5f06..07bdcc7 100644
--- a/Open-ILS/src/templates/opac/parts/place_hold.tt2
+++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2
@@ -22,7 +22,7 @@
             <label for="hold_usr_is_requestor_not">
                 [% l("Place hold for patron by barcode:") %]
             </label>
-            <input type="text" name="hold_usr" id="hold_usr_input" onchange="staff_hold_usr_barcode_changed();" onpaste="setTimeout(staff_hold_usr_barcode_changed,1);" onkeypress="return no_hold_submit(event)" /> <span id="patron_name"></span><span id="patron_usr_barcode_not_found" style="display: none">[% l('Patron barcode was not found') %]</span><br />
+            <input type="text" name="hold_usr" id="hold_usr_input" onchange="staff_hold_usr_barcode_changed();" onpaste="setTimeout(staff_hold_usr_barcode_changed,1);" onkeypress="return no_hold_submit(event)" autofocus /> <span id="patron_name"></span><span id="patron_usr_barcode_not_found" style="display: none">[% l('Patron barcode was not found') %]</span><br />
             <input type="hidden" id="staff_barcode" value="[% ctx.staff_recipient.card.barcode | html %]"/>
             <span>
                 <input type="radio" id="hold_usr_is_requestor"
diff --git a/Open-ILS/src/templates/opac/place_hold.tt2 b/Open-ILS/src/templates/opac/place_hold.tt2
index 423198c..cb97e88 100644
--- a/Open-ILS/src/templates/opac/place_hold.tt2
+++ b/Open-ILS/src/templates/opac/place_hold.tt2
@@ -1,6 +1,9 @@
 [%- PROCESS "opac/parts/header.tt2";
     WRAPPER "opac/parts/base.tt2";
     INCLUDE "opac/parts/topnav.tt2";
+    IF ctx.is_staff;
+        basic_search = "f";
+    END;
     ctx.page_title = l("Place Hold") %]
     <div id="search-wrapper">
         [% INCLUDE "opac/parts/searchbar.tt2" %]

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/place_hold.tt2 |    2 +-
 Open-ILS/src/templates/opac/place_hold.tt2       |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list