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

Reader / Player #1859

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open

Reader / Player #1859

wants to merge 19 commits into from

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Dec 12, 2024

Link to issue

https://reload.atlassian.net/browse/DDFBRA-182
https://reload.atlassian.net/browse/DDFBRA-251
https://reload.atlassian.net/browse/DDFBRA-236

Pull requests

#1779
#1814
#1854

Description

This pull request consolidates all features related to Reader/Player functionality, streamlining the integration and development process.

See video in this PR: danskernesdigitalebibliotek/dpl-react#1596

Test

https://varnish.pr-1859.dpl-cms.dplplat01.dpl.reload.dk/

kasperbirch1 and others added 10 commits December 12, 2024 11:13
The `/reader` route now passes either the `identifier` or `orderId` parameters to the `Reader` React app.

This was implemented to ensure the proper loading of external scripts that require a full page reload.
These translations are related to the implementation of the `Player` feature in PR:

danskernesdigitalebibliotek/dpl-react#1562
This caused issues when passing the URL parameter from Drupal into the `Reader` app.

Additionally, I have set the default value of `orderid` to an empty string, similar to how `identifier` is handled.
The `reader-modal-description-text` is no longer utilized.
- Removed unnecessary comments
- Removed redundant div wrapper.
- Removed the `{{ drupal_block('system_messages_block') }}`. as it not needed here
Remove the unnecessary inclusion of the `Reader` react app within a Block.

Instead, render the `Reader` app at the `/reader` route, with the identifier or order ID as optional parameters.

The app will be rendered using the `page--reader.html.twig` template, which does not include a header or footer.
Using `BadRequestHttpException` results in an HTTP 400 error response, which correctly signals a client error, making the API behavior more RESTful and easier to debug for clients.
…anonymous-and-logged-in-user-can-try-ebook

DDFBRA-183 - Anonymous and logged in user can try ebook + audiobook
kasperbirch1 and others added 3 commits December 12, 2024 15:51
The translation key 'material-details-go-to-ereolen' has been updated to 'material-details-go-to-material' following changes made in: danskernesdigitalebibliotek/dpl-react#1565.

Additionally, the 'ereolen-my-page-url' has been removed, as it no longer links to eReolen from the loans page.
…logged-in-user-can-go-from-digital-loans-to-material-to-listen-read

DDFBRA-236 - Logged in user can go from digital loans to material to listen read
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.

4 participants