@digitalculture/ochre-sdk 0.1.26 → 0.1.28
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 +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1725,7 +1725,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1725
1725
|
displayedInHeader,
|
|
1726
1726
|
width,
|
|
1727
1727
|
variant,
|
|
1728
|
-
backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&
|
|
1728
|
+
backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load` : null,
|
|
1729
1729
|
cssStyles
|
|
1730
1730
|
},
|
|
1731
1731
|
webpages
|
|
@@ -1972,7 +1972,9 @@ async function fetchGallery(uuid, filter, page, perPage) {
|
|
|
1972
1972
|
if (!("gallery" in data.result)) {
|
|
1973
1973
|
throw new Error("Failed to fetch gallery");
|
|
1974
1974
|
}
|
|
1975
|
-
const galleryIdentification = parseIdentification(
|
|
1975
|
+
const galleryIdentification = parseIdentification(
|
|
1976
|
+
data.result.gallery.item.identification
|
|
1977
|
+
);
|
|
1976
1978
|
const galleryProjectIdentification = parseIdentification(
|
|
1977
1979
|
data.result.gallery.project.identification
|
|
1978
1980
|
);
|
package/dist/index.js
CHANGED
|
@@ -1648,7 +1648,7 @@ async function parseWebpage(webpageResource) {
|
|
|
1648
1648
|
displayedInHeader,
|
|
1649
1649
|
width,
|
|
1650
1650
|
variant,
|
|
1651
|
-
backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&
|
|
1651
|
+
backgroundImageUrl: imageLink ? `https://ochre.lib.uchicago.edu/ochre?uuid=${imageLink.uuid}&load` : null,
|
|
1652
1652
|
cssStyles
|
|
1653
1653
|
},
|
|
1654
1654
|
webpages
|
|
@@ -1895,7 +1895,9 @@ async function fetchGallery(uuid, filter, page, perPage) {
|
|
|
1895
1895
|
if (!("gallery" in data.result)) {
|
|
1896
1896
|
throw new Error("Failed to fetch gallery");
|
|
1897
1897
|
}
|
|
1898
|
-
const galleryIdentification = parseIdentification(
|
|
1898
|
+
const galleryIdentification = parseIdentification(
|
|
1899
|
+
data.result.gallery.item.identification
|
|
1900
|
+
);
|
|
1899
1901
|
const galleryProjectIdentification = parseIdentification(
|
|
1900
1902
|
data.result.gallery.project.identification
|
|
1901
1903
|
);
|
package/package.json
CHANGED