projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4bb40d
)
Indent. Version parameter on show, if present
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 20:46:30 +0000
(22:46 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 20:46:30 +0000
(22:46 +0200)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
5d0c614
..
41fa147
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-384,17
+384,19
@@
pz2.prototype =
var request = new pzHttpRequest(this.pz2String, this.errorHandler);
var requestParameters =
{
var request = new pzHttpRequest(this.pz2String, this.errorHandler);
var requestParameters =
{
- "command": "show",
- "session": this.sessionID,
- "start": this.currentStart,
- "num": this.currentNum,
- "sort": this.currentSort,
- "block": 1,
- "type": this.showResponseType,
- "windowid" : window.name
+ "command": "show",
+ "session": this.sessionID,
+ "start": this.currentStart,
+ "num": this.currentNum,
+ "sort": this.currentSort,
+ "block": 1,
+ "type": this.showResponseType,
+ "windowid" : window.name,
};
if (query_state)
requestParameters["query-state"] = query_state;
};
if (query_state)
requestParameters["query-state"] = query_state;
+ if (this.version && this.version > 0)
+ requestParameters["version"] = this.version;
request.safeGet(
requestParameters,
function(data, type) {
request.safeGet(
requestParameters,
function(data, type) {