>> {
+ let findAllOptions = new FindAllOptions();
+ if (options) {
+ findAllOptions = Object.assign(new FindAllOptions(), options);
+ }
+ findAllOptions.searchParams = [ new SearchParam('label', label), new SearchParam('dso', item.id) ];
+ return this.searchBy('byLabel', findAllOptions);
}
/**
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html
index b69827cd96..8db50e78c4 100644
--- a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html
+++ b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html
@@ -29,12 +29,14 @@
>>;
-
- /**
- * The publications related to this journal issue
- */
- publications$: Observable>>;
-
- ngOnInit(): void {
- this.volumes$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isJournalVolumeOfIssue');
- this.publications$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPublicationOfJournalIssue');
- }
}
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html
index 902b0e9d73..150037eccb 100644
--- a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html
+++ b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html
@@ -17,11 +17,13 @@
>>;
-
- /**
- * The journal issues related to this journal volume
- */
- issues$: Observable>>;
-
- ngOnInit(): void {
- this.journals$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isJournalOfVolume');
- this.issues$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isIssueOfJournalVolume');
- }
}
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html
index ee212d9be6..d22933a657 100644
--- a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html
+++ b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html
@@ -21,7 +21,8 @@
>>;
-
- ngOnInit(): void {
- this.volumes$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isVolumeOfJournal');
- }
}
diff --git a/src/app/entity-groups/research-entities/item-pages/orgunit/orgunit.component.html b/src/app/entity-groups/research-entities/item-pages/orgunit/orgunit.component.html
index 91e9fa0374..a3d2fedb10 100644
--- a/src/app/entity-groups/research-entities/item-pages/orgunit/orgunit.component.html
+++ b/src/app/entity-groups/research-entities/item-pages/orgunit/orgunit.component.html
@@ -25,15 +25,18 @@
>>;
-
- /**
- * The projects related to this organisation unit
- */
- projects$: Observable>>;
-
- /**
- * The publications related to this organisation unit
- */
- publications$: Observable>>;
-
- ngOnInit(): void {
- this.people$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPersonOfOrgUnit');
- this.projects$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isProjectOfOrgUnit');
- this.publications$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPublicationOfOrgUnit');
- }
+export class OrgunitComponent extends ItemComponent {
}
diff --git a/src/app/entity-groups/research-entities/item-pages/person/person.component.html b/src/app/entity-groups/research-entities/item-pages/person/person.component.html
index ba6b83bbf6..3f0ca90368 100644
--- a/src/app/entity-groups/research-entities/item-pages/person/person.component.html
+++ b/src/app/entity-groups/research-entities/item-pages/person/person.component.html
@@ -25,11 +25,13 @@
>>;
-
- /**
- * The projects related to this person
- */
- projects$: Observable>>;
-
- /**
- * The organisation units related to this person
- */
- orgUnits$: Observable>>;
-
- ngOnInit(): void {
- this.publications$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPublicationOfAuthor');
- this.projects$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isProjectOfPerson');
- this.orgUnits$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isOrgUnitOfPerson');
- }
}
diff --git a/src/app/entity-groups/research-entities/item-pages/project/project.component.html b/src/app/entity-groups/research-entities/item-pages/project/project.component.html
index c6eb0690ce..3ca36b9afd 100644
--- a/src/app/entity-groups/research-entities/item-pages/project/project.component.html
+++ b/src/app/entity-groups/research-entities/item-pages/project/project.component.html
@@ -29,15 +29,18 @@
>>;
- /**
- * The people related to this project
- */
- people$: Observable>>;
-
- /**
- * The publications related to this project
- */
- publications$: Observable>>;
-
- /**
- * The organisation units related to this project
- */
- orgUnits$: Observable>>;
-
ngOnInit(): void {
this.contributors$ = this.buildRepresentations('OrgUnit', 'project.contributor.other', 'isOrgUnitOfProject');
-
- this.people$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPersonOfProject');
- this.publications$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isPublicationOfProject');
- this.orgUnits$ = this.relationshipService.getRelatedItemsByLabel(this.item, 'isOrgUnitOfProject');
}
}