[Trunk | Explore]:

1. advancedSearchDatasets & advancedSearchOrps & advancedSearchPublications & advancedSearchSoftware: Use common advanced search page for research results (advancedSearchResearchResults).
2. searchDatasets & searchOrps & searchPublications & searchSoftware: Use common simple search page for research results (searchResearchResults).


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@57032 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-09-11 11:11:46 +00:00
parent 4e2eb8f8ed
commit 00ebb40083
16 changed files with 56 additions and 85 deletions

View File

@ -1,12 +1,10 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-advanced-search-datasets',
template: `
<advanced-search-datasets>
</advanced-search-datasets>
<advanced-search-research-results resultType="dataset"></advanced-search-research-results>
`
})

View File

@ -5,17 +5,14 @@ import { FormsModule } from '@angular/forms';
import {AdvancedSearchDatasetsRoutingModule} from './advancedSearchDatasets-routing.module';
import {OpenaireAdvancedSearchDatasetsComponent} from './advancedSearchDatasets.component';
import {AdvancedSearchDatasetsModule } from '../../openaireLibrary/searchPages/advanced/advancedSearchDatasets.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
AdvancedSearchDatasetsModule,
AdvancedSearchDatasetsRoutingModule
AdvancedSearchDatasetsRoutingModule, AdvancedSearchResearchResultsModule
],
declarations: [

View File

@ -1,12 +1,10 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-advanced-search-orps',
template: `
<advanced-search-orps>
</advanced-search-orps>
<advanced-search-research-results resultType="other"></advanced-search-research-results>
`
})

View File

@ -5,17 +5,15 @@ import { FormsModule } from '@angular/forms';
import {AdvancedSearchOrpsRoutingModule} from './advancedSearchOrps-routing.module';
import {OpenaireAdvancedSearchOrpsComponent} from './advancedSearchOrps.component';
import {AdvancedSearchOrpsModule } from '../../openaireLibrary/searchPages/advanced/advancedSearchOrps.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
AdvancedSearchOrpsModule,
AdvancedSearchOrpsRoutingModule
AdvancedSearchOrpsRoutingModule, SearchResearchResultsModule, AdvancedSearchResearchResultsModule
],
declarations: [

View File

@ -1,11 +1,10 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-advanced-search-publications',
template: `
<advanced-search-publications>
</advanced-search-publications>
<advanced-search-research-results resultType="publication"></advanced-search-research-results>
`
})

View File

@ -5,17 +5,14 @@ import { FormsModule } from '@angular/forms';
import {AdvancedSearchPublicationsRoutingModule} from './advancedSearchPublications-routing.module';
import {OpenaireAdvancedSearchPublicationsComponent} from './advancedSearchPublications.component';
import {AdvancedSearchPublicationsModule } from '../../openaireLibrary/searchPages/advanced/advancedSearchPublications.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
AdvancedSearchPublicationsModule,
AdvancedSearchPublicationsRoutingModule
AdvancedSearchPublicationsRoutingModule, AdvancedSearchResearchResultsModule
],
declarations: [

View File

@ -1,11 +1,9 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-advanced-search-software',
template: `
<advanced-search-software>
</advanced-search-software>
<advanced-search-research-results resultType="software"></advanced-search-research-results>
`
})

View File

@ -5,24 +5,21 @@ import { FormsModule } from '@angular/forms';
import {AdvancedSearchSoftwareRoutingModule} from './advancedSearchSoftware-routing.module';
import {OpenaireAdvancedSearchSoftwareComponent} from './advancedSearchSoftware.component';
import {AdvancedSearchSoftwareModule } from '../../openaireLibrary/searchPages/advanced/advancedSearchSoftware.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
AdvancedSearchSoftwareModule,
AdvancedSearchSoftwareRoutingModule
AdvancedSearchSoftwareRoutingModule, AdvancedSearchResearchResultsModule
],
declarations: [
OpenaireAdvancedSearchSoftwareComponent
],
providers:[FreeGuard
],
providers:[FreeGuard, IsRouteEnabled],
exports: [
OpenaireAdvancedSearchSoftwareComponent
]

View File

@ -1,11 +1,9 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-search-datasets',
template: `
<search-datasets>
</search-datasets>
<search-research-results resultType="dataset"></search-research-results>
`
})

View File

@ -5,16 +5,16 @@ import { FormsModule } from '@angular/forms';
import {SearchDatasetsRoutingModule} from './searchDatasets-routing.module';
import {OpenaireSearchDatasetsComponent} from './searchDatasets.component';
import {SearchDatasetsModule} from '../../openaireLibrary/searchPages/simple/searchDatasets.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
SearchDatasetsModule , SearchDatasetsRoutingModule
SearchDatasetsRoutingModule, SearchResearchResultsModule
],
declarations: [

View File

@ -1,11 +1,9 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-search-orps',
template: `
<search-orps>
</search-orps>
<search-research-results resultType="other"></search-research-results>
`
})

View File

@ -5,16 +5,16 @@ import { FormsModule } from '@angular/forms';
import{ SearchOrpsRoutingModule} from './searchOrps-routing.module';
import{OpenaireSearchOrpsComponent} from './searchOrps.component';
import {SearchOrpsModule} from '../../openaireLibrary/searchPages/simple/searchOrps.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule,
SearchOrpsModule , SearchOrpsRoutingModule
SearchOrpsRoutingModule, SearchResearchResultsModule
],
declarations: [

View File

@ -1,12 +1,9 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-search-publications',
template: `
<search-publications>
</search-publications>
<search-research-results resultType="publication"></search-research-results>
`
})

View File

@ -5,16 +5,15 @@ import { FormsModule } from '@angular/forms';
import{ SearchPublicationsRoutingModule} from './searchPublications-routing.module';
import{OpenaireSearchPublicationsComponent} from './searchPublications.component';
import { SearchPublicationsModule} from '../../openaireLibrary/searchPages/simple/searchPublications.module';
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule, SearchPublicationsModule,
SearchPublicationsRoutingModule
CommonModule, FormsModule,
SearchPublicationsRoutingModule, SearchResearchResultsModule
],
declarations: [

View File

@ -1,11 +1,9 @@
import {Component, Input, ViewChild} from '@angular/core';
import {Component} from '@angular/core';
@Component({
selector: 'openaire-search-software',
template: `
<search-software>
</search-software>
<search-research-results resultType="software"></search-research-results>
`
})

View File

@ -8,12 +8,11 @@ import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
import { SearchSoftwareModule} from '../../openaireLibrary/searchPages/simple/searchSoftware.module';
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
@NgModule({
imports: [
CommonModule, FormsModule, SearchSoftwareModule, SearchSoftwareRoutingModule
CommonModule, FormsModule, SearchSoftwareRoutingModule, SearchResearchResultsModule
],
declarations: [
OpenaireSearchSoftwareComponent