From c0a3be41982ade814597ea3f258e3e19821ff95d Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Tue, 22 May 2012 08:00:12 -0400 Subject: [PATCH 1/1] Always display the hold type indicator We should be showing the type of hold on any pull-list or hold detail interface we build. The primary use case is to alert staff when an alternate identical copy of the same title will (very likely) be usable by a hold, and (as in the case of C-like holds) it will not. Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- Open-ILS/web/opac/extras/circ/alt_holds_print.html | 2 ++ Open-ILS/xul/staff_client/server/admin/hold_pull_list.js | 1 + Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml | 1 + .../xul/staff_client/server/admin/hold_pull_list_classic.js | 1 + .../xul/staff_client/server/admin/hold_pull_list_classic.xhtml | 2 +- Open-ILS/xul/staff_client/server/patron/hold_details.js | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/extras/circ/alt_holds_print.html b/Open-ILS/web/opac/extras/circ/alt_holds_print.html index e1d20338f4..c3fc671d28 100644 --- a/Open-ILS/web/opac/extras/circ/alt_holds_print.html +++ b/Open-ILS/web/opac/extras/circ/alt_holds_print.html @@ -78,6 +78,7 @@ Patron Action + Type Title Author Shelving Location @@ -91,6 +92,7 @@ ${usr.display_name} ${action} + ${hold_type} ${current_copy.location.name} diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.js b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.js index c13f0b2c05..9a9b7428b6 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.js +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.js @@ -87,6 +87,7 @@ function pullListDrawTitle( tbody, row, hold, idx, record ) { function pullListDrawCopy( tbody, row, hold, idx, copy ) { + $n(row, 'hold_type').appendChild(text(hold.hold_type())); $n(row, 'barcode').appendChild(text(copy.barcode())); $n(row, 'copy_location').appendChild(text(copy.location().name())); $n(row, 'copy_number').appendChild(text(copy.copy_number())); diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml index 0979ae4542..ba4c68b7c0 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list.xhtml @@ -81,6 +81,7 @@ + &staff.server.admin.hold_pull.copy_hold; &staff.server.admin.hold_pull.volume_hold; &staff.server.admin.hold_pull.title_hold; diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js index e3801dbe3d..18dc9e7c5a 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.js @@ -98,6 +98,7 @@ function pullListDrawTitle( tbody, row, hold, idx, record ) { function pullListDrawCopy( tbody, row, hold, idx, copy ) { + $n(row, 'hold_type').appendChild(text(hold.hold_type())); $n(row, 'barcode').appendChild(text(copy.barcode())); $n(row, 'copy_location').appendChild(text(copy.location().name())); $n(row, 'copy_number').appendChild(text(copy.copy_number())); diff --git a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml index 631e62eceb..510e72141c 100644 --- a/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/hold_pull_list_classic.xhtml @@ -55,7 +55,7 @@ Copy: Location: Item ID: Item Type: Book Large Print Book Audiobook Video Recording Music Electronic Resource Patron ID: -Requested: Hold Type: Copy HoldVolume HoldTitle HoldMetarecord Hold +Requested: Hold Type: Copy HoldVolume HoldTitle HoldMetarecord Hold Pickup: Hold Protection: diff --git a/Open-ILS/xul/staff_client/server/patron/hold_details.js b/Open-ILS/xul/staff_client/server/patron/hold_details.js index aaace8b064..f35187df81 100644 --- a/Open-ILS/xul/staff_client/server/patron/hold_details.js +++ b/Open-ILS/xul/staff_client/server/patron/hold_details.js @@ -109,6 +109,7 @@ function init_list() { 'current_copy' : { 'hidden' : false }, 'phone_notify' : { 'hidden' : false }, 'email_notify' : { 'hidden' : false }, + 'hold_type' : { 'hidden' : false }, } ); JSAN.use('util.list'); g.list = new util.list('holds_list'); -- 2.43.2