Skip to content

Commit

Permalink
refactor(metadata): rename ignDl to GPFDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Naminoshin committed May 22, 2024
1 parent 7810ba5 commit 189b2e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down
2 changes: 1 addition & 1 deletion libs/common/domain/src/lib/model/record/metadata.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export type ServiceProtocol =
| 'wmts'
| 'esriRest'
| 'ogcFeatures'
| 'ignDl'
| 'GPFDL'
| 'other'

export type DatasetDistributionType = 'service' | 'download' | 'link'
Expand Down
5 changes: 1 addition & 4 deletions libs/ui/elements/src/lib/api-card/api-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ export class ApiCardComponent implements OnInit, OnChanges {
@Input() currentLink: DatasetServiceDistribution
displayApiFormButton: boolean
currentlyActive = false
@Output() openRecordIgnDlForm: EventEmitter<DatasetServiceDistribution> =
new EventEmitter<DatasetServiceDistribution>()

@Output() openRecordApiForm: EventEmitter<DatasetServiceDistribution> =
new EventEmitter<DatasetServiceDistribution>()

ngOnInit() {
this.displayApiFormButton =
this.link.accessServiceProtocol === 'ogcFeatures' ||
this.link.accessServiceProtocol === 'ignDl'
this.link.accessServiceProtocol === 'GPFDL'
}

ngOnChanges(changes: SimpleChanges) {
Expand Down
2 changes: 1 addition & 1 deletion libs/util/shared/src/lib/links/link-classifier.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 189b2e6

Please sign in to comment.