@digitalculture/ochre-sdk 0.18.14 → 0.18.15
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.d.mts +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1103,8 +1103,11 @@ function parseMetadata(metadata) {
|
|
|
1103
1103
|
...baseProjectIdentification,
|
|
1104
1104
|
website: metadata.project?.identification.website ?? null
|
|
1105
1105
|
};
|
|
1106
|
+
let collectionIdentification = null;
|
|
1107
|
+
if (metadata.collection) collectionIdentification = parseIdentification(metadata.collection.identification);
|
|
1106
1108
|
return {
|
|
1107
1109
|
project: projectIdentification ? { identification: projectIdentification } : null,
|
|
1110
|
+
collection: collectionIdentification ? { identification: collectionIdentification } : null,
|
|
1108
1111
|
item: metadata.item ? {
|
|
1109
1112
|
identification,
|
|
1110
1113
|
category: metadata.item.category,
|
package/package.json
CHANGED