Skip to content

Commit

Permalink
Merge branch 'Api_telechargement' of github.com:IGNF/geonetwork-ui in…
Browse files Browse the repository at this point in the history
…to Api_telechargement
  • Loading branch information
Naminoshin committed May 22, 2024
2 parents a7e306a + ea9d49f commit 7810ba5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ export class Gn4FieldMapper {

getLinkType(url: string, protocol?: string): DatasetDistributionType {

console.log("hello proto",protocol);
if (!protocol) {
return 'link'
}
Expand Down Expand Up @@ -373,12 +372,10 @@ export class Gn4FieldMapper {
protocol && protocol.match(/^WWW:DOWNLOAD:(.+\/.+)$/)
console.log("je suis le mimetypeMatches" ,mimeTypeMatches)
const mimeType = mimeTypeMatches && mimeTypeMatches[1]
console.log("je suis le mimeTyep", mimeType)
const distribution = {
...(name && { name }),
...(description && { description }),
}
console.log("hello type",type);

switch (type) {
case 'service':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface Field {
export class IgnApiDlComponent implements OnInit {
@Input() set apiLink(value: DatasetServiceDistribution) {
this.apiBaseUrl = value ? value.url.href : undefined
console.log(this.apiBaseUrl)
this.resetUrl()
}

Expand Down

0 comments on commit 7810ba5

Please sign in to comment.