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

DDFBRA-183 - Anonymous and logged in user can try ebook + audiobook #1779

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

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Nov 20, 2024

Link to issue

https://reload.atlassian.net/browse/DDFBRA-183
https://reload.atlassian.net/browse/DDFBRA-184

Description

This pull request adds translations for Reader link as part of the updates introduced in dpl-react/pull/1555.

During the work on dpl-react/pull/1555, we discovered that rendering Reader within a modal, as originally planned, was not feasible. As a result, Reader has been refactored into a standalone application instead of a component within the material app.

In the material app, navigating to “/reader” now triggers a page transition, with either identifier or orderId passed along as parameters.

Test

https://varnish.pr-1779.dpl-cms.dplplat01.dpl.reload.dk/work/work-of:870970-basis:136089471?type=tegneserie+%28online%29

Additionally, this implementation facilitates testing of the updated functionality.

@kasperbirch1 kasperbirch1 force-pushed the DDFBRA-183-anonymous-and-logged-in-user-can-try-ebook branch from da39c1e to cd45554 Compare November 20, 2024 12:36
@kasperbirch1 kasperbirch1 force-pushed the DDFBRA-183-anonymous-and-logged-in-user-can-try-ebook branch from 10b79f5 to 6a0834f Compare November 22, 2024 13:04
@kasperbirch1 kasperbirch1 force-pushed the DDFBRA-183-anonymous-and-logged-in-user-can-try-ebook branch from 8f4ebba to f1da091 Compare November 26, 2024 13:21
@kasperbirch1 kasperbirch1 force-pushed the DDFBRA-183-anonymous-and-logged-in-user-can-try-ebook branch from f1da091 to 0e6b2d6 Compare November 26, 2024 16:30
@kasperbirch1 kasperbirch1 changed the title DDFBRA-183 - Anonymous and logged in user can try ebook DDFBRA-183 - Anonymous and logged in user can try ebook + audiobook Nov 26, 2024
@kasperbirch1 kasperbirch1 force-pushed the DDFBRA-183-anonymous-and-logged-in-user-can-try-ebook branch from 0e6b2d6 to d6c7f10 Compare November 26, 2024 16:34
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.
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.

5 participants