@museumwnf/viewer-layout 3.92.0 → 3.93.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 +7 -7
- package/dist/minisite.js +339 -347
- package/dist/standalone.js +376 -388
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -819,12 +819,12 @@ the banners may each be given once or per language (`{ en, ar }`).
|
|
|
819
819
|
| --- | --- |
|
|
820
820
|
| `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
821
|
| `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
|
|
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 `'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
823
|
| `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
824
|
| `StandaloneTextPage` | a text page in legacy's centred column: a Markdown entry, an optional drop cap, a "→" link and Print |
|
|
825
825
|
| `StandaloneSponsors` | the band above the footer, in columns of text, logos and links |
|
|
826
826
|
| `StandaloneSubNav`, `StandaloneTileGrid`, `StandaloneSlider` | Sharing History's tab strip, picture tiles and slider |
|
|
827
|
-
| `byLanguage`, `dayOfYear`, `pickForDay`, `
|
|
827
|
+
| `byLanguage`, `dayOfYear`, `pickForDay`, `recordWithPictureForDay` | the plain functions the chrome reads with |
|
|
828
828
|
|
|
829
829
|
Every rule of the family's stylesheet is scoped to `.mwnf-standalone`, and
|
|
830
830
|
every value is a `--mwnf-standalone-*` token with a neutral fallback
|
|
@@ -873,9 +873,10 @@ export default minisiteConfig({
|
|
|
873
873
|
The factory reads `minisite.json` (`menuSecondColumnFrom`, `curators`, `maps`,
|
|
874
874
|
and for the other families `social`, `design`, `banner`, `logos`), points the frame's links at the parent product next to the
|
|
875
875
|
site's own address (`parentSite(origin, 'islamicart')`), and gives the
|
|
876
|
-
family's no-country rule
|
|
877
|
-
|
|
878
|
-
`documentTitle` itself.
|
|
876
|
+
family's Word document title, and Discover Islamic Art's no-country rule
|
|
877
|
+
(`ISLAMICART_NO_COUNTRY`), unless `minisite.json` sets `noCountry` or
|
|
878
|
+
`documentTitle` itself. A Discover Baroque Art mini-site prints the country as
|
|
879
|
+
its package says (`show_country`). The pieces it assembles — `MinisiteShell`,
|
|
879
880
|
`minisiteNavigation`, `minisiteSettings`, `minisiteRoutes`, `MinisiteHome` and
|
|
880
881
|
each family's own — stay exported for a site that needs to assemble them
|
|
881
882
|
differently.
|
|
@@ -925,7 +926,7 @@ and their sites are created from `baroqueart-minisite-template`.
|
|
|
925
926
|
|
|
926
927
|
```js
|
|
927
928
|
import {
|
|
928
|
-
|
|
929
|
+
BaroqueartHome, baroqueartNavigation, baroqueartRoutes, baroqueartSettings, BaroqueartShell,
|
|
929
930
|
} from '@museumwnf/viewer-layout/minisite'
|
|
930
931
|
|
|
931
932
|
const parent = 'https://museumwithnofrontiers.github.io/baroqueart'
|
|
@@ -940,7 +941,6 @@ export default {
|
|
|
940
941
|
curators: [{ partner: '<uuid>', place: 'Brno', country: 'cze', logo: 'legacy/CZ-46.png', space: 35 }],
|
|
941
942
|
design: { name: 'Yasar University Izmir, Turkey', logo: 'legacy/yasar.png', href: 'http://www.yasar.edu.tr/en/' },
|
|
942
943
|
banner: 'legacy/banner.png',
|
|
943
|
-
noCountry: BAROQUEART_NO_COUNTRY,
|
|
944
944
|
documentTitle: 'MWNF DISCOVER BAROQUE ART - Exhibition',
|
|
945
945
|
}),
|
|
946
946
|
views: { home: BaroqueartHome },
|