@museumwnf/viewer-layout 3.92.0 → 3.94.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 +13 -11
- package/dist/dxa.js +1 -0
- package/dist/minisite.js +339 -347
- package/dist/standalone.js +376 -388
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -651,10 +651,12 @@ the galleries'. `projectColors` names only what that cannot tell (a package
|
|
|
651
651
|
older than its exporter's `home_site`), and wins where it is given.
|
|
652
652
|
|
|
653
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
|
|
656
|
-
redirects look an address up there only; without it, they read the
|
|
657
|
-
file, or decode the records' legacy keys for an older package.
|
|
654
|
+
(`{ items: { <uid path>: id }, partners: { <country>/<legacy id>: id },
|
|
655
|
+
tags: { <legacy tag id>: id } }`), written once from the package. With it, the
|
|
656
|
+
legacy redirects look an address up there only; without it, they read the
|
|
657
|
+
package's file, or decode the records' legacy keys for an older package. The
|
|
658
|
+
config carries it as `legacyPaths`: viewer-core's gallery facets (2.32.0) read
|
|
659
|
+
`tags` to turn a legacy facet value in an old search link into the tag's id.
|
|
658
660
|
|
|
659
661
|
`exhibitionConfig` takes the same values (and `partnerObjects`, overrides of
|
|
660
662
|
the shared `exhibition.partnerObjects.*` entries). The config carries the
|
|
@@ -819,12 +821,12 @@ the banners may each be given once or per language (`{ en, ar }`).
|
|
|
819
821
|
| --- | --- |
|
|
820
822
|
| `StandaloneShell` | `SiteShell` with legacy's chrome: the logo per language, the inner pages' centred heading and "Portal \| Home" links, the home page's picture banner, the inner pages' titled band (`navigation.sectionTitles`), the menu above or below the banner, the band above the footer on the home page, the copyright line with the year, a print-only logo. The page gets `.mwnf-standalone`, the scope of the family stylesheet |
|
|
821
823
|
| `StandaloneHome` | the home page's content: the side links and the record of the day, or a tile grid |
|
|
822
|
-
| `TodayHighlight` | legacy's "Today's highlight": the record for the day of the year from the site's list (`highlight.list`: the records' inventory ids, or
|
|
824
|
+
| `TodayHighlight` | legacy's "Today's highlight": the record for the day of the year from the site's list (`highlight.list`: the records' inventory ids, or `'random'`: one of the package's records with a picture of its own, the same all day, `recordWithPictureForDay`), its picture and legacy's lines (`highlightRecord` in `standalone/chrome.js`) |
|
|
823
825
|
| `StandaloneItemSheet` | `RecordView` in legacy's three columns: the way back and the pictures; the sheet with its short-description toggle; the coloured Related Content column (`RelatedContent`), which takes the site's own blocks in its `sidebar` slot, then legacy's "See also" from the record's `travel_book` (Islamic Art's "Related MWNF Travel Book") and `exhibition_trails` (Baroque Art's trails), linked in the page's language (`related.seeAlso: false` leaves it out) |
|
|
824
826
|
| `StandaloneTextPage` | a text page in legacy's centred column: a Markdown entry, an optional drop cap, a "→" link and Print |
|
|
825
827
|
| `StandaloneSponsors` | the band above the footer, in columns of text, logos and links |
|
|
826
828
|
| `StandaloneSubNav`, `StandaloneTileGrid`, `StandaloneSlider` | Sharing History's tab strip, picture tiles and slider |
|
|
827
|
-
| `byLanguage`, `dayOfYear`, `pickForDay`, `
|
|
829
|
+
| `byLanguage`, `dayOfYear`, `pickForDay`, `recordWithPictureForDay` | the plain functions the chrome reads with |
|
|
828
830
|
|
|
829
831
|
Every rule of the family's stylesheet is scoped to `.mwnf-standalone`, and
|
|
830
832
|
every value is a `--mwnf-standalone-*` token with a neutral fallback
|
|
@@ -873,9 +875,10 @@ export default minisiteConfig({
|
|
|
873
875
|
The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
|
|
874
876
|
and for the other families `social`, `design`, `banner`, `logos`), points the frame's links at the parent product next to the
|
|
875
877
|
site's own address (`parentSite(origin, 'islamicart')`), and gives the
|
|
876
|
-
family's no-country rule
|
|
877
|
-
|
|
878
|
-
`documentTitle` itself.
|
|
878
|
+
family's Word document title, and Discover Islamic Art's no-country rule
|
|
879
|
+
(`ISLAMICART_NO_COUNTRY`), unless `minisite.json` sets `noCountry` or
|
|
880
|
+
`documentTitle` itself. A Discover Baroque Art mini-site prints the country as
|
|
881
|
+
its package says (`show_country`). The pieces it assembles — `MinisiteShell`,
|
|
879
882
|
`minisiteNavigation`, `minisiteSettings`, `minisiteRoutes`, `MinisiteHome` and
|
|
880
883
|
each family's own — stay exported for a site that needs to assemble them
|
|
881
884
|
differently.
|
|
@@ -925,7 +928,7 @@ and their sites are created from `baroqueart-minisite-template`.
|
|
|
925
928
|
|
|
926
929
|
```js
|
|
927
930
|
import {
|
|
928
|
-
|
|
931
|
+
BaroqueartHome, baroqueartNavigation, baroqueartRoutes, baroqueartSettings, BaroqueartShell,
|
|
929
932
|
} from '@museumwnf/viewer-layout/minisite'
|
|
930
933
|
|
|
931
934
|
const parent = 'https://museumwithnofrontiers.github.io/baroqueart'
|
|
@@ -940,7 +943,6 @@ export default {
|
|
|
940
943
|
curators: [{ partner: '<uuid>', place: 'Brno', country: 'cze', logo: 'legacy/CZ-46.png', space: 35 }],
|
|
941
944
|
design: { name: 'Yasar University Izmir, Turkey', logo: 'legacy/yasar.png', href: 'http://www.yasar.edu.tr/en/' },
|
|
942
945
|
banner: 'legacy/banner.png',
|
|
943
|
-
noCountry: BAROQUEART_NO_COUNTRY,
|
|
944
946
|
documentTitle: 'MWNF DISCOVER BAROQUE ART - Exhibition',
|
|
945
947
|
}),
|
|
946
948
|
views: { home: BaroqueartHome },
|
package/dist/dxa.js
CHANGED