Skip to content

Commit

Permalink
geosolutions-it#9368: enable reading metadata from csw for 3d tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudadel54 committed Sep 14, 2023
1 parent 66e7fce commit 59ed175
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/client/api/catalog/CSW.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -120,7 +120,8 @@ function getCatalogRecord3DTiles(record) {
bbox,
format: dc && dc.format || "",
references: [],
catalogType: 'csw'
catalogType: 'csw',
metadata
};
}

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 59ed175

Please sign in to comment.