Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / holds.js
index cbe2ba1..c6c1bb6 100644 (file)
@@ -1308,6 +1308,9 @@ patron.holds.prototype = {
                         ['command'],
                         function(ev) {
                             try {
+                                var use_url = urls.browser;
+                                use_url += use_url.match(/\?/) ? "&" : "?";
+                                use_url += "patron_barcode=" + obj.patron_barcode;
                                 var content_params = {
                                     'show_nav_buttons' : false,
                                     'show_print_button' : true,
@@ -1343,7 +1346,7 @@ patron.holds.prototype = {
                                         'patron_barcode' : obj.patron_barcode
                                     },
                                     'url_prefix' : xulG.url_prefix,
-                                    'url' : xulG.url_prefix( urls.browser )
+                                    'url' : xulG.url_prefix(use_url)
                                 };
                                 xulG.display_window.g.patron.right_deck.set_iframe( urls.XUL_REMOTE_BROWSER + '?patron_hold=1', {}, content_params);
                             } catch(E) {