}
*/
- if (mkws.config.use_service_proxy) {
- if (!mkws.authenticated) {
- authenticateSession(mkws.config.service_proxy_auth,
- mkws.config.service_proxy_auth_domain,
- mkws.config.pazpar2_url);
- }
+ if (mkws.config.use_service_proxy && !mkws.authenticated) {
+ authenticateSession(mkws.config.service_proxy_auth,
+ mkws.config.service_proxy_auth_domain,
+ mkws.config.pazpar2_url);
} else {
- // raw pp2
+ // raw pp2 or we have a session already open
runAutoSearches();
}