diff --git a/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts b/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts index 7c53f46fe8..172fc2190c 100644 --- a/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +++ b/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts @@ -7,7 +7,7 @@ export function matchProtocol(protocol: string): ServiceProtocol { if (/wps/i.test(protocol)) return 'wps' if (/ogc\W*api\W*features/i.test(protocol)) return 'ogcFeatures' if (/esri/i.test(protocol)) return 'esriRest' - if (/DOWNLOAD-1/i.test(protocol)) return 'ignDl' + if (/DOWNLOAD-1/i.test(protocol)) return 'GPFDL' return 'other' } diff --git a/libs/common/domain/src/lib/model/record/metadata.model.ts b/libs/common/domain/src/lib/model/record/metadata.model.ts index be0e6c3087..f6680e6a53 100644 --- a/libs/common/domain/src/lib/model/record/metadata.model.ts +++ b/libs/common/domain/src/lib/model/record/metadata.model.ts @@ -99,7 +99,7 @@ export type ServiceProtocol = | 'wmts' | 'esriRest' | 'ogcFeatures' - | 'ignDl' + | 'GPFDL' | 'other' export type DatasetDistributionType = 'service' | 'download' | 'link' diff --git a/libs/ui/elements/src/lib/api-card/api-card.component.ts b/libs/ui/elements/src/lib/api-card/api-card.component.ts index 0e888cd730..06407b19da 100644 --- a/libs/ui/elements/src/lib/api-card/api-card.component.ts +++ b/libs/ui/elements/src/lib/api-card/api-card.component.ts @@ -21,16 +21,13 @@ export class ApiCardComponent implements OnInit, OnChanges { @Input() currentLink: DatasetServiceDistribution displayApiFormButton: boolean currentlyActive = false -@Output() openRecordIgnDlForm: EventEmitter = - new EventEmitter() - @Output() openRecordApiForm: EventEmitter = new EventEmitter() ngOnInit() { this.displayApiFormButton = this.link.accessServiceProtocol === 'ogcFeatures' || - this.link.accessServiceProtocol === 'ignDl' + this.link.accessServiceProtocol === 'GPFDL' } ngOnChanges(changes: SimpleChanges) { diff --git a/libs/util/shared/src/lib/links/link-classifier.service.ts b/libs/util/shared/src/lib/links/link-classifier.service.ts index 0a6d30318f..d293ebf76d 100644 --- a/libs/util/shared/src/lib/links/link-classifier.service.ts +++ b/libs/util/shared/src/lib/links/link-classifier.service.ts @@ -28,7 +28,7 @@ export class LinkClassifierService { case 'ogcFeatures': return [LinkUsage.API] - case 'ignDl': + case 'GPFDL': return [LinkUsage.API, LinkUsage.DOWNLOAD] default: return [LinkUsage.UNKNOWN]