throw new Error("Pz2.js: Array with parameters has to be supplied.");
//supported pazpar2's protocol version
+ this.windowid = paramArray.windowid || window.name;
this.suppProtoVer = '1';
if (typeof paramArray.pazpar2path != "undefined")
this.pz2String = paramArray.pazpar2path;
var request = new pzHttpRequest(this.pz2String, this.errorHandler);
request.safeGet(
- { "command": "ping", "session": this.sessionID, "windowid" : window.name },
+ { "command": "ping", "session": this.sessionID, "windowid" : this.windowid },
function(data) {
if ( data.getElementsByTagName("status")[0]
.childNodes[0].nodeValue == "OK" ) {
"command": "search",
"query": this.currQuery,
"session": this.sessionID,
- "windowid" : window.name
+ "windowid" : this.windowid
};
if( sort !== undefined ) {
var context = this;
var request = new pzHttpRequest(this.pz2String, this.errorHandler);
request.safeGet(
- { "command": "stat", "session": this.sessionID, "windowid" : window.name },
+ { "command": "stat", "session": this.sessionID, "windowid" : this.windowid },
function(data) {
if ( data.getElementsByTagName("stat") ) {
var activeClients =
"sort": this.currentSort,
"block": 1,
"type": this.showResponseType,
- "windowid" : window.name
+ "windowid" : this.windowid
};
if (query_state)
requestParameters["query-state"] = query_state;
"command": "record",
"session": this.sessionID,
"id": this.currRecID,
- "windowid" : window.name
+ "windowid" : this.windowid
};
this.currRecOffset = null;
"command": "termlist",
"session": this.sessionID,
"name": this.termKeys,
- "windowid" : window.name,
+ "windowid" : this.windowid,
"version" : this.version
},
"command": "bytarget",
"session": this.sessionID,
"block": 1,
- "windowid" : window.name,
+ "windowid" : this.windowid,
"version" : this.version
},
function(data) {