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:
5b23303
)
Removing bug in the record method.
author
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 20 Dec 2007 13:09:40 +0000
(13:09 +0000)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 20 Dec 2007 13:09:40 +0000
(13:09 +0000)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
925c2c1
..
4d7f784
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-1,5
+1,5
@@
/*
/*
-** $Id: pz2.js,v 1.67 2007-11-13 13:07:28 jakub Exp $
+** $Id: pz2.js,v 1.68 2007-12-20 13:09:40 jakub Exp $
** pz2.js - pazpar2's javascript client library.
*/
** pz2.js - pazpar2's javascript client library.
*/
@@
-466,23
+466,25
@@
pz2.prototype =
}
);
},
}
);
},
- record: function(id, offset, params)
+ record: function(id, offset, pass_params)
{
// we may call record with no previous search if in proxy mode
if( !this.searchStatusOK && this.useSessions)
throw new Error(
'Pz2.js: record command has to be preceded with a search command.'
{
// we may call record with no previous search if in proxy mode
if( !this.searchStatusOK && this.useSessions)
throw new Error(
'Pz2.js: record command has to be preceded with a search command.'
- );
- if ( params == undefined )
- params = {};
+ );
+ var params = {};
+ if ( pass_params != undefined )
+ params = pass_params;
+ var callback;
if ( params.callback != undefined ) {
callback = params.callback;
} else {
callback = this.recordCallback;
}
if ( params.callback != undefined ) {
callback = params.callback;
} else {
callback = this.recordCallback;
}
- // what is that?
+ var handle;
if ( params['handle'] == undefined )
handle = {};
else
if ( params['handle'] == undefined )
handle = {};
else