[open-ils-commits] [GIT] Evergreen ILS branch master updated. 19d5ae86242a855724b1b45d521e145b4b1ee793

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, master has been updated
       via  19d5ae86242a855724b1b45d521e145b4b1ee793 (commit)
      from  5f798af865fdd0d30fa29d95f181df0ad2d43a64 (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 19d5ae86242a855724b1b45d521e145b4b1ee793
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Tue Aug 30 16:30:44 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 81f5b20..190d630 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_metarecord ) + htarget;
                                         break;
                                         case 'T' :
-                                        case 'P' :
                                             opac_url = xulG.url_prefix( urls.opac_rdetail ) + htarget;
                                         break;
+                                        case 'P' :
+                                            opac_url = xulG.url_prefix( urls.opac_rdetail )
+                                            + obj.hold_part_map[ obj.retrieve_ids[i].id ].record();
+                                        break;
                                         case 'I' :
                                             opac_url = xulG.url_prefix( urls.opac_rdetail )
                                             + 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