diff --git a/composer.json b/composer.json index 15e4e1675..7f2e78f8f 100644 --- a/composer.json +++ b/composer.json @@ -36,10 +36,10 @@ "type": "package", "package": { "name": "danskernesdigitalebibliotek/dpl-react", - "version": "2023.51.0", + "version": "2024.1.1", "type": "drupal-library", "dist": { - "url": "https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/2023.51.0/dist-2023-51-0-3f307dca1ba8323d5be6efa174ed428c3a8af4c9.zip", + "url": "https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/2024.1.0/dist-2024-1-0-2781c91a4734260244efe90d031c1db02984f81d.zip", "type": "zip" }, "require": { @@ -52,9 +52,9 @@ "package": { "name": "danskernesdigitalebibliotek/dpl-design-system", "type": "drupal-library", - "version": "2023.51.0", + "version": "2024.1.0", "dist": { - "url": "https://github.com/danskernesdigitalebibliotek/dpl-design-system/releases/download/2023.51.0/dist-2023-51-0-cd7e0937a067366392e60d85a9831b7d1cdf363e.zip", + "url": "https://github.com/danskernesdigitalebibliotek/dpl-design-system/releases/download/2024.1.0/dist-2024-1-0-7adbfa5f0ec9c36c92e2b0b813049daed9022698.zip", "type": "zip" } } @@ -74,8 +74,8 @@ "brick/math": "^0.12.1", "composer/installers": "1.12.0", "cweagans/composer-patches": "1.7.3", - "danskernesdigitalebibliotek/dpl-design-system": "2023.51.0", - "danskernesdigitalebibliotek/dpl-react": "2023.51.0", + "danskernesdigitalebibliotek/dpl-design-system": "^2024.1", + "danskernesdigitalebibliotek/dpl-react": "^2024.1", "danskernesdigitalebibliotek/fbs-client": "*", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", "deoliveiralucas/array-keys-case-transform": "^1.1", diff --git a/composer.lock b/composer.lock index 4aade1fd7..20fd2a0ca 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c519c2dbf3683853449ecbf29cbddbad", + "content-hash": "f83461054e01e7b07c0e768c7f6dfc76", "packages": [ { "name": "amazeeio/drupal_integrations", @@ -1099,19 +1099,19 @@ }, { "name": "danskernesdigitalebibliotek/dpl-design-system", - "version": "2023.51.0", + "version": "2024.1.0", "dist": { "type": "zip", - "url": "https://github.com/danskernesdigitalebibliotek/dpl-design-system/releases/download/2023.51.0/dist-2023-51-0-cd7e0937a067366392e60d85a9831b7d1cdf363e.zip" + "url": "https://github.com/danskernesdigitalebibliotek/dpl-design-system/releases/download/2024.1.0/dist-2024-1-0-7adbfa5f0ec9c36c92e2b0b813049daed9022698.zip" }, "type": "drupal-library" }, { "name": "danskernesdigitalebibliotek/dpl-react", - "version": "2023.51.0", + "version": "2024.1.1", "dist": { "type": "zip", - "url": "https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/2023.51.0/dist-2023-51-0-3f307dca1ba8323d5be6efa174ed428c3a8af4c9.zip" + "url": "https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/2024.1.0/dist-2024-1-0-2781c91a4734260244efe90d031c1db02984f81d.zip" }, "require": { "composer/installers": "^1.2.0" diff --git a/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php b/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php index 43f786e00..8a4aa7209 100644 --- a/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php +++ b/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php @@ -110,12 +110,10 @@ public function build(): array { 'group-modal-aria-description-text' => $this->t('This modal makes it possible to renew materials', [], ['context' => 'Dashboard (Aria)']), 'intermediate-text' => $this->t('Intermediates', [], ['context' => 'Dashboard']), 'list-details-nothing-selected-label-text' => $this->t('Pick', [], ['context' => 'Dashboard']), - 'loans-not-overdue-text' => $this->t('Longer return time', [], ['context' => 'Dashboard']), 'no-physical-loans-text' => $this->t('At the moment, you have 0 physical loans', [], ['context' => 'Dashboard']), 'no-reservations-text' => $this->t('At the moment, you have 0 reservations', [], ['context' => 'Dashboard']), 'physical-loans-text' => $this->t('Loans', [], ['context' => 'Dashboard']), 'queued-reservations-text' => $this->t('Queued reservations', [], ['context' => 'Dashboard']), - 'reservations-still-in-queue-for-text' => $this->t('Still in queue', [], ['context' => 'Dashboard']), 'reservations-text' => $this->t('Reservations', [], ['context' => 'Dashboard']), 'total-amount-fee-text' => $this->t('@total,-', [], ['context' => 'Dashboard']), 'total-owed-text' => $this->t('You owe in total', [], ['context' => 'Dashboard']), diff --git a/web/modules/custom/dpl_fees/src/Plugin/Block/FeesListBlock.php b/web/modules/custom/dpl_fees/src/Plugin/Block/FeesListBlock.php index a5c092d84..9c6360c32 100644 --- a/web/modules/custom/dpl_fees/src/Plugin/Block/FeesListBlock.php +++ b/web/modules/custom/dpl_fees/src/Plugin/Block/FeesListBlock.php @@ -93,6 +93,7 @@ public function build() { 'fee-payment-modal-notice-text' => $this->t("Paid fees can take up to 24 hours to registrer.", [], ['context' => 'Fees list']), 'i-accept-text' => $this->t("I accept the", [], ['context' => 'Fees list']), 'item-fee-amount-text' => $this->t("Fee @fee,-", [], ['context' => 'Fees list']), + 'material-number-text' => $this->t("# @materialNumber", [], ['context' => 'Fees list']), 'other-materials-text' => $this->t("Other materials", [], ['context' => 'Fees list']), 'pay-text' => $this->t("Pay", [], ['context' => 'Fees list']), 'plus-x-other-materials-text' => $this->t("+ @amount other materials", [], ['context' => 'Fees list']), diff --git a/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php b/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php index 509b6333f..6c6a67df5 100644 --- a/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php +++ b/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php @@ -95,15 +95,7 @@ public function build() { 'material-overdue-url' => Url::fromRoute('dpl_loans.list', [], ['absolute' => TRUE])->toString(), // Texts. - 'group-modal-go-to-material-aria-label-text' => $this->t("Go to @label material details", [], ['context' => 'Loan list (Aria)']), 'group-modal-header-text' => $this->t("Renew several", [], ['context' => 'Loan list']), - 'loan-list-additional-materials' => [ - 'type' => 'plural', - 'text' => [ - $this->t('+ 1 other material', [], ['context' => 'Loan list']), - $this->t('+ @count other materials', [], ['context' => 'Loan list']), - ], - ], 'loan-list-aria-label-list-button-text' => $this->t("This button shows all loans in the list", [], ['context' => 'Loan list (Aria)']), 'loan-list-aria-label-stack-button-text' => $this->t("This button filters the list, so only one the materials that have the same due date is shown", [], ['context' => 'Loan list (Aria)']), 'loan-list-digital-loans-empty-list-text' => $this->t("You have no digital loans at the moment", [], ['context' => 'Loan list']), diff --git a/web/modules/custom/dpl_patron_page/src/Plugin/Block/PatronPageBlock.php b/web/modules/custom/dpl_patron_page/src/Plugin/Block/PatronPageBlock.php index 5179a23ca..f176e4550 100644 --- a/web/modules/custom/dpl_patron_page/src/Plugin/Block/PatronPageBlock.php +++ b/web/modules/custom/dpl_patron_page/src/Plugin/Block/PatronPageBlock.php @@ -95,7 +95,6 @@ public function build() { 'pause-reservation-info-url' => dpl_react_apps_format_app_url($patron_page_settings->get('pause_reservation_info_url'), GeneralSettings::PAUSE_RESERVATION_INFO_URL), // Texts. - 'pause-reservation-modal-cancel-button-label-text' => $this->t('Cancel pause', [], ['context' => 'Patron page']), 'patron-page-basic-details-address-label-text' => $this->t('Address', [], ['context' => 'Patron page']), 'patron-page-basic-details-header-text' => $this->t('BASIC DETAILS', [], ['context' => 'Patron page']), 'patron-page-basic-details-name-label-text' => $this->t('Name', [], ['context' => 'Patron page']), diff --git a/web/modules/custom/dpl_react_apps/dpl_react_apps.module b/web/modules/custom/dpl_react_apps/dpl_react_apps.module index 63219b368..bf72b4dea 100644 --- a/web/modules/custom/dpl_react_apps/dpl_react_apps.module +++ b/web/modules/custom/dpl_react_apps/dpl_react_apps.module @@ -88,6 +88,10 @@ function dpl_react_apps_texts(): array { 'change-interest-period' => t('Change interest period', [], ['context' => 'Global']), 'change-pickup-location' => t('Change pickup location', [], ['context' => 'Global']), 'choose-one' => t('Choose one', [], ['context' => 'Global']), + 'close-modal-aria-label-email' => t('Close change email modal', [], ['context' => 'Global']), + 'close-modal-aria-label-interest-period' => t('Close interest period modal', [], ['context' => 'Global']), + 'close-modal-aria-label-pickup' => t('Close pickup location modal', [], ['context' => 'Global']), + 'close-modal-aria-label-sms' => t('Close modal aria-label sms', [], ['context' => 'Global']), 'dashboard-number-in-line' => t('Number @count in line', [], ['context' => 'Global']), 'date-inputs-end-date-label' => t('To', [], ['context' => 'Global']), 'date-inputs-start-date-label' => t('From', [], ['context' => 'Global']), @@ -117,6 +121,8 @@ function dpl_react_apps_texts(): array { 'delete-reservation-modal-not-regrettable' => t('You cannot regret this action', [], ['context' => 'Global']), 'digital-reservations-header' => t('Digital reservations', [], ['context' => 'Global']), 'et-al' => t('et al.', [], ['context' => 'Global']), + 'find-on-shelf-expand-button-explanation' => t('Find on shelf expand button explanation', [], ['context' => 'Global']), + 'find-on-shelf-table-description' => t('Find @work on shelf in the @branch branch', [], ['context' => 'Global']), 'group-modal-button' => t('Renewable (@count)', [], ['context' => 'Global']), 'group-modal-checkbox' => t('Choose all', [], ['context' => 'Global']), 'group-modal-due-date-aria-description' => t('This modal groups loans after due date and makes it possible to renew said loans', [], ['context' => 'Global']), @@ -133,6 +139,7 @@ function dpl_react_apps_texts(): array { 'group-modal-renew-loan-denied-max-renewals-reached' => t("The item cannot be renewed further", [], ['context' => 'Global']), 'group-modal-renew-loan-denied-reserved' => t("The item is reserved by another patron", [], ['context' => 'Global']), 'group-modal-return-library' => t("Can be returned to all branches of the municipalities libraries", [], ['context' => 'Global']), + 'group-modal-go-to-material-aria-label' => t("Go to @label material details", [], ['context' => 'Global']), 'group-modal-reservations-close-modal-aria-label' => t('Close modal with grouped reservations', [], ['context' => 'Global']), 'group-modal-reservations-loans-aria-description' => t('This modal makes it possible to delete reservations', [], ['context' => 'Global']), 'header-dropdown-item-advanced-search' => t('Advanced search', [], ['context' => 'Global']), @@ -140,6 +147,14 @@ function dpl_react_apps_texts(): array { 'in' => t('in', [], ['context' => 'Global']), 'input-placeholder' => t('Start typing in order to search', [], ['context' => 'Global']), 'loading' => t('loading', [], ['context' => 'Global']), + 'loan-list-additional-materials' => json_encode([ + 'type' => 'plural', + 'text' => [ + t('+ 1 other material', [], ['context' => 'Loan list']), + t('+ @count other materials', [], ['context' => 'Loan list']), + ], + ]), + 'loans-not-overdue' => t('Longer return time', [], ['context' => 'Global']), 'loans-overdue' => t('Returned too late', [], ['context' => 'Global']), 'loans-soon-overdue' => t('To be returned soon', [], ['context' => 'Global']), 'material-and-author' => t('and', [], ['context' => 'Global']), @@ -157,9 +172,11 @@ function dpl_react_apps_texts(): array { 'material-details-warning-loan-overdue' => t('The due date of return is exceeded, therefore you will be charged a fee, when the item is returned', [], ['context' => 'Global']), 'modal-reservation-form-no-interest-after-header-description' => t('Set date for when your interest for the material will expire.', [], ['context' => 'Global']), 'modal-reservation-form-no-interest-after-header-title' => t('Change interest deadline', [], ['context' => 'Global']), + 'modal-reservation-form-no-interest-after-label' => t("Change the amount of time after which you're no longer interested in this material.", [], ['context' => 'Global']), 'modal-reservation-form-pickup-header-title' => t('Choose pickup library', [], ['context' => 'Global']), 'modal-reservation-form-pickup-header-description' => t('Decide at which library you want to pickup the material.', [], ['context' => 'Global']), - 'multiselect-all-option' => t('All', [], ['context' => 'Global']), + 'modal-reservation-form-pickup-label' => t("Change pickup location for your reservation.", [], ['context' => 'Global']), + 'multiselect-all-option' => t("Multiselect - all option", [], ['context' => 'Global']), 'no-search-result' => t('Your search has 0 results', [], ['context' => 'Global']), 'number-description' => t('nr.', [], ['context' => 'Global']), 'one-month' => t('1 month', [], ['context' => 'Global']), @@ -177,6 +194,7 @@ function dpl_react_apps_texts(): array { 'pause-reservation-modal-aria-description' => t('This modal makes it possible to pause your physical reservations', [], ['context' => 'Global']), 'pause-reservation-modal-below-inputs' => t('Pause reservation below inputs text', [], ['context' => 'Global']), 'pause-reservation-modal-body' => t('Pause your reservations early, since reservations that are already being processed, will not be paused.', [], ['context' => 'Global']), + 'pause-reservation-modal-cancel-button-label' => t('Cancel pause', [], ['context' => 'Global']), 'pause-reservation-modal-close-modal' => t('Close pause reservations modal', [], ['context' => 'Global']), 'pause-reservation-modal-header' => t('Pause reservations on physical items', [], ['context' => 'Global']), 'pause-reservation-modal-link' => t('Read more', [], ['context' => 'Global']), @@ -214,9 +232,13 @@ function dpl_react_apps_texts(): array { 'renew-processing' => t('Processing...', [], ['context' => 'Renew loan']), 'reservation-details-borrow-before' => t('Borrow before @date', [], ['context' => 'Global']), 'reservation-details-button-remove' => t('Remove your reservation', [], ['context' => 'Global']), + 'reservation-details-cancel' => t('Cancel', [], ['context' => 'Global']), 'reservation-details-change' => t('Apply changes', [], ['context' => 'Global']), 'reservation-details-date-of-reservation-title' => t('Date of reservation', [], ['context' => 'Global']), + 'reservation-details-digital-material-expires-title' => t('Borrow before', [], ['context' => 'Global']), 'reservation-details-digital-reservation-go-to-ereolen' => t('Go to eReolen', [], ['context' => 'Global']), + 'reservation-details-expires' => t('Your reservation expires @date!', [], ['context' => 'Global']), + 'reservation-details-expires-title' => t('Pickup deadline', [], ['context' => 'Global']), 'reservation-details-no-interest-after-title' => t('Not interested after', [], ['context' => 'Global']), 'reservation-details-number-in-queue-label' => t('@count queued', [], ['context' => 'Global']), 'reservation-details-others-in-queue' => t('Others are queueing for this material', [], ['context' => 'Global']), @@ -224,11 +246,58 @@ function dpl_react_apps_texts(): array { 'reservation-details-pickup-deadline-title' => t('Pickup deadline', [], ['context' => 'Global']), 'reservation-details-ready-for-loan' => t('Ready for pickup', [], ['context' => 'Global']), 'reservation-details-remove-digital-reservation' => t('Remove your reservation', [], ['context' => 'Global']), + 'reservation-details-save' => t('Save', [], ['context' => 'Global']), 'reservation-details-status-title' => t('Status', [], ['context' => 'Global']), + 'reservation-list-all-empty' => t('At the moment you have 0 reservations', [], ['context' => 'Global']), + 'reservation-list-day' => t('day', [], ['context' => 'Global']), + 'reservation-list-digital-pickup' => t('Online access', [], ['context' => 'Global']), + 'reservation-list-digital-reservations-empty' => t('At the moment you have 0 reservations on digital items', [], ['context' => 'Global']), + 'reservation-list-digital-reservations-header' => t('Digital reservations', [], ['context' => 'Global']), + 'reservation-list-first-in-queue' => t('You are at the front of the queue', [], ['context' => 'Global']), + 'reservation-list-header' => t('Your reservations', [], ['context' => 'Global']), + 'reservation-list-loan-before' => t('Borrow before @date', [], ['context' => 'Global']), + 'reservation-list-on-hold-aria' => t('Reservations have been paused in the following time span:', [], ['context' => 'Global']), + 'reservation-list-pause-reservation-aria-modal' => t('This button opens a modal that covers the entire page and contains the possibility to pause physical reservations', [], ['context' => 'Global']), + 'reservation-list-pause-reservation-button' => t('Settings', [], ['context' => 'Global']), + 'reservation-list-pause-reservation-on-hold' => t('Your reservations are paused', [], ['context' => 'Global']), + 'reservation-list-pause-reservation' => t('Pause reservations on physical items', [], ['context' => 'Global']), + 'reservation-list-physical-reservations-empty' => t('At the moment you have 0 physical reservations', [], ['context' => 'Global']), + 'reservation-list-physical-reservations-header' => t('Physical reservations', [], ['context' => 'Global']), + 'reservation-list-ready-for-pickup-empty' => t('At the moment you have 0 reservations ready for pickup', [], ['context' => 'Global']), + 'reservation-list-ready-for-pickup-title' => t('Ready for pickup', [], ['context' => 'Global']), + 'reservation-list-ready' => t('Ready', [], ['context' => 'Global']), + 'reservation-list-status-icon-ready-for-pickup-aria-label' => t('This material is ready for pickup', [], ['context' => 'Global']), + 'reservation-list-status-icon-queued-aria-label' => json_encode([ + 'type' => 'plural', + 'text' => [ + t('You are the only person queued for this material', [], ['context' => 'Global']), + t('This material has @count people in queue before you', [], ['context' => 'Global']), + ], + ]), + 'reservation-list-status-icon-ready-in-aria-label' => json_encode([ + 'type' => 'plural', + 'text' => [ + t('This material is ready in 1 day', [], ['context' => 'Global']), + t('This material is ready in @count days', [], ['context' => 'Global']), + ], + ]), + 'reservation-status-button' => t('Close', [], ['context' => 'Global']), + 'reservation-list-available-in' => t('Available in @count days', [], ['context' => 'Global']), + 'reservation-list-days' => t('days', [], ['context' => 'Global']), + 'reservation-list-in-queue' => t('queued', [], ['context' => 'Global']), + 'reservation-list-number-in-queue' => t('There are @count people in the queue before you', [], ['context' => 'Global']), + 'reservation-pick-up-latest' => t('Pick up before @date', [], ['context' => 'Global']), + 'reservations-still-in-queue-for' => t('Still in queue', [], ['context' => 'Global']), 'reservations-ready' => t('Ready for you', [], ['context' => 'Global']), 'result-pager-status' => t('Showing @itemsShown out of @hitcount items', [], ['context' => 'Global']), + 'reservation-success-sub-title' => t('Click the button below to close this window', [], ['context' => 'Global']), + 'reservation-success-title' => t('Your reservation has been changed', [], ['context' => 'Global']), 'search-header-dropdown' => t('Dropdown with additional search functions', [], ['context' => 'Global']), 'save-button' => t('Save', [], ['context' => 'Global']), + 'screen-reader-modal-description-email' => t('Screen reader modal description for email', [], ['context' => 'Global']), + 'screen-reader-modal-description-interest-period' => t('Screen reader modal description for interest period', [], ['context' => 'Global']), + 'screen-reader-modal-description-pickup' => t('Screen reader modal description for pickup', [], ['context' => 'Global']), + 'screen-reader-modal-description-sms' => t('Screen reader modal description for sms', [], ['context' => 'Global']), 'search-header-icon-alt' => t('Search button', [], ['context' => 'Global']), 'search-header-input-label' => t('Search header input', [], ['context' => 'Global']), 'search-no-valid-characters-error' => t('Input must contain at least one non-whitespace character.', [], ['context' => 'Global']), diff --git a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php index 64b8482bc..a57eece18 100644 --- a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php +++ b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php @@ -117,15 +117,20 @@ public function search(): array { 'facet-access-types-text' => $this->t('Access types', [], ['context' => 'Search Result']), 'facet-browser-modal-close-modal-aria-label-text' => $this->t('Close facet browser modal', [], ['context' => 'Search Result']), 'facet-browser-modal-screen-reader-modal-description-text' => $this->t('Modal for facet browser', [], ['context' => 'Search Result']), + 'facet-can-always-be-loaned-text' => $this->t('Can always be loaned', [], ['context' => 'Search Result']), 'facet-children-or-adults-text' => $this->t('Children or adults', [], ['context' => 'Search Result']), 'facet-creators-text' => $this->t('Creators', [], ['context' => 'Search Result']), + 'facet-dk5-text' => $this->t('Dk5', [], ['context' => 'Search Result']), 'facet-fiction-nonfiction-text' => $this->t('Fiction or non-fiction', [], ['context' => 'Search Result']), 'facet-fictional-characters-text' => $this->t('Fictional characters', [], ['context' => 'Search Result']), 'facet-genre-and-form-text' => $this->t('Genre and form', [], ['context' => 'Search Result']), 'facet-main-languages-text' => $this->t('Main languages', [], ['context' => 'Search Result']), 'facet-material-types-text' => $this->t('Material types', [], ['context' => 'Search Result']), + 'facet-material-types-general-text' => $this->t('Material types general', [], ['context' => 'Search Result']), + 'facet-material-types-specific-text' => $this->t('Material types specific', [], ['context' => 'Search Result']), 'facet-subjects-text' => $this->t('Subjects', [], ['context' => 'Search Result']), 'facet-work-types-text' => $this->t('Work types', [], ['context' => 'Search Result']), + 'facet-year-text' => $this->t('Year', [], ['context' => 'Search Result']), 'filter-list-text' => $this->t('Filter list', [], ['context' => 'Search Result']), 'results-text' => $this->t('results', [], ['context' => 'Search Result']), 'show-results-text' => $this->t('Show results', [], ['context' => 'Search Result']), @@ -258,8 +263,6 @@ public function work(string $wid): array { 'cant-view-text' => $this->t("Can't be viewed", [], ['context' => 'Work Page']), 'change-email-text' => $this->t('Change email', [], ['context' => 'Work Page']), 'change-sms-number-text' => $this->t('Change SMS number', [], ['context' => 'Work Page']), - 'close-modal-aria-label-interest-period-text' => $this->t('Close interest period modal', [], ['context' => 'Work Page']), - 'close-modal-aria-label-pickup-text' => $this->t('Close pickup location modal', [], ['context' => 'Work Page']), 'close-text' => $this->t('Close', [], ['context' => 'Work Page']), 'contributors-text' => $this->t('Contributors', [], ['context' => 'Work Page']), 'copies-there-is-text' => $this->t('copies there is', [], ['context' => 'Work Page']), @@ -284,10 +287,10 @@ public function work(string $wid): array { 'details-text' => $this->t('Details', [], ['context' => 'Work Page']), 'edition-text' => $this->t('Edition', [], ['context' => 'Work Page']), 'editions-text' => $this->t('Editions', [], ['context' => 'Work Page']), + 'expand-more-text' => $this->t('Expand more', [], ['context' => 'Work Page']), 'fiction-nonfiction-text' => $this->t('Fiction/nonfiction', [], ['context' => 'Work Page']), 'film-adaptations-text' => $this->t('Film adaptations', [], ['context' => 'Work Page']), 'find-on-bookshelf-text' => $this->t('Find on bookshelf', [], ['context' => 'Work Page']), - 'find-on-shelf-expand-button-explanation-text' => $this->t('Find on shelf expand button explanation', [], ['context' => 'Work Page']), 'find-on-shelf-modal-close-modal-aria-label-text' => $this->t('Close reservation modal', [], ['context' => 'Work Page']), 'find-on-shelf-modal-list-find-on-shelf-text' => $this->t('Find it on shelf', [], ['context' => 'Work Page']), 'find-on-shelf-modal-list-item-count-text' => $this->t('Home', [], ['context' => 'Work Page']), @@ -400,8 +403,6 @@ public function work(string $wid): array { 'reserve-text' => $this->t('Reserve', [], ['context' => 'Work Page']), 'reviews-text' => $this->t('Reviews', [], ['context' => 'Work Page']), 'scope-text' => $this->t('Scope', [], ['context' => 'Work Page']), - 'screen-reader-modal-description-interest-period-text' => $this->t('Change interest period modal', [], ['context' => 'Work Page']), - 'screen-reader-modal-description-pickup-text' => $this->t('Change pickup location modal', [], ['context' => 'Work Page']), 'see-online-text' => $this->t('See online', [], ['context' => 'Work Page']), 'this-month-text' => $this->t('This month', [], ['context' => 'Work Page']), 'try-agin-button-text' => $this->t('Try again', [], ['context' => 'Work Page']), diff --git a/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php b/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php index 59c640d78..834bf0352 100644 --- a/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php +++ b/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php @@ -102,56 +102,6 @@ public function build(): array { 'page-size-desktop' => $config->get('page_size_desktop') ?? DplReservationsSettings::PAGE_SIZE_DESKTOP, 'page-size-mobile' => $config->get('page_size_mobile') ?? DplReservationsSettings::PAGE_SIZE_MOBILE, 'expiration-warning-days-before-config' => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettings::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, - - // Texts. - 'modal-reservation-form-no-interest-after-label-text' => $this->t("Change the amount of time after which you're no longer interested in this material.", [], ['context' => 'Reservation list']), - 'modal-reservation-form-pickup-label-text' => $this->t("Change pickup location for your reservation.", [], ['context' => 'Reservation list']), - 'reservation-details-cancel-text' => $this->t('Cancel', [], ['context' => 'Reservation list']), - 'reservation-details-digital-material-expires-title-text' => $this->t('Borrow before', [], ['context' => 'Reservation list']), - 'reservation-details-expires-text' => $this->t('Your reservation expires @date!', [], ['context' => 'Reservation list']), - 'reservation-details-expires-title-text' => $this->t('Pickup deadline', [], ['context' => 'Reservation list']), - 'reservation-details-save-text' => $this->t('Save', [], ['context' => 'Reservation list']), - 'reservation-list-all-empty-text' => $this->t('At the moment you have 0 reservations', [], ['context' => 'Reservation list']), - 'reservation-list-available-in-text' => $this->t('Available in @count days', [], ['context' => 'Reservation list']), - 'reservation-list-day-text' => $this->t('day', [], ['context' => 'Reservation list']), - 'reservation-list-days-text' => $this->t('days', [], ['context' => 'Reservation list']), - 'reservation-list-digital-pickup-text' => $this->t('Online access', [], ['context' => 'Reservation list']), - 'reservation-list-digital-reservations-empty-text' => $this->t('At the moment you have 0 reservations on digital items', [], ['context' => 'Reservation list']), - 'reservation-list-digital-reservations-header-text' => $this->t('Digital reservations', [], ['context' => 'Reservation list']), - 'reservation-list-first-in-queue-text' => $this->t('You are at the front of the queue', [], ['context' => 'Reservation list']), - 'reservation-list-header-text' => $this->t('Your reservations', [], ['context' => 'Reservation list']), - 'reservation-list-in-queue-text' => $this->t('queued', [], ['context' => 'Reservation list']), - 'reservation-list-loan-before-text' => $this->t('Borrow before @date', [], ['context' => 'Reservation list']), - 'reservation-list-number-in-queue-text' => $this->t('There are @count people in the queue before you', [], ['context' => 'Reservation list']), - 'reservation-list-on-hold-aria-text' => $this->t('Reservations have been paused in the following time span:', [], ['context' => 'Reservation list (Aria)']), - 'reservation-list-pause-reservation-aria-modal-text' => $this->t('This button opens a modal that covers the entire page and contains the possibility to pause physical reservations', [], ['context' => 'Reservation list (Aria)']), - 'reservation-list-pause-reservation-text' => $this->t('Pause reservations on physical items', [], ['context' => 'Reservation list']), - 'reservation-list-pause-reservation-on-hold-text' => $this->t('Your reservations are paused', [], ['context' => 'Reservation list']), - 'reservation-list-physical-reservations-empty-text' => $this->t('At the moment you have 0 physical reservations', [], ['context' => 'Reservation list']), - 'reservation-list-physical-reservations-header-text' => $this->t('Physical reservations', [], ['context' => 'Reservation list']), - 'reservation-list-ready-for-pickup-empty-text' => $this->t('At the moment you have 0 reservations ready for pickup', [], ['context' => 'Reservation list']), - 'reservation-list-ready-for-pickup-title-text' => $this->t('Ready for pickup', [], ['context' => 'Reservation list']), - 'reservation-list-ready-text' => $this->t('Ready', [], ['context' => 'Reservation list']), - 'reservation-list-status-icon-ready-for-pickup-aria-label-text' => $this->t('This material is ready for pickup', [], ['context' => 'Reservation list (Aria)']), - 'reservation-list-pause-reservation-button-text' => $this->t('Settings', [], ['context' => 'Reservation list']), - 'reservation-list-status-icon-queued-aria-label-text' => [ - 'type' => 'plural', - 'text' => [ - $this->t('You are the only person queued for this material', [], ['context' => 'Reservation list (Aria)']), - $this->t('This material has @count people in queue before you', [], ['context' => 'Reservation list (Aria)']), - ], - ], - 'reservation-list-status-icon-ready-in-aria-label-text' => [ - 'type' => 'plural', - 'text' => [ - $this->t('This material is ready in 1 day', [], ['context' => 'Reservation list (Aria)']), - $this->t('This material is ready in @count days', [], ['context' => 'Reservation list (Aria)']), - ], - ], - 'reservation-pick-up-latest-text' => $this->t('Pick up before @date', [], ['context' => 'Reservation list']), - 'reservation-status-button-text' => $this->t('Close', [], ['context' => 'Reservation list']), - 'reservation-success-sub-title-text' => $this->t('Click the button below to close this window', [], ['context' => 'Reservation list']), - 'reservation-success-title-text' => $this->t('Your reservation has been changed', [], ['context' => 'Reservation list']), ] + DplReactAppsController::externalApiBaseUrls() + DplReactAppsController::getBlockedSettings(); return [ diff --git a/web/profiles/dpl_cms/translations/da.po b/web/profiles/dpl_cms/translations/da.po index 8f82a6269..99d27e718 100644 --- a/web/profiles/dpl_cms/translations/da.po +++ b/web/profiles/dpl_cms/translations/da.po @@ -3,8 +3,8 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" -"POT-Creation-Date: 2024-01-08 10:51+0100\n" -"PO-Revision-Date: 2024-01-08 10:51+0100\n" +"POT-Creation-Date: 2024-01-08 11:44+0100\n" +"PO-Revision-Date: 2024-01-08 11:44+0100\n" "Last-Translator: NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" "MIME-Version: 1.0\n" @@ -343,6 +343,10 @@ msgctxt "Search Result" msgid "Modal for facet browser" msgstr "Pop-up med facetbrowser" +msgctxt "Search Result" +msgid "Can always be loaned" +msgstr "" + msgctxt "Search Result" msgid "Children or adults" msgstr "Børn eller voksen" @@ -351,6 +355,10 @@ msgctxt "Search Result" msgid "Creators" msgstr "Ophav" +msgctxt "Search Result" +msgid "Dk5" +msgstr "" + msgctxt "Search Result" msgid "Fiction or non-fiction" msgstr "Fiktion eller non-fiktion" @@ -371,6 +379,14 @@ msgctxt "Search Result" msgid "Material types" msgstr "Materialetyper" +msgctxt "Search Result" +msgid "Material types general" +msgstr "" + +msgctxt "Search Result" +msgid "Material types specific" +msgstr "" + msgctxt "Search Result" msgid "Subjects" msgstr "Emner" @@ -379,6 +395,10 @@ msgctxt "Search Result" msgid "Work types" msgstr "Formater" +msgctxt "Search Result" +msgid "Year" +msgstr "" + msgctxt "Search Result" msgid "Filter list" msgstr "Flere filtre" @@ -631,14 +651,6 @@ msgctxt "Work Page" msgid "Change SMS number" msgstr "Skift mobilnummer" -msgctxt "Work Page" -msgid "Close interest period modal" -msgstr "Luk pop-up til valg af interesseperiode" - -msgctxt "Work Page" -msgid "Close pickup location modal" -msgstr "Luk pop-up til valg af afhentningssted" - msgctxt "Work Page" msgid "Close" msgstr "Luk" @@ -723,6 +735,10 @@ msgctxt "Work Page" msgid "Editions" msgstr "Udgaver" +msgctxt "Work Page" +msgid "Expand more" +msgstr "" + msgctxt "Work Page" msgid "Fiction/nonfiction" msgstr "Fiktion/non-fiktion" @@ -735,10 +751,6 @@ msgctxt "Work Page" msgid "Find on bookshelf" msgstr "Find på hylden" -msgctxt "Work Page" -msgid "Find on shelf expand button explanation" -msgstr "Forklarende tekst til \"Find på hylden\" knap" - msgctxt "Work Page" msgid "Close reservation modal" msgstr "Luk pop-up" @@ -1093,14 +1105,6 @@ msgctxt "Work Page" msgid "Reviews" msgstr "Anmeldelser" -msgctxt "Work Page" -msgid "Change interest period modal" -msgstr "Pop-up til at skifte interessperiode" - -msgctxt "Work Page" -msgid "Change pickup location modal" -msgstr "Pop-up til at skifte afhendningssted" - msgctxt "Work Page" msgid "See online" msgstr "Se online" @@ -1307,6 +1311,22 @@ msgctxt "Global" msgid "Choose one" msgstr "Vælg" +msgctxt "Global" +msgid "Close change email modal" +msgstr "" + +msgctxt "Global" +msgid "Close interest period modal" +msgstr "" + +msgctxt "Global" +msgid "Close pickup location modal" +msgstr "" + +msgctxt "Global" +msgid "Close modal aria-label sms" +msgstr "" + msgctxt "Global" msgid "Number @count in line" msgstr "Nummer @count i køen" @@ -1384,6 +1404,14 @@ msgctxt "Global" msgid "et al." msgstr "et al." +msgctxt "Global" +msgid "Find on shelf expand button explanation" +msgstr "" + +msgctxt "Global" +msgid "Find @work on shelf in the @branch branch" +msgstr "" + msgctxt "Global" msgid "Renewable (@count)" msgstr "Forny (@count)" @@ -1456,6 +1484,10 @@ msgctxt "Global" msgid "Can be returned to all branches of the municipalities libraries" msgstr "Kan afleveres på alle kommunens biblioteker" +msgctxt "Global" +msgid "Go to @label material details" +msgstr "" + msgctxt "Global" msgid "Close modal with grouped reservations" msgstr "Luk pop-up med grupperede reserveringer" @@ -1484,6 +1516,18 @@ msgctxt "Global" msgid "loading" msgstr "henter" +msgctxt "Loan list" +msgid "+ 1 other material" +msgstr "+ 1 andet materiale" + +msgctxt "Loan list" +msgid "+ @count other materials" +msgstr "+ @count flere materialer" + +msgctxt "Global" +msgid "Longer return time" +msgstr "" + msgctxt "Global" msgid "Returned too late" msgstr "Afleveret for sent" @@ -1548,6 +1592,12 @@ msgctxt "Global" msgid "Change interest deadline" msgstr "Skift udløbsdato for interesseperiode" +msgctxt "Global" +msgid "" +"Change the amount of time after which you're no longer interested in " +"this material." +msgstr "" + msgctxt "Global" msgid "Choose pickup library" msgstr "Vælg afhentningsbibliotek" @@ -1557,8 +1607,12 @@ msgid "Decide at which library you want to pickup the material." msgstr "Vælg hvor du vil afhente dine reserveringer" msgctxt "Global" -msgid "All" -msgstr "Alle" +msgid "Change pickup location for your reservation." +msgstr "" + +msgctxt "Global" +msgid "Multiselect - all option" +msgstr "" msgctxt "Global" msgid "Your search has 0 results" @@ -1639,6 +1693,10 @@ msgstr "" "Sæt dine reserveringer på pause i god tid, da reserveringer som " "allerede er i proces ikke kan sættes på hold " +msgctxt "Global" +msgid "Cancel pause" +msgstr "" + msgctxt "Global" msgid "Close pause reservations modal" msgstr "Luk pop-up til at sætte reserveringer på pause" @@ -1797,6 +1855,18 @@ msgctxt "Global" msgid "Date of reservation" msgstr "Reserveringsdato" +msgctxt "Global" +msgid "Borrow before" +msgstr "" + +msgctxt "Global" +msgid "Your reservation expires @date!" +msgstr "" + +msgctxt "Global" +msgid "Pickup deadline" +msgstr "Afhentningsfrist" + msgctxt "Global" msgid "Not interested after" msgstr "Ikke interesseret efter" @@ -1813,14 +1883,104 @@ msgctxt "Global" msgid "Pickup branch" msgstr "Afhentningssted" -msgctxt "Global" -msgid "Pickup deadline" -msgstr "Afhentningsfrist" - msgctxt "Global" msgid "Status" msgstr "Status" +msgctxt "Global" +msgid "At the moment you have 0 reservations" +msgstr "" + +msgctxt "Global" +msgid "day" +msgstr "" + +msgctxt "Global" +msgid "Online access" +msgstr "" + +msgctxt "Global" +msgid "At the moment you have 0 reservations on digital items" +msgstr "" + +msgctxt "Global" +msgid "You are at the front of the queue" +msgstr "" + +msgctxt "Global" +msgid "Your reservations" +msgstr "" + +msgctxt "Global" +msgid "Reservations have been paused in the following time span:" +msgstr "" + +msgctxt "Global" +msgid "" +"This button opens a modal that covers the entire page and contains the " +"possibility to pause physical reservations" +msgstr "" + +msgctxt "Global" +msgid "Settings" +msgstr "" + +msgctxt "Global" +msgid "Your reservations are paused" +msgstr "" + +msgctxt "Global" +msgid "At the moment you have 0 physical reservations" +msgstr "" + +msgctxt "Global" +msgid "At the moment you have 0 reservations ready for pickup" +msgstr "" + +msgctxt "Global" +msgid "This material is ready for pickup" +msgstr "" + +msgctxt "Global" +msgid "You are the only person queued for this material" +msgstr "" + +msgctxt "Global" +msgid "This material has @count people in queue before you" +msgstr "" + +msgctxt "Global" +msgid "This material is ready in 1 day" +msgstr "" + +msgctxt "Global" +msgid "This material is ready in @count days" +msgstr "" + +msgctxt "Global" +msgid "Close" +msgstr "" + +msgctxt "Global" +msgid "Available in @count days" +msgstr "" + +msgctxt "Global" +msgid "days" +msgstr "" + +msgctxt "Global" +msgid "queued" +msgstr "" + +msgctxt "Global" +msgid "There are @count people in the queue before you" +msgstr "" + +msgctxt "Global" +msgid "Still in queue" +msgstr "" + msgctxt "Global" msgid "Ready for you" msgstr "Klar til dig" @@ -1829,10 +1989,34 @@ msgctxt "Global" msgid "Showing @itemsShown out of @hitcount items" msgstr "Viser @itemsShown ud af @hitcount elementer" +msgctxt "Global" +msgid "Click the button below to close this window" +msgstr "" + +msgctxt "Global" +msgid "Your reservation has been changed" +msgstr "" + msgctxt "Global" msgid "Dropdown with additional search functions" msgstr "Dropdown med yderligere søgefunktioner" +msgctxt "Global" +msgid "Screen reader modal description for email" +msgstr "" + +msgctxt "Global" +msgid "Screen reader modal description for interest period" +msgstr "" + +msgctxt "Global" +msgid "Screen reader modal description for pickup" +msgstr "" + +msgctxt "Global" +msgid "Screen reader modal description for sms" +msgstr "" + msgctxt "Global" msgid "Search button" msgstr "Søgeknap" @@ -1943,22 +2127,10 @@ msgctxt "Loan list (settings)" msgid "Page size desktop" msgstr "Antal listeelemeter på side (desktop)" -msgctxt "Loan list (Aria)" -msgid "Go to @label material details" -msgstr "Gå til detaljevisning af @label" - msgctxt "Loan list" msgid "Renew several" msgstr "Forny flere" -msgctxt "Loan list" -msgid "+ 1 other material" -msgstr "+ 1 andet materiale" - -msgctxt "Loan list" -msgid "+ @count other materials" -msgstr "+ @count flere materialer" - msgctxt "Loan list (Aria)" msgid "This button shows all loans in the list" msgstr "Oplist lån efter afleveringsfrist" @@ -2234,10 +2406,6 @@ msgctxt "Dashboard" msgid "Pick" msgstr "Vælg" -msgctxt "Dashboard" -msgid "Longer return time" -msgstr "Over 6 dage til aflevering" - msgctxt "Dashboard" msgid "At the moment, you have 0 physical loans" msgstr "Du har ingen fysiske lån i øjeblikket" @@ -2254,10 +2422,6 @@ msgctxt "Dashboard" msgid "Queued reservations" msgstr "Reserveringer i kø" -msgctxt "Dashboard" -msgid "Still in queue" -msgstr "Stadig i kø" - msgctxt "Dashboard" msgid "Reservations" msgstr "Reserveringer" @@ -2360,158 +2524,6 @@ msgctxt "Reservation list (settings)" msgid "Page size desktop" msgstr "Antal listeelemeter på side (desktop)" -msgctxt "Reservation list" -msgid "" -"Change the amount of time after which you're no longer interested in " -"this material." -msgstr "Vælg dato for hvornår din interesseperiode udløber" - -msgctxt "Reservation list" -msgid "Change pickup location for your reservation." -msgstr "Skift afhentningssted" - -msgctxt "Reservation list" -msgid "Cancel" -msgstr "Fortryd" - -msgctxt "Reservation list" -msgid "Borrow before" -msgstr "Lån før" - -msgctxt "Reservation list" -msgid "Your reservation expires @date!" -msgstr "Din reservering udløber @date" - -msgctxt "Reservation list" -msgid "Pickup deadline" -msgstr "Afhent senest" - -msgctxt "Reservation list" -msgid "Save" -msgstr "Gem" - -msgctxt "Reservation list" -msgid "At the moment you have 0 reservations" -msgstr "Du har 0 reserveringer" - -msgctxt "Reservation list" -msgid "Available in @count days" -msgstr "Tilgængelig om @count dage" - -msgctxt "Reservation list" -msgid "day" -msgstr "dag" - -msgctxt "Reservation list" -msgid "days" -msgstr "dage" - -msgctxt "Reservation list" -msgid "Online access" -msgstr "Skal hentes online" - -msgctxt "Reservation list" -msgid "At the moment you have 0 reservations on digital items" -msgstr "Du har ingen reserveringer på digitale materialer" - -msgctxt "Reservation list" -msgid "Digital reservations" -msgstr "Digitale reserveringer" - -msgctxt "Reservation list" -msgid "You are at the front of the queue" -msgstr "Du er forrest i køen" - -msgctxt "Reservation list" -msgid "Your reservations" -msgstr "Dine reserveringer" - -msgctxt "Reservation list" -msgid "queued" -msgstr "i kø" - -msgctxt "Reservation list" -msgid "There are @count people in the queue before you" -msgstr "Der er @count i køen før dig" - -msgctxt "Reservation list (Aria)" -msgid "Reservations have been paused in the following time span:" -msgstr "Reserveringer er sat på pause i det følgende tidsrum:" - -msgctxt "Reservation list (Aria)" -msgid "" -"This button opens a modal that covers the entire page and contains the " -"possibility to pause physical reservations" -msgstr "Sæt reserveringer af fysiske materialer på pause" - -msgctxt "Reservation list" -msgid "Pause reservations on physical items" -msgstr "Sæt reserveringer af fysiske materialer på pause" - -msgctxt "Reservation list" -msgid "Your reservations are paused" -msgstr "Dine reserveringer er sat på pause" - -msgctxt "Reservation list" -msgid "At the moment you have 0 physical reservations" -msgstr "Du har ingen reserveringer på fysiske materialer" - -msgctxt "Reservation list" -msgid "Physical reservations" -msgstr "Reserverede fysiske materialer" - -msgctxt "Reservation list" -msgid "At the moment you have 0 reservations ready for pickup" -msgstr "Du har 0 reserveringer klar til lån" - -msgctxt "Reservation list" -msgid "Ready for pickup" -msgstr "Klar til lån" - -msgctxt "Reservation list" -msgid "Ready" -msgstr "Klar" - -msgctxt "Reservation list (Aria)" -msgid "This material is ready for pickup" -msgstr "Dette materiale er klar til lån" - -msgctxt "Reservation list" -msgid "Settings" -msgstr "Indstillinger" - -msgctxt "Reservation list (Aria)" -msgid "You are the only person queued for this material" -msgstr "Du er den eneste i kø til dette materiale" - -msgctxt "Reservation list (Aria)" -msgid "This material has @count people in queue before you" -msgstr "Der står @count brugere i kø før dig til dette materiale" - -msgctxt "Reservation list (Aria)" -msgid "This material is ready in 1 day" -msgstr "Materiale er klar om 1 dag" - -msgctxt "Reservation list (Aria)" -msgid "This material is ready in @count days" -msgstr "Materialet er klar til dig om @count dage" - -msgctxt "Reservation list" -msgid "Pick up before @date" -msgstr "Hent senest @date" - -msgctxt "Reservation list" -msgid "Close" -msgstr "Luk" - -msgctxt "Reservation list" -msgid "Click the button below to close this window" -msgstr "Klik på knappen for at lukke dette vindue" - -msgctxt "Reservation list" -msgid "Your reservation has been changed" -msgstr "Din reservering blev ændret" - msgid "Fees and Replacement costs URL" msgstr "Link til oplysningsside om takster" @@ -2629,6 +2641,10 @@ msgctxt "Fees list" msgid "Fee @fee,-" msgstr "Gebyr @fee kr." +msgctxt "Fees list" +msgid "# @materialNumber" +msgstr "" + msgctxt "Fees list" msgid "Other materials" msgstr "Andre materialer" @@ -2706,10 +2722,6 @@ msgstr "Pinkode længde (min)" msgid "Pincode length max" msgstr "Pinkode længe (max)" -msgctxt "Patron page" -msgid "Cancel pause" -msgstr "Slet pause" - msgctxt "Patron page" msgid "Address" msgstr "Adresse"