-
Notifications
You must be signed in to change notification settings - Fork 32
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 #508 from geonetwork/orgs-from-groups
Add the possibility to load organizations from group instead of metadata
- Loading branch information
Showing
54 changed files
with
2,216 additions
and
1,154 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
4 changes: 3 additions & 1 deletion
4
apps/datahub/src/app/home/organisations-page/organisations-page.component.html
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div class="container-lg mx-auto mt-8"> | ||
<gn-ui-organisations></gn-ui-organisations> | ||
<gn-ui-organisations | ||
(orgSelect)="searchByOrganisation($event)" | ||
></gn-ui-organisations> | ||
</div> |
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
16 changes: 15 additions & 1 deletion
16
apps/datahub/src/app/home/organisations-page/organisations-page.component.ts
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core' | ||
import { Organisation } from '@geonetwork-ui/util/shared' | ||
import { SearchService } from '@geonetwork-ui/feature/search' | ||
import { OrganisationsServiceInterface } from '@geonetwork-ui/feature/catalog' | ||
|
||
@Component({ | ||
selector: 'datahub-organisations-page', | ||
templateUrl: './organisations-page.component.html', | ||
styleUrls: ['./organisations-page.component.css'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class OrganisationsPageComponent {} | ||
export class OrganisationsPageComponent { | ||
constructor( | ||
private searchService: SearchService, | ||
private orgsService: OrganisationsServiceInterface | ||
) {} | ||
|
||
searchByOrganisation(organisation: Organisation) { | ||
this.orgsService | ||
.getFiltersForOrgs([organisation]) | ||
.subscribe((filters) => this.searchService.setFilters(filters)) | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.