From 59ed175988899bada9bf3ed25c21f39f8e654698 Mon Sep 17 00:00:00 2001 From: mahmoudadel54 Date: Thu, 14 Sep 2023 13:31:36 +0300 Subject: [PATCH] #9368: enable reading metadata from csw for 3d tiles --- web/client/api/catalog/CSW.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/client/api/catalog/CSW.js b/web/client/api/catalog/CSW.js index 9693a86574..6b46472f59 100644 --- a/web/client/api/catalog/CSW.js +++ b/web/client/api/catalog/CSW.js @@ -103,7 +103,7 @@ function getThumbnailFromDc(dc, options) { } return thumbURL; } -function getCatalogRecord3DTiles(record) { +function getCatalogRecord3DTiles(record, metadata) { const dc = record.dc; let bbox = { crs: record.boundingBox.crs, @@ -120,7 +120,8 @@ function getCatalogRecord3DTiles(record) { bbox, format: dc && dc.format || "", references: [], - catalogType: 'csw' + catalogType: 'csw', + metadata }; } @@ -233,7 +234,7 @@ export const getCatalogRecords = (records, options, locales) => { : undefined; let catRecord; if (dc && dc.format === "3D Tiles") { - catRecord = getCatalogRecord3DTiles(record); + catRecord = getCatalogRecord3DTiles(record, metadata); } else { catRecord = {