mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Made private constructor arguments protected to be accessible in themed components
This commit is contained in:
@@ -59,8 +59,10 @@ export class MetadataRepresentationListComponent extends AbstractIncrementalList
|
|||||||
*/
|
*/
|
||||||
total: number;
|
total: number;
|
||||||
|
|
||||||
constructor(public relationshipService: RelationshipDataService,
|
constructor(
|
||||||
private browseDefinitionDataService: BrowseDefinitionDataService) {
|
public relationshipService: RelationshipDataService,
|
||||||
|
protected browseDefinitionDataService: BrowseDefinitionDataService,
|
||||||
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -124,12 +124,13 @@ export class DsDynamicLookupRelationExternalSourceTabComponent implements OnInit
|
|||||||
*/
|
*/
|
||||||
relatedEntityType: ItemType;
|
relatedEntityType: ItemType;
|
||||||
|
|
||||||
constructor(private router: Router,
|
constructor(
|
||||||
|
protected router: Router,
|
||||||
public searchConfigService: SearchConfigurationService,
|
public searchConfigService: SearchConfigurationService,
|
||||||
private externalSourceService: ExternalSourceDataService,
|
protected externalSourceService: ExternalSourceDataService,
|
||||||
private modalService: NgbModal,
|
protected modalService: NgbModal,
|
||||||
private selectableListService: SelectableListService,
|
protected selectableListService: SelectableListService,
|
||||||
private paginationService: PaginationService
|
protected paginationService: PaginationService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -147,12 +147,12 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
|
|||||||
@Output() resultFound: EventEmitter<SearchObjects<DSpaceObject>> = new EventEmitter<SearchObjects<DSpaceObject>>();
|
@Output() resultFound: EventEmitter<SearchObjects<DSpaceObject>> = new EventEmitter<SearchObjects<DSpaceObject>>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private searchService: SearchService,
|
protected searchService: SearchService,
|
||||||
private selectableListService: SelectableListService,
|
protected selectableListService: SelectableListService,
|
||||||
public searchConfigService: SearchConfigurationService,
|
public searchConfigService: SearchConfigurationService,
|
||||||
public lookupRelationService: LookupRelationService,
|
public lookupRelationService: LookupRelationService,
|
||||||
private relationshipService: RelationshipDataService,
|
protected relationshipService: RelationshipDataService,
|
||||||
private paginationService: PaginationService
|
protected paginationService: PaginationService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -74,12 +74,13 @@ export class SearchFormComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
@Output() submitSearch = new EventEmitter<any>();
|
@Output() submitSearch = new EventEmitter<any>();
|
||||||
|
|
||||||
constructor(private router: Router,
|
constructor(
|
||||||
private searchService: SearchService,
|
protected router: Router,
|
||||||
private paginationService: PaginationService,
|
protected searchService: SearchService,
|
||||||
private searchConfig: SearchConfigurationService,
|
protected paginationService: PaginationService,
|
||||||
private modalService: NgbModal,
|
protected searchConfig: SearchConfigurationService,
|
||||||
private dsoService: DSpaceObjectDataService
|
protected modalService: NgbModal,
|
||||||
|
protected dsoService: DSpaceObjectDataService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +121,7 @@ export class SearchFormComponent implements OnInit {
|
|||||||
updateSearch(data: any) {
|
updateSearch(data: any) {
|
||||||
const queryParams = Object.assign({}, data);
|
const queryParams = Object.assign({}, data);
|
||||||
|
|
||||||
this.router.navigate(this.getSearchLinkParts(), {
|
void this.router.navigate(this.getSearchLinkParts(), {
|
||||||
queryParams: queryParams,
|
queryParams: queryParams,
|
||||||
queryParamsHandling: 'merge'
|
queryParamsHandling: 'merge'
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user