@museumwnf/viewer-layout 3.88.0 → 3.90.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
@@ -639,6 +639,7 @@ export default galleryConfig({
639
639
  origin: 'https://museumwithnofrontiers.github.io/carpets',
640
640
  projectColors: { '<project id>': 'mwnf-chip--DCA' }, // only a project projectChips() cannot tell
641
641
  noticeProjects: ['<project id>'], // sheets with the Explore-partner notice
642
+ legacyPaths, // the site's fixed list of legacy addresses (src/legacyPaths.js)
642
643
  creditsBody: 'carpets.credits.body',
643
644
  })
644
645
  ```
@@ -649,6 +650,12 @@ an exhibition's project in the exhibitions' colour, a project with no site in
649
650
  the galleries'. `projectColors` names only what that cannot tell (a package
650
651
  older than its exporter's `home_site`), and wins where it is given.
651
652
 
653
+ `legacyPaths` is a gallery's own fixed list of its legacy addresses
654
+ (`{ items: { <uid path>: id }, partners: { <country>/<legacy id>: id } }`),
655
+ written once from the package's `legacy_paths.json`. With it, the legacy
656
+ redirects look an address up there only; without it, they read the package's
657
+ file, or decode the records' legacy keys for an older package.
658
+
652
659
  `exhibitionConfig` takes the same values (and `partnerObjects`, overrides of
653
660
  the shared `exhibition.partnerObjects.*` entries). The config carries the
654
661
  family's shell (`GalleryShell` / `ExhibitionShell`), menu, banner, sponsor
@@ -864,8 +871,7 @@ export default minisiteConfig({
864
871
  ```
865
872
 
866
873
  The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
867
- and for the other families `social`, `design`, `banner`, `profiles`, `logos`,
868
- `partnerLinks`), points the frame's links at the parent product next to the
874
+ and for the other families `social`, `design`, `banner`, `logos`), points the frame's links at the parent product next to the
869
875
  site's own address (`parentSite(origin, 'islamicart')`), and gives the
870
876
  family's no-country rule (`ISLAMICART_NO_COUNTRY`, `BAROQUEART_NO_COUNTRY`) and
871
877
  Word document title unless `minisite.json` sets `noCountry` or
@@ -981,8 +987,8 @@ const parent = 'https://museumwithnofrontiers.github.io/sharinghistory'
981
987
  export default {
982
988
  // …datasetPackage, siteName, site, features, languages, chrome…
983
989
  shell: SharingHistoryShell,
984
- navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles }),
985
- minisite: sharinghistorySettings({ parent, partnerLinks }),
990
+ navigation: sharinghistoryNavigation({ languages: languageLabels(languages), parent, profiles: parentProfiles(manifest.site?.parent?.profiles, parent) }),
991
+ minisite: sharinghistorySettings({ parent, logos }),
986
992
  views: { home: SharingHistoryHome },
987
993
  extraViews: sharinghistoryRoutes(sectionMeta()),
988
994
  }
@@ -994,21 +1000,20 @@ export default {
994
1000
  theme's overview, then its subthemes (`sharinghistoryReadingOrder`); a theme or
995
1001
  subtheme with no title is not a page, as legacy listed only titled ones
996
1002
  (`sharinghistoryListedThemes`, `sharinghistoryListedSubthemes`).
997
- - **Legacy's rules**: a page shows a view only when the curator approved its
998
- relation, and a position only with its main view
999
- (`sharinghistorySlotsOf`); the item panel's "Related" lists the other views
1000
- at that position; the caption is `showItem()`'s
1001
- (`sharinghistoryCaption`), the curator's justification only when
1002
- its status is "Y". The introduction shows the exhibition's own pictures,
1003
+ - **Legacy's rules, from the package**: a page's pictures are the package's
1004
+ `slots` (`sharinghistorySlotsOf`); the item panel's "Related" lists the other views
1005
+ of a slot; the caption is `showItem()`'s (`sharinghistoryCaption`), its
1006
+ place line the package's `caption_place`, the curator's justification only
1007
+ when its status is "Y". The introduction shows the exhibition's own pictures,
1003
1008
  the first five. Related Content leads to the parent's timelines and its
1004
1009
  gallery, narrowed to the page's theme and subtheme
1005
1010
  (`sharinghistoryRelatedLinks`).
1006
- - **The site's own values**: `profiles`, the parent's country profiles its
1007
- footer menu lists, `logos`, the partners' logos on the home page's band
1008
- (`{ image, link, tip }`: the file under theme/assets/, legacy's link and
1009
- tooltip; without it the band draws the package's logo images), and
1010
- `partnerLinks`, where each partner logo leads on the parent site, all
1011
- written by inventory-app's `scripts/minisites/sharinghistory-minisite.mjs`.
1011
+ - **The site's own values**: `logos`, the partners' logos on the home page's band
1012
+ (`{ image, link, tip }`: the file under theme/assets/, the page it leads to
1013
+ and its tooltip; without it the band draws the package's logo images). The
1014
+ footer menu's Historical Profiles are the package's
1015
+ (`manifest.site.parent.profiles`, `parentProfiles`); a site's own
1016
+ `profiles` list is read only while its package has none.
1012
1017
  - **The theme**: `minisite-sharinghistory.css` reads `--sh-*` tokens, the
1013
1018
  exhibition's `sh_exhibitions_styles`; its pictures are the site's chrome
1014
1019
  files under the names legacy gave them (`legacy/home_bg.jpg`,