projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change
[pazpar2-moved-to-github.git]
/
js
/
pz2.js
diff --git
a/js/pz2.js
b/js/pz2.js
index
885a664
..
cb5a0e7
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-1,5
+1,5
@@
/*
/*
-** $Id: pz2.js,v 1.21 2007-05-23 09:18:10 jakub Exp $
+** $Id: pz2.js,v 1.27 2007-06-01 08:25:53 jakub Exp $
** pz2.js - pazpar2's javascript client library.
*/
** pz2.js - pazpar2's javascript client library.
*/
@@
-541,6
+541,8
@@
pzHttpRequest.prototype =
var context = this;
this.request.open( 'GET', getUrl, true );
var context = this;
this.request.open( 'GET', getUrl, true );
+ this.request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
+ //this.request.setRequestHeader('Accept-Charset', 'UTF-8');
this.request.onreadystatechange = function () {
context._handleResponse();
}
this.request.onreadystatechange = function () {
context._handleResponse();
}
@@
-651,7
+653,7
@@
pzQuery.prototype = {
{
var ccl = '';
if( this.simpleQuery != '')
{
var ccl = '';
if( this.simpleQuery != '')
- ccl = '"'+this.simpleQuery+'"';
+ ccl = this.simpleQuery;
for(var i = 0; i < this.advTerms.length; i++)
{
if (ccl != '') ccl = ccl + ' and ';
for(var i = 0; i < this.advTerms.length; i++)
{
if (ccl != '') ccl = ccl + ' and ';