From: edoceo Date: Thu, 2 Aug 2012 02:33:20 +0000 (-0700) Subject: lp949322 Copy Patron barcode to clipboard when clicking their name X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2cc9df22ef56b6814712132150f0cd9b47929bf5;p=evergreen%2Fequinox.git 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 This affects the patron label in Item Status -> Alt View -> Holds/Transits. Looks good to me. Signed-off-by: Jason Etheridge --- 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 128fd22be4..29a7dd80cb 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 bcdf212112..7d39fd9f82 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 @@ -