Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24.10.00 handle eds search error #135

Conversation

Chloe070196
Copy link

EDS errors should be logged and not echoed, and a standard Aspen Error should be displayed to the user.

Test plan: see commit messages

When an Aspen error is thrown for EBSCO EDS search
and the searchError.tpl file is displayed, instead
of the original error message, this php error is
shown:

Cannot use object of type AspenError as array

Test plan:
- navigate to Aspen Administration > EBSCO EDS >
Settings
- create a new Setting, make sure to use invalid
credentials and save
- navigate to Aspen Administration > Primary
Configuration > Library Systems and select your
current Library
- set its EDS Setting to the setting you just
created
- run a search in Articles and Databases

Before this commit:
The error message is uninformative (Cannot use
object of type AspenError as array).

After this commit:
The error message refers to a specific cause.
Test plan:
    - navigate to Aspen Administration > EBSCO EDS >
    Settings
    - create a new Setting, make sure to use invalid
    credentials and save
    - navigate to Aspen Administration > Primary
    Configuration > Library Systems and select your
    current Library
    - set its EDS Setting to the setting you just
    created
    - log out
    - run a search in Articles and Databases

Before this commit:
An error message appears at the top of the screen.
This message contains the information sent back by
EDS.

After this commit:
The error message does not show on screen anymore
and is logged instead.
@Chloe070196 Chloe070196 force-pushed the 24.10.00_handle_eds_search_error branch from b9a62d0 to db9aed0 Compare October 11, 2024 09:58
@Chloe070196 Chloe070196 merged commit ccd5969 into PTFS-Europe:24.10.00_handle_eds_search_error Oct 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant