-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from camptocamp/change-keywords-to-categories-…
…dataset-page feat(keywords): Use category keywords, change category filter, change date filter
- Loading branch information
Showing
12 changed files
with
151 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Injectable, Injector } from '@angular/core' | ||
import { marker } from '@biesbjerg/ngx-translate-extract-marker' | ||
import { FieldsService, SimpleSearchField } from 'geonetwork-ui' | ||
import { TranslatedSearchField } from 'geonetwork-ui' | ||
|
||
marker('search.filters.categoryKeyword') | ||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class MelFieldsService extends FieldsService { | ||
override fields = { | ||
...this.fields, | ||
categoryKeyword: new TranslatedSearchField( | ||
'th_thesaurus_mot_cle_thematique_categories.link', | ||
this.injector, | ||
'asc' | ||
), | ||
revisionYear: new SimpleSearchField( | ||
'revisionYearForResource', | ||
this.injector, | ||
'desc' | ||
), | ||
} | ||
|
||
constructor(override injector: Injector) { | ||
super(injector) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.