From: phasefx Date: Tue, 27 Oct 2009 07:09:48 +0000 (+0000) Subject: wire up Top of Queue toggle for staff client hold interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aee89806c71e8a395656cdb949cc50f953f13eae;p=contrib%2FConifer.git wire up Top of Queue toggle for staff client hold interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@14625 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 3cb462e198..011f64afe9 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2048,6 +2048,8 @@ + + diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 3a83706984..1ad61311be 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1886,6 +1886,15 @@ circ.util.hold_columns = function(modify,params) { }, { 'persist' : 'hidden width ordinal', + 'id' : 'top_of_queue', + 'label' : document.getElementById('commonStrings').getString('staff.ahr_top_of_queue_label'), + 'flex' : 1, + 'primary' : false, + 'hidden' : true, + 'editable' : false, 'render' : function(my) { return get_bool( my.ahr.cut_in_line() ) ? document.getElementById('commonStrings').getString('common.yes') : document.getElementById('commonStrings').getString('common.no') ; } + }, + { + 'persist' : 'hidden width ordinal', 'id' : 'target', 'label' : document.getElementById('commonStrings').getString('staff.ahr_target_label'), 'flex' : 1, diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties index 1b8b43595a..e0d428f179 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties @@ -53,6 +53,7 @@ staff.ahr_pickup_lib_label=Pickup Library staff.ahr_prev_check_time_label=Previous Check Time staff.ahr_requestor_label=Requestor staff.ahr_selection_depth_label=Selection Depth +staff.ahr_top_of_queue_label=Top of Queue staff.ahr_status_label=Status staff.ahr_target_label=Target staff.ahr_usr_label=User diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties index e58ca1f3a1..3f08b1cb57 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties @@ -160,6 +160,21 @@ staff.patron.holds.holds_edit_email_notify.enable_email.plural=Are you sure you staff.patron.holds.holds_edit_email_notify.disable_email.singular=Are you sure you would like to disable email notification for hold %1$s? staff.patron.holds.holds_edit_email_notify.disable_email.plural=Are you sure you would like to disable email notification for hold %1$s? staff.patron.holds.holds_edit_email_notify.mod_holds_title=Modifying Holds + +staff.patron.holds.holds_cut_in_line.description=Move to the front of the holds queue above other holds that are not likewise flagged Top of Queue? +staff.patron.holds.holds_cut_in_line.btn_cut.label=Top of Queue +staff.patron.holds.holds_cut_in_line.btn_cut.accesskey=T +staff.patron.holds.holds_cut_in_line.btn_no_cut.label=No Top of Queue +staff.patron.holds.holds_cut_in_line.btn_no_cut.accesskey=N +staff.patron.holds.holds_cut_in_line.btn_cancel.label=Cancel +staff.patron.holds.holds_cut_in_line.btn_cancel.accesskey=C +staff.patron.holds.holds_cut_in_line.set_notifs=Set Top of Queue (Force to Front) for Holds +staff.patron.holds.holds_cut_in_line.enable_cut.singular=Are you sure you would like to enable Top of Queue for hold %1$s? +staff.patron.holds.holds_cut_in_line.enable_cut.plural=Are you sure you would like to enable Top of Queue for holds %1$s? +staff.patron.holds.holds_cut_in_line.disable_cut.singular=Are you sure you would like to disable Top of Queue for hold %1$s? +staff.patron.holds.holds_cut_in_line.disable_cut.plural=Are you sure you would like to disable Top of Queue for hold %1$s? +staff.patron.holds.holds_cut_in_line.mod_holds_title=Modifying Holds + staff.patron.holds.holds_retarget.reset_hold_message.singular=Are you sure you would like to reset hold %1$s? staff.patron.holds.holds_retarget.reset_hold_message.plural=Are you sure you would like to reset holds %1$s? staff.patron.holds.holds_retarget.reset_hold_title=Resetting Holds diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 828f4857b7..5057a87e6d 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -535,6 +535,62 @@ patron.holds.prototype = { } } ], + 'cmd_holds_cut_in_line' : [ + ['command'], + function() { + try { + var xml = ''; + xml += ''+$("patronStrings").getString('staff.patron.holds.holds_cut_in_line.description')+''; + xml += '