[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 1629568e7b2d6752a35e29a937c559ac7b0f5770

Evergreen Git git at git.evergreen-ils.org
Tue Sep 20 13:08:31 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  1629568e7b2d6752a35e29a937c559ac7b0f5770 (commit)
      from  2361831280ce01b20c63f909d65571ecfae759bc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1629568e7b2d6752a35e29a937c559ac7b0f5770
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Tue Sep 20 09:48:05 2011 -0400

    fix Show in Catalog for part holds
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js
index b9dcd54..8c97c9d 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();

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/patron/holds.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list