Skip to content

Commit

Permalink
Fix(cardapi): Passage de la card API téléchargement en premier #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Naminoshin committed Jun 13, 2024
1 parent 971aecd commit d9fd03a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/feature/record/src/lib/state/mdview.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LinkClassifierService, LinkUsage } from '@geonetwork-ui/util/shared'
import { DatavizConfigurationModel } from '@geonetwork-ui/common/domain/model/dataviz/dataviz-configuration.model'
import {
CatalogRecord,
DatasetServiceDistribution,
UserFeedback,
} from '@geonetwork-ui/common/domain/model/record'
import { AvatarServiceInterface } from '@geonetwork-ui/api/repository'
Expand Down Expand Up @@ -60,7 +61,7 @@ export class MdViewFacade {

apiLinks$ = this.allLinks$.pipe(
map((links) =>
links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API))
links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API)).sort((dd1, dd2) => {return (dd2 as DatasetServiceDistribution).accessServiceProtocol == 'GPFDL'? 1 : 0})
)
)

Expand Down

0 comments on commit d9fd03a

Please sign in to comment.