-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix/link to ereol #654
Fix/link to ereol #654
Conversation
- Fragments for manifestation with only access data - complexSearchWithPagination query
The LinkButon wraps arount the Link component, and the Link component supports this.
Eg. a user has a reservation for the Bible from the Ereol platform - upon opening the reservation details modal and clicking on the "Go to Ereolen" external link button, they will be redirected to the Bible work page on the Ereol platform. In the case of this access data not being available in the FBI API the user is redirected to the Ereol home page instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a cypress test failing. I'll wait until the test has been fixed because I do not know what implications of the changes would be
It was missing a wrapping div so it was misaligned.
In the reservation details test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff!
Have a few comments..
src/apps/reservation-list/modal/reservation-details/reservation-details-redirect.tsx
Show resolved
Hide resolved
This function compares ISBN identifiers, which can have different formats, some including spaces, and/or dashes, or without them altogether. Because of this, we remove all non-digit characters first before making a comparison.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great changes.
Sorry I found some other things I missed in my first review...
src/apps/reservation-list/modal/reservation-details/reservation-details.tsx
Outdated
Show resolved
Hide resolved
src/apps/reservation-list/modal/reservation-details/reservation-details.tsx
Outdated
Show resolved
Hide resolved
Instead of a hard-coded static string, we now use a configurable url in the reservation details component when redirecting user to ereol's home page.
We only use the first one anyways. And limiting it to 100 could affect performance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
4ed29e7
into
danskernesdigitalebibliotek:demo_2023-48-0
Link to issue
https://reload.atlassian.net/browse/DDFLSBP-160
https://reload.atlassian.net/browse/DDFLSBP-199
Description
This PR links from the active reservation modal for ereol materials to the ereol origin page of the given material.
Eg. a user has a reservation for the Bible from the Ereol platform - upon opening the reservation details modal and clicking on the "Go to Ereolen" external link button, they will be redirected to the Bible work page on the Ereol platform.
In the case of this access data not being available in the FBI API the user is redirected to the Ereol home page instead.
Screenshot of the result
Screen.Recording.2023-11-02.at.11.43.59.mov
Additional comments or questions
n/a