ochre-sdk 0.20.4 → 0.20.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2416,7 +2416,7 @@ function buildXQuery(params, options) {
2416
2416
  for $v in $matching-props/value${isLimitedToLeafPropertyValues ? "[not(@i)]" : ""}
2417
2417
  let $item-uuid := $v/ancestor::*[parent::items]/@uuid
2418
2418
  return <propertyValue uuid="{$v/@uuid}" rawValue="{$v/@rawValue}" dataType="{$v/@dataType}" itemUuid="{$item-uuid}">{
2419
- if ($v/content) then $v/content else $v/text()
2419
+ if ($v/content) then string-join($v/content[@xml:lang="eng"]/string, "") else $v/text()
2420
2420
  }</propertyValue>`}}</ochre>`;
2421
2421
  }
2422
2422
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
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",