From 134aae31e2e3007f820a96fc4c9611ac3d86ed1a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 22 Sep 2014 15:30:58 -0400 Subject: [PATCH] Bug fix: $method was not used, incoming param values were wrong. - Now the parameter IS used, and the values passed are correct. --- .../VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php index 921a39e4f78..8406f718a72 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php @@ -147,7 +147,7 @@ class Connector $params->set('numrec', $limit); $params->set('prof', $this->prof); $params->set('pwd', $this->pwd); - $response = $this->call('POST', $params->getArrayCopy(), false); + $response = $this->call('GET', $params->getArrayCopy(), false); $xml = simplexml_load_string($response); $docs = isset($xml->SearchResults->records) ? $xml->SearchResults->record : array(); @@ -216,7 +216,7 @@ class Connector // Send Request $this->client->resetParameters(); $this->client->setUri($this->base . '?' . $queryString . $dblist); - $result = $this->client->send(); + $result = $this->client->setMethod($method)->send(); $body = $result->getBody(); $xml = simplexml_load_string($body); $this->debug(print_r($xml, true)); @@ -240,7 +240,7 @@ class Connector $params->set('pwd', $this->pwd); $params->set('query', $query); $this->client->resetParameters(); - $response = $this->call('POST', $params->getArrayCopy(), false); + $response = $this->call('GET', $params->getArrayCopy(), false); $xml = simplexml_load_string($response); $docs = isset($xml->SearchResults->records) ? $xml->SearchResults->record : array(); -- GitLab