Skip to content

Commit

Permalink
Merge pull request #2193 from PTFS-Europe/25.01.00_restore_ebsco_sear…
Browse files Browse the repository at this point in the history
…chers

25.01.00 restore ebsco searchers
  • Loading branch information
mdnoble73 authored Jan 14, 2025
2 parents 92439a1 + 4bff3bf commit db1c211
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions code/web/release_notes/25.01.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
- Add an editorconfig file for template files to standardize using tabs across all files. (*MDN*)
- Library card page (under 'My Account') no longer shows Koha user's opac notes if user's library 'Show OPAC Notes' is disabled.(*PA*)
- Fix typo in Authentication/DatabaseAuthentication.php (DIS-159) (*LG*)
- Fix EBSCO EDS and host searcher so that search results can be displayed and no error message shows. (*CZ*)

## This release includes code contributions from
### ByWater Solutions
Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/SearchObject/BaseSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2356,7 +2356,7 @@ public function displayQuery(/** @noinspection PhpUnusedParameterInspection */ $
* @param bool $preventQueryModification Should we make sure the query doesn't change
* @return object Search results (format may vary from class to class).
*/
abstract public function processSearch(bool $returnIndexErrors = false, bool $recommendations = false, bool $preventQueryModification = false) : AspenError|array|null;
abstract public function processSearch(bool $returnIndexErrors = false, bool $recommendations = false, bool $preventQueryModification = false) : AspenError|stdClass|SimpleXMLElement|array|null;

/**
* Get error message from index response, if any. This will only work if
Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/SearchObject/EbscoEdsSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function getSearchesFile() {
return false;
}

public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) : AspenError|array|null {
public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) : AspenError|stdClass|array|null {
$isAuthenticated = $this->authenticate();
if (empty($isAuthenticated)) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/SearchObject/EbscohostSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ function getSearchesFile() {
return false;
}

public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) : AspenError|array|null {
public function processSearch($returnIndexErrors = false, $recommendations = false, $preventQueryModification = false) : AspenError|SimpleXMLElement|array|null {
$settings = $this->getSettings();
if ($settings == null) {
return new AspenError("EBSCOhost searching is not configured for this library.");
Expand Down

0 comments on commit db1c211

Please sign in to comment.