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:
ffae674
)
If member 'handle' is specified as a param, then handle will be passed to
author
Anders S. Mortensen
<sondberg@indexdata.dk>
Fri, 13 Jul 2007 10:30:36 +0000
(10:30 +0000)
committer
Anders S. Mortensen
<sondberg@indexdata.dk>
Fri, 13 Jul 2007 10:30:36 +0000
(10:30 +0000)
callback.
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
18d790f
..
e57281d
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-1,5
+1,5
@@
/*
/*
-** $Id: pz2.js,v 1.46 2007-07-12 11:49:20 sondberg Exp $
+** $Id: pz2.js,v 1.47 2007-07-13 10:30:36 sondberg Exp $
** pz2.js - pazpar2's javascript client library.
*/
** pz2.js - pazpar2's javascript client library.
*/
@@
-357,6
+357,11
@@
pz2.prototype =
callback = __myself.recordCallback;
}
callback = __myself.recordCallback;
}
+ if ( params['handle'] == undefined )
+ handle = {};
+ else
+ handle = params['handle'];
+
if( !__myself.searchStatusOK && __myself.useSessions)
return;
if( !__myself.searchStatusOK && __myself.useSessions)
return;
@@
-382,7
+387,7
@@
pz2.prototype =
record['xmlDoc'] = data;
if (__myself.currRecOffset !== undefined) {
record['offset'] = __myself.currRecOffset;
record['xmlDoc'] = data;
if (__myself.currRecOffset !== undefined) {
record['offset'] = __myself.currRecOffset;
- callback(record);
+ callback(record, handle);
} else if ( recordNode = data.getElementsByTagName("record")[0] ) {
// if stylesheet was fetched do not parse the response
if ( __myself.xslDoc ) {
} else if ( recordNode = data.getElementsByTagName("record")[0] ) {
// if stylesheet was fetched do not parse the response
if ( __myself.xslDoc ) {
@@
-418,7
+423,7
@@
pz2.prototype =
}
}
}
}
- callback(record);
+ callback(record, handle);
}
else
// if it gets here the http return code was 200 (pz2 errors are 417)
}
else
// if it gets here the http return code was 200 (pz2 errors are 417)