@digitalculture/ochre-sdk 0.1.25 → 0.1.27

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/dist/index.cjs CHANGED
@@ -1002,6 +1002,9 @@ function parseBibliography(bibliography) {
1002
1002
  resource,
1003
1003
  documentUrl: bibliography.sourceDocument ? `https://ochre.lib.uchicago.edu/ochre?uuid=${bibliography.sourceDocument.uuid}&load` : null
1004
1004
  },
1005
+ periods: bibliography.periods ? parsePeriods(
1006
+ Array.isArray(bibliography.periods.period) ? bibliography.periods.period : [bibliography.periods.period]
1007
+ ) : [],
1005
1008
  authors: bibliography.authors ? parsePersons(
1006
1009
  Array.isArray(bibliography.authors.person) ? bibliography.authors.person : [bibliography.authors.person]
1007
1010
  ) : [],
@@ -1722,7 +1725,7 @@ async function parseWebpage(webpageResource) {
1722
1725
  displayedInHeader,
1723
1726
  width,
1724
1727
  variant,
1725
- backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&preview` : null,
1728
+ backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load` : null,
1726
1729
  cssStyles
1727
1730
  },
1728
1731
  webpages
package/dist/index.d.cts CHANGED
@@ -319,6 +319,7 @@ type Bibliography = {
319
319
  resource: Pick<Resource, "uuid" | "publicationDateTime" | "type" | "identification"> | null;
320
320
  documentUrl: string | null;
321
321
  };
322
+ periods: Array<Period>;
322
323
  authors: Array<Person>;
323
324
  properties: Array<Property>;
324
325
  };
@@ -1030,6 +1031,7 @@ type OchreBibliography = {
1030
1031
  "uuid" | "type" | "publicationDateTime" | "identification"
1031
1032
  >;
1032
1033
  };
1034
+ periods?: { period: OchrePeriod | Array<OchrePeriod> };
1033
1035
  authors?: { person: OchrePerson | Array<OchrePerson> };
1034
1036
  properties?: { property: OchreProperty | Array<OchreProperty> };
1035
1037
  };
package/dist/index.d.ts CHANGED
@@ -319,6 +319,7 @@ type Bibliography = {
319
319
  resource: Pick<Resource, "uuid" | "publicationDateTime" | "type" | "identification"> | null;
320
320
  documentUrl: string | null;
321
321
  };
322
+ periods: Array<Period>;
322
323
  authors: Array<Person>;
323
324
  properties: Array<Property>;
324
325
  };
@@ -1030,6 +1031,7 @@ type OchreBibliography = {
1030
1031
  "uuid" | "type" | "publicationDateTime" | "identification"
1031
1032
  >;
1032
1033
  };
1034
+ periods?: { period: OchrePeriod | Array<OchrePeriod> };
1033
1035
  authors?: { person: OchrePerson | Array<OchrePerson> };
1034
1036
  properties?: { property: OchreProperty | Array<OchreProperty> };
1035
1037
  };
package/dist/index.js CHANGED
@@ -925,6 +925,9 @@ function parseBibliography(bibliography) {
925
925
  resource,
926
926
  documentUrl: bibliography.sourceDocument ? `https://ochre.lib.uchicago.edu/ochre?uuid=${bibliography.sourceDocument.uuid}&load` : null
927
927
  },
928
+ periods: bibliography.periods ? parsePeriods(
929
+ Array.isArray(bibliography.periods.period) ? bibliography.periods.period : [bibliography.periods.period]
930
+ ) : [],
928
931
  authors: bibliography.authors ? parsePersons(
929
932
  Array.isArray(bibliography.authors.person) ? bibliography.authors.person : [bibliography.authors.person]
930
933
  ) : [],
@@ -1645,7 +1648,7 @@ async function parseWebpage(webpageResource) {
1645
1648
  displayedInHeader,
1646
1649
  width,
1647
1650
  variant,
1648
- backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&preview` : null,
1651
+ backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load` : null,
1649
1652
  cssStyles
1650
1653
  },
1651
1654
  webpages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",