From 86c87d8d1ea95bd73da0ef848476cb808b181004 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 22 Aug 2014 11:18:46 +0100 Subject: [PATCH] mkws-core.js now also uses the mkws.pazpar2_url() API method. --- src/mkws-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 577d35b..abe414d 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -642,7 +642,7 @@ mkws.pazpar2_url = function() { // protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp" if (mkws.config.pazpar2_url.match(/^\/\//)) { mkws.config.pazpar2_url = document.location.protocol + mkws.config.pazpar2_url; - log("adjusted protocol independent link to " + mkws.config.pazpar2_url); + log("adjusted protocol independent link to " + mkws.pazpar2_url()); } if (mkws.config.responsive_design_width) { @@ -699,7 +699,7 @@ mkws.pazpar2_url = function() { if (mkws.config.use_service_proxy && !mkws.authenticated && !mkws.authenticating) { authenticateSession(sp_auth_url(mkws.config), mkws.config.service_proxy_auth_domain, - mkws.config.pazpar2_url); + mkws.pazpar2_url()); } else if (!mkws.authenticating) { // raw pp2 or we have a session already open runAutoSearches(); -- 1.7.10.4