[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 336f1831e2e169c57f9b01521a1b1dec8c18b034
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, rel_2_4 has been updated
via 336f1831e2e169c57f9b01521a1b1dec8c18b034 (commit)
from 4d3f3c66af8ed00a2a57d984ad310dc54a51238b (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 336f1831e2e169c57f9b01521a1b1dec8c18b034
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