Skip to content

feat(lxlweb): Read site configuration from backend. - #1665

Merged
olovy merged 15 commits into
developfrom
feat/subsite-2
Aug 31, 2026
Merged

feat(lxlweb): Read site configuration from backend.#1665
olovy merged 15 commits into
developfrom
feat/subsite-2

Conversation

@olovy

@olovy olovy commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Read site configuration from backend.

configuration now can:

  • override locale / translations
  • select theme
    • the actual theme is still part of lxl-web
  • select hero image
    • hero image is still part of lxl-web
    • added two new example hero images (a11y fail! do not work well text on them...)
  • select favicon
    • favicon is still part of lxl-web
  • disable some features
    • favourite libraries
    • my pages
    • holdings (i.e no "0 libraries")
    • special collections
    • disable resource images / placeholders completely. ege Swepub and Uppsök never have images (for now).
      • TODO: Doesn't look great. Fix layout when images disabled.
  • set footer sections / links
  • set featured searches
  • override about page
  • add additional app menu items
    • home / search / help / about / language are fixed for now

See libris/definitions#620 for Swepub / Uppsök example config
NB! hero images are just examples. TBD!
Skärmbild från 2026-08-25 13-55-28
Skärmbild från 2026-08-25 13-55-44
Skärmbild från 2026-08-25 15-21-42

Libris default values for everything are still set in lxl-web.

Only SEARCH_SITE remains in .env. Used to fetch settings.
For now SUBSITES is only used to prefetch all settings. Maybe we don't need it?
Example .env

SUBSITES=suecia,swepub,uppsok
SUBSITE.suecia.SEARCH_SITE=https://suecia.kb.se/
SUBSITE.swepub.SEARCH_SITE=https://swepub.kb.se/
SUBSITE.uppsok.SEARCH_SITE=https://uppsok.libris.kb.se/

I recommend turning off whitespace in diff view for "feature flag" changes.

TODO

  • featured categories
  • featured / visible filters

@olovy
olovy marked this pull request as ready for review August 25, 2026 10:21

@lrosenstrom lrosenstrom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also looked promising on the live demonstration. Let's revisit how we can utilize the hero image customizability later with some better background images.

@olovy
olovy merged commit f43f683 into develop Aug 31, 2026
3 checks passed
@olovy
olovy deleted the feat/subsite-2 branch August 31, 2026 14:21
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.

2 participants