@museumwnf/viewer-layout 3.72.0 → 3.73.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 +57 -2
- package/dist/publications.js +1009 -0
- package/dist/travels.js +735 -0
- package/dist/viewer-layout.css +1 -1
- package/package.json +3 -1
- package/src/dxa/testing.js +9 -7
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
|
|
|
@@ -646,8 +648,8 @@ export default galleryConfig({
|
|
|
646
648
|
A record's source chip comes from the project's site
|
|
647
649
|
(`manifest.projects[id].home_site`, `projectChips()`): a product's own colour,
|
|
648
650
|
an exhibition's project in the exhibitions' colour, a project with no site in
|
|
649
|
-
the galleries'. `projectColors` names only what that cannot tell (
|
|
650
|
-
|
|
651
|
+
the galleries'. `projectColors` names only what that cannot tell (a package
|
|
652
|
+
older than its exporter's `home_site`), and wins where it is given.
|
|
651
653
|
|
|
652
654
|
`exhibitionConfig` takes the same values (and `partnerObjects`, overrides of
|
|
653
655
|
the shared `exhibition.partnerObjects.*` entries). The config carries the
|
|
@@ -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.
|