From: Thomas Berezansky Date: Thu, 8 Dec 2011 16:26:33 +0000 (-0500) Subject: Show Suspended holds as Suspended X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b78cdbe029cc1df6143329f490e984a57b0b31bb;p=evergreen%2Fequinox.git Show Suspended holds as Suspended In the staff client and JSPac show the status of a suspended hold as Suspended rather than something like "Waiting for copy". Signed-off-by: Thomas Berezansky Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index 83c55a6d27..58160db0de 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -975,6 +975,7 @@ Returns event on error or: 4 for 'arrived', 5 for 'hold-shelf-delay' 6 for 'canceled' + 7 for 'suspended' END_OF_DESC } } @@ -1001,6 +1002,9 @@ sub _hold_status { if ($hold->cancel_time) { return 6; } + if ($U->is_true($hold->frozen)) { + return 7; + } return 1 unless $hold->current_copy; return 2 unless $hold->capture_time; diff --git a/Open-ILS/web/opac/locale/en-US/opac.dtd b/Open-ILS/web/opac/locale/en-US/opac.dtd index 6d71f51e3c..7d6e460da7 100644 --- a/Open-ILS/web/opac/locale/en-US/opac.dtd +++ b/Open-ILS/web/opac/locale/en-US/opac.dtd @@ -210,6 +210,7 @@ avoid using bookbags all together. Thank you."> + diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index 638ed08241..3ea4b02e32 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -477,7 +477,9 @@ function myOShowHoldStatus(r) { hideMe($n(row, 'myopac_holds_cancel_link')); } - if (showHoldQueuePosition) { + if( qstats.status == 7 ) { + unHideMe($n(row, 'hold_status_suspended')); + } else if (showHoldQueuePosition) { var node = $n(row, 'hold_qstats'); if (qstats.potential_copies == 1) { node.appendChild(text(dojo.string.substitute(opac_strings.HOLD_STATUS_SINGULAR, [qstats.queue_position, qstats.total_holds, qstats.potential_copies]))); diff --git a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml index 08d16906d1..5a07d9ed07 100644 --- a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml +++ b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_holds.xml @@ -85,6 +85,7 @@ + &myopac.holds.status.suspended; &myopac.holds.status.waiting; &myopac.holds.status.intransit; &myopac.holds.status.available; diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 2f47464446..d2fe5dcdad 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1941,6 +1941,9 @@ circ.util.hold_columns = function(modify,params) { case 6: return document.getElementById('circStrings').getString('staff.circ.utils.hold_status.6'); break; + case 7: + return document.getElementById('circStrings').getString('staff.circ.utils.hold_status.7'); + break; default: return my.status; break; diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 66ed6a376f..423ec85555 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -319,6 +319,7 @@ staff.circ.utils.hold_status.3=In-Transit staff.circ.utils.hold_status.4=Ready for pickup staff.circ.utils.hold_status.5=Reserved/Pending staff.circ.utils.hold_status.6=Canceled +staff.circ.utils.hold_status.7=Suspended staff.circ.utils.hold_post_clear_shelf_action.label=Post-Clear staff.circ.utils.hold_post_clear_shelf_action.hold=Need for Hold staff.circ.utils.hold_post_clear_shelf_action.transit=Need for Transit