[open-ils-commits] [GIT] Evergreen ILS branch master updated. 885eacc8fa6c768dea4443d471bb9f1d0f8d1c9a

Evergreen Git git at git.evergreen-ils.org
Mon May 6 13:48:34 EDT 2013


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  885eacc8fa6c768dea4443d471bb9f1d0f8d1c9a (commit)
      from  2be86106c04187a6bfeb3a688b1e87d1743f441f (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 885eacc8fa6c768dea4443d471bb9f1d0f8d1c9a
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Sun Oct 7 11:58:37 2012 -0400

    Add params support to show in opac function
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js
index 91b99cc..2f47f67 100644
--- a/Open-ILS/xul/staff_client/server/cat/util.js
+++ b/Open-ILS/xul/staff_client/server/cat/util.js
@@ -241,10 +241,11 @@ cat.util.spawn_spine_editor = function(selection_list) {
     }
 }
 
-cat.util.show_in_opac = function(selection_list) {
+cat.util.show_in_opac = function(selection_list, params) {
     JSAN.use('util.error'); var error = new util.error();
     JSAN.use('util.network'); var network = new util.network();
     var doc_id; var seen = {};
+    if(!params) params = {};
     try {
         for (var i = 0; i < selection_list.length; i++) {
             doc_id = selection_list[i].doc_id;
@@ -264,11 +265,11 @@ cat.util.show_in_opac = function(selection_list) {
             }
             seen[doc_id] = true;
             var opac_url = xulG.url_prefix('opac_rdetail') + doc_id;
-            var content_params = { 
-                'session' : ses(),
-                'authtime' : ses('authtime'),
-                'opac_url' : opac_url,
-            };
+            var content_params = {};
+            for (var value in params) content_params[value] = params[value];
+            content_params['session'] = ses();
+            content_params['authtime'] = ses('authtime');
+            content_params['opac_url'] = opac_url;
             xulG.new_tab(
                 xulG.url_prefix('XUL_OPAC_WRAPPER'), 
                 {'tab_name':$('catStrings').getString('staff.cat.util.show_in_opac.retrieving_title')}, 

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

Summary of changes:
 Open-ILS/xul/staff_client/server/cat/util.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list