geonetwork-ui 2.8.2-dev.fa42c5152 → 2.8.3-dev.035c07269

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.
@@ -25519,7 +25519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
25519
25519
  }] } });
25520
25520
 
25521
25521
  var name = "geonetwork-ui";
25522
- var version = "2.8.2-dev.fa42c5152";
25522
+ var version = "2.8.3-dev.035c07269";
25523
25523
  var engines = {
25524
25524
  node: ">=20"
25525
25525
  };
@@ -25615,7 +25615,7 @@ var packageJson = {
25615
25615
  };
25616
25616
 
25617
25617
  const GEONETWORK_UI_VERSION = packageJson.version;
25618
- const GEONETWORK_UI_TAG_NAME = GEONETWORK_UI_VERSION.split('-')[1] === 'dev'
25618
+ const GEONETWORK_UI_TAG_NAME = GEONETWORK_UI_VERSION.split('-')[1]?.startsWith('dev')
25619
25619
  ? '2.8.x'
25620
25620
  : `v${packageJson.version}`;
25621
25621
 
@@ -38358,13 +38358,15 @@ class DataService {
38358
38358
  }
38359
38359
  async getDownloadLinksFromOgcApiFeatures(ogcApiLink) {
38360
38360
  const collectionInfo = await this.getDownloadUrlsFromOgcApi(ogcApiLink.url.href);
38361
- return Object.keys(collectionInfo.bulkDownloadLinks).map((downloadLink) => {
38361
+ return Object.keys(collectionInfo.bulkDownloadLinks).map((mimeType) => {
38362
+ const urlWithoutLimit = new URL(collectionInfo.bulkDownloadLinks[mimeType]);
38363
+ urlWithoutLimit.searchParams.delete('limit');
38362
38364
  return {
38363
38365
  ...ogcApiLink,
38364
38366
  name: collectionInfo.id,
38365
38367
  type: 'download',
38366
- url: new URL(collectionInfo.bulkDownloadLinks[downloadLink]),
38367
- mimeType: getMimeTypeForFormat(getFileFormatFromServiceOutput(downloadLink)),
38368
+ url: urlWithoutLimit,
38369
+ mimeType: getMimeTypeForFormat(getFileFormatFromServiceOutput(mimeType)),
38368
38370
  };
38369
38371
  });
38370
38372
  }
@@ -38378,12 +38380,12 @@ class DataService {
38378
38380
  throw new Error(`ogc.unreachable.unknown`);
38379
38381
  });
38380
38382
  }
38381
- async getItemsFromOgcApi(url) {
38383
+ async getItemsFromOgcApi(url, limit) {
38382
38384
  const endpoint = new OgcApiEndpoint(url);
38383
38385
  return await endpoint.featureCollections
38384
38386
  .then((collections) => {
38385
38387
  return collections.length
38386
- ? endpoint.getCollectionItems(collections[0])
38388
+ ? endpoint.getCollectionItems(collections[0], limit)
38387
38389
  : null;
38388
38390
  })
38389
38391
  .catch(() => {
@@ -38479,7 +38481,9 @@ class DataService {
38479
38481
  if (!geojsonUrl) {
38480
38482
  return throwError(() => 'ogc.geojson.notsupported');
38481
38483
  }
38482
- return openDataset(geojsonUrl, 'geojson', undefined, cacheActive);
38484
+ const urlWithoutLimit = new URL(geojsonUrl);
38485
+ urlWithoutLimit.searchParams.delete('limit');
38486
+ return openDataset(urlWithoutLimit.toString(), 'geojson', undefined, cacheActive);
38483
38487
  }));
38484
38488
  }
38485
38489
  return throwError(() => 'protocol not supported');
@@ -39480,7 +39484,7 @@ class MdViewFacade {
39480
39484
  if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
39481
39485
  if (link.type === 'service' &&
39482
39486
  link.accessServiceProtocol === 'ogcFeatures') {
39483
- return from(this.dataService.getItemsFromOgcApi(link.url.href)).pipe(map$1((collectionRecords) => {
39487
+ return from(this.dataService.getItemsFromOgcApi(link.url.href, 1)).pipe(map$1((collectionRecords) => {
39484
39488
  return collectionRecords &&
39485
39489
  collectionRecords[0] &&
39486
39490
  collectionRecords[0].geometry