@museumwnf/viewer-layout 3.72.1 → 3.74.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 +56 -1
- package/dist/publications.js +1009 -0
- package/dist/standalone.js +308 -246
- package/dist/travels.js +735 -0
- package/dist/viewer-layout.css +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ all the packages:
|
|
|
23
23
|
| `@museumwnf/viewer-layout/standalone` | standalone family layer | the chrome, home page, item sheet, text page and blocks of Discover Islamic Art, Discover Baroque Art and Sharing History | the entries above and `@museumwnf/viewer-core` |
|
|
24
24
|
| `@museumwnf/viewer-layout/minisite` | mini-site family layer | legacy's virtual exhibitions, one website each: the frame, the home page, the introduction, the exhibition pages, legacy's three windows, the caption rules, `minisiteRoutes` / `minisiteNavigation` / `minisiteSettings` | the entries above and `@museumwnf/viewer-core` |
|
|
25
25
|
| `@museumwnf/viewer-layout/minisite/testing` | mini-site family layer | the family's smoke test, `describeMinisiteSmoke` | the site's config, settings, texts and chrome, in the site's own Vitest |
|
|
26
|
+
| `@museumwnf/viewer-layout/publications` | site layer | the Publications site (legacy books.museumwnf.org): its frame, home page, category and results lists, a publication's page, `publicationsConfig` | the entries above and `@museumwnf/viewer-core` |
|
|
27
|
+
| `@museumwnf/viewer-layout/travels` | site layer | the Travels site (legacy travels.museumwnf.org's Exhibition Trails): its frame, the trails' lists, a trail's and an itinerary's pages, `travelsConfig` | the entries above and `@museumwnf/viewer-core` |
|
|
26
28
|
| `@museumwnf/viewer-layout/style.css` | — | one stylesheet for every entry, the family styles included | — |
|
|
27
29
|
| `@museumwnf/viewer-layout/tokens.reference.css` | — | every token the package reads, with its fallback | — |
|
|
28
30
|
|
|
@@ -767,7 +769,7 @@ the banners may each be given once or per language (`{ en, ar }`).
|
|
|
767
769
|
| `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 |
|
|
768
770
|
| `StandaloneHome` | the home page's content: the side links and the record of the day, or a tile grid |
|
|
769
771
|
| `TodayHighlight` | legacy's "Today's highlight": the record for the day of the year from legacy's own list (`home_items_img.txt`), its picture and legacy's lines |
|
|
770
|
-
| `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 |
|
|
772
|
+
| `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) |
|
|
771
773
|
| `StandaloneTextPage` | a text page in legacy's centred column: a Markdown entry, an optional drop cap, a "→" link and Print |
|
|
772
774
|
| `StandaloneSponsors` | the band above the footer, in columns of text, logos and links |
|
|
773
775
|
| `StandaloneSubNav`, `StandaloneTileGrid`, `StandaloneSlider` | Sharing History's tab strip, picture tiles and slider |
|
|
@@ -971,6 +973,59 @@ export default {
|
|
|
971
973
|
`legacy/dash_dark_back.gif`, `legacy/mwnfLogoShExIn-en.png`).
|
|
972
974
|
- **The texts** are viewer-i18n's `minisiteSharingHistory` bundle (6.4).
|
|
973
975
|
|
|
976
|
+
## Publications and Travels sites
|
|
977
|
+
|
|
978
|
+
`@museumwnf/viewer-layout/publications` and `@museumwnf/viewer-layout/travels`
|
|
979
|
+
are the pages of two standalone sites, each a product of its own
|
|
980
|
+
(inventory-app#2515): Publications replaces books.museumwnf.org, Travels the
|
|
981
|
+
Exhibition Trails of travels.museumwnf.org. Their layouts are legacy's, and
|
|
982
|
+
they read only their data package (publications-data-package.md,
|
|
983
|
+
travels-data-package.md in inventory-app) and their viewer-i18n bundle
|
|
984
|
+
(`publications`, `travels`). A site's `dataset.config.js` is one call:
|
|
985
|
+
|
|
986
|
+
```js
|
|
987
|
+
import { publicationsConfig } from '@museumwnf/viewer-layout/publications'
|
|
988
|
+
const chrome = import.meta.glob('../theme/assets/**/*.{jpg,png,gif,svg}', { eager: true, query: '?url', import: 'default' })
|
|
989
|
+
export default publicationsConfig({
|
|
990
|
+
datasetPackage: '@museumwnf/publications-data',
|
|
991
|
+
origin: 'https://museumwithnofrontiers.github.io/publications',
|
|
992
|
+
siteName: 'MWNF Books',
|
|
993
|
+
chrome, // legacy/logo-blue.png, legacy/logo-white.png
|
|
994
|
+
})
|
|
995
|
+
```
|
|
996
|
+
|
|
997
|
+
```js
|
|
998
|
+
import { travelsConfig } from '@museumwnf/viewer-layout/travels'
|
|
999
|
+
export default travelsConfig({
|
|
1000
|
+
datasetPackage: '@museumwnf/travels-data',
|
|
1001
|
+
origin: 'https://museumwithnofrontiers.github.io/travels',
|
|
1002
|
+
})
|
|
1003
|
+
```
|
|
1004
|
+
|
|
1005
|
+
| Site | Route | Legacy page | Reads |
|
|
1006
|
+
| --- | --- | --- | --- |
|
|
1007
|
+
| Publications | `/` | HomePage.vue: a band per category | `publications.json`, `editions.json`, `countries`, `languages` |
|
|
1008
|
+
| Publications | `/category/:category?page=` | CategoryPage.vue (`/category/<name>/<page>`), legacy's names (`travel-books`, …) | the same |
|
|
1009
|
+
| Publications | `/results?title=&author=&isbn=&language=&country=&subject=&type=&publisher=` | ResultsPage.vue | the same, `tags.json` (subjects) |
|
|
1010
|
+
| Publications | `/publication/:id/:language?` | BookPage.vue (`/book/<id>/<language>`) | a publication, its editions' covers and `/doc` PDFs, `translations/publications.<lang>.json` |
|
|
1011
|
+
| Travels | `/` | travel_et_home.php | `collections.json` (trails), `items.json` (their projects), `countries` |
|
|
1012
|
+
| Travels | `/trails?country=` / `?project=` | travel_et_trail.php (`cid` / `tid`) | trails, locations, the trail's `publications` |
|
|
1013
|
+
| Travels | `/trail/:id?tab=desc\|its\|cur` | travel_et_trailDetail.php (`fl`) | a trail's texts and `extra` (subtitle, region, curators, photographers), its itineraries and locations |
|
|
1014
|
+
| Travels | `/itinerary/:id?tab=des\|vl` | travel_et_itenary.php (`fl`) | an itinerary's texts, its locations' and monuments' pictures |
|
|
1015
|
+
|
|
1016
|
+
The Publications site offers English, as legacy did; a publication's page
|
|
1017
|
+
reads its labels in the version's language (`tIn`), English where legacy had
|
|
1018
|
+
none. The Travels site offers the languages of its trails' texts, labels and
|
|
1019
|
+
texts alike, as legacy's trail pages were drawn in the trail's language. A
|
|
1020
|
+
trail's book links to its page on the Publications site in the page's
|
|
1021
|
+
language (`<url>/<lang>`, legacy's `/book/<id>/<lang>`).
|
|
1022
|
+
|
|
1023
|
+
What legacy drew from data the packages do not carry is not drawn: the books'
|
|
1024
|
+
stock line ("AVAILABLE"), the "NEW" list (a site may give a `match` for it in
|
|
1025
|
+
`publications.categories`), the shop links (D-P8), the publisher popup; the
|
|
1026
|
+
Travels pages' tours, "Related Tours" and the itineraries' "AVAILABLE SOON"
|
|
1027
|
+
tabs (the tours are out, inventory-app#2515), and the trail's "Starting
|
|
1028
|
+
point", which legacy had commented out.
|
|
974
1029
|
## Theming
|
|
975
1030
|
|
|
976
1031
|
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.
|