[open-ils-commits] [GIT] Evergreen ILS branch master updated. 2cc9df22ef56b6814712132150f0cd9b47929bf5

Evergreen Git git at git.evergreen-ils.org
Tue Sep 18 10:33:47 EDT 2012


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, master has been updated
       via  2cc9df22ef56b6814712132150f0cd9b47929bf5 (commit)
      from  5af150f6a5474b0a3871eaf077fb5940289a5ff5 (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 2cc9df22ef56b6814712132150f0cd9b47929bf5
Author: edoceo <code at edoceo.com>
Date:   Wed Aug 1 19:33:20 2012 -0700

    lp949322 Copy Patron barcode to clipboard when clicking their name
    CTRL+Click will open the patron record in a new tab
    
    Signed-off-by: edoceo <code at edoceo.com>
    
    This affects the patron label in Item Status -> Alt View -> Holds/Transits.  Looks good to me.
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
index 128fd22..29a7dd8 100644
--- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
+++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js
@@ -626,6 +626,13 @@ function load_item() {
             JSAN.use('patron.util'); 
             var au_obj = patron.util.retrieve_fleshed_au_via_id( ses(), details.hold.usr() );
             $('hold_patron_name').setAttribute('value', $('circStrings').getFormattedString('staff.circ.copy_details.user_details', [au_obj.family_name(), au_obj.first_given_name(), au_obj.card().barcode()]) );
+            $('hold_patron_name').onclick = function(e) {
+                if (e.ctrlKey) {
+                   window.xulG.new_patron_tab( {}, { 'id' : au_obj.id() } );
+                   return;
+                }
+                copy_to_clipboard(au_obj.card().barcode());
+            };
 
             set("hold_status", details.hold.status()); 
             set("transit", details.hold.transit()); 
diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul
index bcdf212..7d39fd9 100644
--- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul
+++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul
@@ -287,7 +287,7 @@
                 <tabpanel orient="vertical"><!-- Hold/Transit -->
                     <groupbox flex="1" id="holds" style="overflow: none; min-height: 80;" oils_persist="height">
                         <caption id="hold_caption" label="&staff.circ.copy_details.hold_caption;"/>
-                        <label id="hold_patron_name" class="patronNameLarge"/>
+                        <label id="hold_patron_name" class="patronNameLarge click_link"/>
                         <tree id="hold" flex="1" enableColumnDrag="true"/>
                         <spacer FIXME="label and tree get swapped without this"/>
                     </groupbox>

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

Summary of changes:
 .../server/circ/alternate_copy_summary.js          |    7 +++++++
 .../server/circ/alternate_copy_summary.xul         |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list