+
+function auth_check_item(methods) {
+ auth.check(itemMain, function () { window.location = "login.html" + window.location.search + "&page="+window.location.pathname;}, methods );
+}
+
+//when page loads
+function itemMain() {
+ mk_showPage();
+ if (auth.styleCss && document.getElementById("stylesheet")) {
+ document.getElementById("stylesheet").href = auth.styleCss;
+ }
+
+ // parse HTTP GET params (!!!)
+ window.location.parameters = parseQueryString(window.location.search);
+ var params = window.location.parameters;
+ // query params used by optional record_facets.js
+ if (window.RecordFacets != undefined) {
+ this.recordFacets = new RecordFacets();
+ this.recordFacets.setRequestParams(params);
+ }
+ prefixRecId = params["prefixrecid"];
+ query_state = params["query_state"];
+ recQuery = params["recordquery"];
+ // load templating components
+/*
+ loadComponents();
+ renderComponent("authLogoComp", auth);
+ renderComponent("authInfoComp", auth);
+ renderComponent("infoComp",null);
+ renderComponent("backToSearchComp",query_state);
+*/
+ my_paz = new pz2( {"pazpar2path": auth.servicePath,
+ "usesessions" : usesessions,
+ "errorhandler" : my_onerror,
+ "onrecord" : my_onrecord
+ });
+
+ // http params have highest priority
+ showDetails(prefixRecId,recQuery);
+}
+
+