@museumwnf/viewer-layout 3.12.1 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -843,7 +843,64 @@ export default {
843
843
  menus and links on its pictures, the Arabic ones under `[dir='rtl']`.
844
844
  inventory-app's `scripts/minisites/legacy-theme.mjs` writes a site's
845
845
  `tokens.css` from its legacy stylesheets.
846
- - **The curators' band** on the home page is drawn here; which curators, their\n logos and their links are the site's own (`minisite.curators`): a partner\n (`{ partner, logo, space }`, its name, country and page from its record) or a\n curator legacy named itself (`{ name, country, href, logo, space }`).\n- **The texts** are viewer-i18n's `minisite` bundle (class `minisite`).
846
+ - **The curators' band** on the home page is drawn here; which curators, their
847
+ logos and their links are the site's own (`minisite.curators`): a partner
848
+ (`{ partner, logo, space }`, its name, country and page from its record) or a
849
+ curator legacy named itself (`{ name, country, href, logo, space }`).
850
+ - **The texts** are viewer-i18n's `minisite` bundle (class `minisite`).
851
+
852
+ ### Sharing History's mini-sites
853
+
854
+ Sharing History's virtual exhibitions are a family of their own, on pages of
855
+ their own (legacy's `exhibitions/AWE/`: `exh_items.php`, `exh_introduction.php`,
856
+ `theme_items.php`, `subtheme_items.php`, `bibliography.php` and the curators,
857
+ cover-image and zoom windows), inside the Sharing History frame. They share
858
+ only how every mini-site reads its records and the tooltip; their exports are
859
+ named `SharingHistory*` / `sharinghistory*`. Their sites are created from
860
+ `sharinghistory-minisite-template`.
861
+
862
+ ```js
863
+ import {
864
+ SharingHistoryHome, SharingHistoryShell, sharinghistoryNavigation, sharinghistoryRoutes, sharinghistorySettings,
865
+ } from '@museumwnf/viewer-layout/minisite'
866
+
867
+ const parent = 'https://museumwithnofrontiers.github.io/sharinghistory'
868
+
869
+ export default {
870
+ // …datasetPackage, siteName, site, features, languages, chrome…
871
+ shell: SharingHistoryShell,
872
+ navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles }),
873
+ minisite: sharinghistorySettings({ parent, partnerLinks }),
874
+ views: { home: SharingHistoryHome },
875
+ extraViews: sharinghistoryRoutes(sectionMeta()),
876
+ }
877
+ ```
878
+
879
+ - **Routes**: `home`, `introduction`, `theme` (`/theme/<theme>`, a theme's
880
+ overview), `subtheme` (`/theme/<theme>/<page>`), `further-reading`, and the
881
+ bare windows `credits`, `cover-image` and `zoom`. Next Page walks each
882
+ theme's overview, then its subthemes (`sharinghistoryReadingOrder`).
883
+ - **Legacy's rules**: a page shows a view only when the curator approved its
884
+ relation, and a position only with its main view
885
+ (`sharinghistorySlotsOf`); the item panel's "Related" lists the other views
886
+ at that position; the caption is `showItem()`'s
887
+ (`sharinghistoryPlacementCaption`), the curator's justification only when
888
+ its status is "Y". The introduction shows the exhibition's own pictures,
889
+ the first five. Related Content leads to the parent's timelines and its
890
+ gallery, narrowed to the page's theme and subtheme
891
+ (`sharinghistoryRelatedLinks`).
892
+ - **The site's own values**: `profiles`, the parent's country profiles its
893
+ footer menu lists, and `partnerLinks`, where each partner logo leads on the
894
+ parent site, both written by inventory-app's
895
+ `scripts/minisites/sharinghistory-minisite.mjs`.
896
+ - **The theme**: `minisite-sharinghistory.css` reads `--sh-*` tokens, the
897
+ exhibition's `sh_exhibitions_styles`; its pictures are the site's chrome
898
+ files under the names legacy gave them (`legacy/home_bg.jpg`,
899
+ `legacy/intro_bg.jpg`, `legacy/exhibition_bg.jpg`, `legacy/bg.png`, the
900
+ arrows, `legacy/magnify.png`, `legacy/print.gif`,
901
+ `legacy/dash_dark_back.gif`, `legacy/mwnfLogoShExIn-en.png`).
902
+ - **The texts** are viewer-i18n's `minisiteSharingHistory` bundle (6.4).
903
+
847
904
  ## Theming
848
905
 
849
906
  Every color, font, spacing, radius comes from a `--mwnf-*` CSS custom property with a neutral fallback. Full list: [`tokens.reference.css`](src/tokens.reference.css) (also exported as `@museumwnf/viewer-layout/tokens.reference.css`) — copy it into your website as `theme/tokens.css` and set values.