From: Jason Etheridge Date: Tue, 20 Sep 2011 13:48:05 +0000 (-0400) Subject: fix Show in Catalog for part holds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1629568e7b2d6752a35e29a937c559ac7b0f5770;p=Evergreen.git fix Show in Catalog for part holds Signed-off-by: Jason Etheridge Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index b9dcd54d09..8c97c9d706 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -22,6 +22,7 @@ patron.holds.prototype = { 'filter_lib' : null, 'hold_subscription_map' : {}, + 'hold_part_map' : {}, 'expired' : false, 'post_clear_shelf_hold_action_map' : {}, @@ -92,6 +93,9 @@ patron.holds.prototype = { row.my.acn = blob.volume; row.my.mvr = blob.mvr; row.my.part = blob.part; + if (blob.part) { + obj.hold_part_map[ row.my.hold_id ] = row.my.part; + } row.my.issuance = blob.issuance; if (blob.issuance) { row.my.subscription = blob.issuance.subscription(); @@ -1152,9 +1156,12 @@ patron.holds.prototype = { opac_url = xulG.url_prefix( urls.opac_rresult ) + '?m=' + htarget; break; case 'T' : - case 'P' : opac_url = xulG.url_prefix( urls.opac_rdetail ) + '?r=' + htarget; break; + case 'P' : + opac_url = xulG.url_prefix( urls.opac_rdetail ) + + '?r=' + obj.hold_part_map[ obj.retrieve_ids[i].id ].record(); + break; case 'I' : opac_url = xulG.url_prefix( urls.opac_rdetail ) + '?r=' + obj.hold_subscription_map[ obj.retrieve_ids[i].id ].record_entry();