@digitalculture/ochre-sdk 0.6.4 → 0.6.5
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2631,7 +2631,7 @@ async function fetchGallery(uuid, filter, page, perPage) {
|
|
|
2631
2631
|
const response = await fetch(
|
|
2632
2632
|
`https://ochre.lib.uchicago.edu/ochre?xquery=${encodeURIComponent(`
|
|
2633
2633
|
for $q in input()/ochre[@uuid='${parsedUuid}']
|
|
2634
|
-
let $filtered := $q
|
|
2634
|
+
let $filtered := $q//items/resource[contains(lower-case(identification/label), lower-case('${parsedFilter}'))]
|
|
2635
2635
|
let $maxLength := count($filtered)
|
|
2636
2636
|
return <gallery maxLength='{$maxLength}'>
|
|
2637
2637
|
{$q/metadata/project}
|
package/dist/index.js
CHANGED
|
@@ -2557,7 +2557,7 @@ async function fetchGallery(uuid, filter, page, perPage) {
|
|
|
2557
2557
|
const response = await fetch(
|
|
2558
2558
|
`https://ochre.lib.uchicago.edu/ochre?xquery=${encodeURIComponent(`
|
|
2559
2559
|
for $q in input()/ochre[@uuid='${parsedUuid}']
|
|
2560
|
-
let $filtered := $q
|
|
2560
|
+
let $filtered := $q//items/resource[contains(lower-case(identification/label), lower-case('${parsedFilter}'))]
|
|
2561
2561
|
let $maxLength := count($filtered)
|
|
2562
2562
|
return <gallery maxLength='{$maxLength}'>
|
|
2563
2563
|
{$q/metadata/project}
|
package/package.json
CHANGED