Skip to content

[Port to dtq-dev-93] LINDAT static pages and item page fixes from dtq-dev - #1749

Open
milanmajchrak wants to merge 2 commits into
dtq-dev-93from
93/fe-port-lindat-static-pages
Open

milanmajchrak wants to merge 2 commits into
dtq-dev-93from
93/fe-port-lindat-static-pages

Conversation

@milanmajchrak

@milanmajchrak milanmajchrak commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

References

Ports these dtq-dev PRs:

Requires the paired DSpace PR dataquest-dev/DSpace#1741, which exposes the description.* properties.

Description

Brings four LINDAT UI fixes from dtq-dev to the v9 branch: new licence pages, a refreshed Deposit page, wrapped subject badges with N/A for an empty file description, and filled-in placeholders on the Terms of Service page.

Instructions for Reviewers

List of changes in this PR:

  • Seven licence pages from LINDAT production in src/static-files/.
  • The Deposit page (en + cs), the FAQ link and the step images are refreshed.
  • The upload step text (submission.sections.upload.info, en + cs) adds a sentence that links the recommended formats in the CLARIN Standards Information System (the LINDAT centre page). The link has the global link-contrast class, so it passes the axe link-in-text-block check.
  • Subject badges wrap instead of overflowing (Bootstrap 5 classes text-wrap text-start).
  • An empty file description shows item.file.description.na ("N/A", "Neuvedeno") instead of a blank row.
  • StaticPageComponent replaces ${key} in a static page with the backend property key from /api/config/properties. Values are HTML-escaped. A missing or failing property keeps the placeholder and logs one warning.
  • terms-of-service.html uses ${description.*} instead of ${lr.description.*}.

How to test:

  • Set description.institution, description.location, description.country and description.city in the backend local.cfg, then open /static/terms-of-service.html. The preamble and article 6 show the values, not ${...}.
  • Open /static/license-ud-2.18.html and /static/deposit.html.
  • On an item with a long subject the badge wraps. A file without a description shows "N/A".
  • npm run test -- --include=src/app/static-page/static-page.component.spec.ts --include=src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.spec.ts

The diff is over 1,000 lines only because of the licence pages (license-ud-2.18.html alone has 1,469). The code change is under 100 lines. The unrelated cs.json5 reordering in 1698 is left out.

Codex review (gpt-6.2-sol, high): 3 findings. Not changed: the code is the same as on dtq-dev, and the licence pages are copied from LINDAT production as they are.

Checklist

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using npm run lint
  • My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
  • My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

🤖 Generated with Claude Code

milanmajchrak and others added 2 commits November 24, 2026 20:25
…q-dev

Ports four LINDAT fixes from dtq-dev:
- cec098b: seven licence pages from LINDAT production
- 5e50704: refreshed Deposit page, FAQ and step images
- f590749: long subject badges wrap, empty file description shows N/A
- 83f73a6: Terms of Service fills ${...} placeholders from backend config

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The link sat in a text block without underline, so the Cypress axe check link-in-text-block failed on the submission page. Use the global link-contrast class, like the vanilla End User Agreement page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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