diff --git a/portal-2/src/app/deposit/deposit.module.ts b/portal-2/src/app/deposit/deposit.module.ts index eef2e6c4..c60f9ca6 100644 --- a/portal-2/src/app/deposit/deposit.module.ts +++ b/portal-2/src/app/deposit/deposit.module.ts @@ -9,13 +9,16 @@ import { DepositResultComponent } from './depositResult.component'; import {EntitiesAutocompleteModule} from '../utils/entitiesAutoComplete/entitiesAutoComplete.module'; import {DataProvidersServiceModule} from '../services/dataProvidersService.module'; import {OrganizationServiceModule} from '../services/organizationService.module'; +import {SearchResultsModule } from '../searchPages/searchUtils/searchResults.module'; + @NgModule({ imports: [ CommonModule, FormsModule, EntitiesAutocompleteModule, DataProvidersServiceModule, - OrganizationServiceModule + OrganizationServiceModule, + SearchResultsModule ], declarations: [ DepositComponent, diff --git a/portal-2/src/app/deposit/depositResult.component.ts b/portal-2/src/app/deposit/depositResult.component.ts index fed7733c..fc7f429e 100644 --- a/portal-2/src/app/deposit/depositResult.component.ts +++ b/portal-2/src/app/deposit/depositResult.component.ts @@ -39,7 +39,10 @@ import {OrganizationService} from '../services/organization.service';
Please use the information/contacts shown below to deposit your {{requestFor}}.
- +@@ -27,6 +30,7 @@ import { ErrorCodes} from '../../utils/properties/openaireProperties'; + {{author['name']}}; @@ -126,16 +130,16 @@ export class SearchResultComponent { @Input() totalResults: number; @Input() results: SearchResult[]; @Input() status: number; - errorCodes:ErrorCodes = new ErrorCodes(); + @Input() type: string; + @Input() urlParam: string; + public errorCodes:ErrorCodes = new ErrorCodes(); + public routerHelper:RouterHelper = new RouterHelper(); public errorMessage: string = "No results found"; - constructor () { + constructor () { - } + } - ngOnInit() { - - console.info("Heeey!!"); - } + ngOnInit() {} } diff --git a/portal-2/src/app/searchPages/searchUtils/searchResults.module.ts b/portal-2/src/app/searchPages/searchUtils/searchResults.module.ts index 20f5a810..9500efb0 100644 --- a/portal-2/src/app/searchPages/searchUtils/searchResults.module.ts +++ b/portal-2/src/app/searchPages/searchUtils/searchResults.module.ts @@ -7,10 +7,12 @@ import {SearchResult} from '../../utils/entities/searchResult'; // import {SearchDownloadComponent} from './searchDownload.component'; import {SearchResultComponent} from './searchResult.component'; // import{PagingModule} from '../../utils/paging.module'; +import { RouterModule } from '@angular/router'; @NgModule({ imports: [ - CommonModule, FormsModule + CommonModule, FormsModule, + RouterModule // ,PagingModule ], declarations: [ diff --git a/portal-2/src/app/searchPages/simple/searchDataproviders.component.ts b/portal-2/src/app/searchPages/simple/searchDataproviders.component.ts index ab606413..38342979 100644 --- a/portal-2/src/app/searchPages/simple/searchDataproviders.component.ts +++ b/portal-2/src/app/searchPages/simple/searchDataproviders.component.ts @@ -14,7 +14,8 @@ import {SearchUtilsClass } from '../searchUtils/searchUtils.class'; selector: 'search-dataproviders', template: ` -