Project

General

Profile

« Previous | Next » 

Revision 52813

Add landing, search and advanced search page for 'Other Research Products' (using components of library).

View differences:

modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/advanced/advancedSearchOrps.component.ts
1
import {Component, Input, ViewChild} from '@angular/core';
2

  
3

  
4
@Component({
5
    selector: 'openaire-advanced-search-orps',
6
    template: `
7
    <advanced-search-orps>
8
    </advanced-search-orps>
9

  
10
    `
11
 })
12

  
13
export class OpenaireAdvancedSearchOrpsComponent { 
14

  
15

  
16
}
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/advanced/advancedSearchOrps-routing.module.ts
1
import { NgModule } from '@angular/core';
2
import { RouterModule } from '@angular/router';
3

  
4
import{OpenaireAdvancedSearchOrpsComponent} from './advancedSearchOrps.component';
5
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
6
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
7
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
8

  
9

  
10
@NgModule({
11
  imports: [
12
    RouterModule.forChild([
13
     	{ path: '', component: OpenaireAdvancedSearchOrpsComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
14
          redirect: '/error',  community : 'openaire'
15
        }, canDeactivate: [PreviousRouteRecorder] }
16

  
17
    ])
18
  ]
19
})
20
export class AdvancedSearchOrpsRoutingModule { }
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/advanced/advancedSearchOrps.module.ts
1
import { NgModule}            from '@angular/core';
2
import { CommonModule }        from '@angular/common';
3
import { FormsModule }         from '@angular/forms';
4

  
5
import { AdvancedSearchOrpsRoutingModule} from './advancedSearchOrps-routing.module';
6
import { OpenaireAdvancedSearchOrpsComponent} from './advancedSearchOrps.component';
7

  
8

  
9
 import {AdvancedSearchOrpsModule } from '../../openaireLibrary/searchPages/advanced/advancedSearchOrps.module';
10
 import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
11
 import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
12
 import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
13

  
14
@NgModule({
15
  imports: [
16
    CommonModule, FormsModule,
17
    AdvancedSearchOrpsModule,
18
    AdvancedSearchOrpsRoutingModule
19

  
20
  ],
21
  declarations: [
22
    OpenaireAdvancedSearchOrpsComponent
23
   ],
24
  providers:[FreeGuard, IsRouteEnabled],
25
  exports: [
26
    OpenaireAdvancedSearchOrpsComponent
27
     ]
28
})
29
export class LibAdvancedSearchOrpsModule { }
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/simple/searchOrps.module.ts
1
import { NgModule}            from '@angular/core';
2
import { CommonModule }        from '@angular/common';
3
import { FormsModule }         from '@angular/forms';
4

  
5
import{ SearchOrpsRoutingModule} from './searchOrps-routing.module';
6
import{OpenaireSearchOrpsComponent} from './searchOrps.component';
7

  
8
import {SearchOrpsModule} from '../../openaireLibrary/searchPages/simple/searchOrps.module';
9
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
10
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
11
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
12

  
13

  
14
@NgModule({
15
  imports: [
16
    CommonModule, FormsModule,
17
  SearchOrpsModule , SearchOrpsRoutingModule
18

  
19
  ],
20
  declarations: [
21
    OpenaireSearchOrpsComponent
22
   ],
23
  providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
24
  exports: [
25
    OpenaireSearchOrpsComponent
26
     ]
27
})
28
export class LibSearchOrpsModule { }
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/simple/searchOrps.component.ts
1
import {Component, Input, ViewChild} from '@angular/core';
2

  
3
@Component({
4
    selector: 'openaire-search-orps',
5
    template: `
6

  
7
    <search-orps>
8
    </search-orps>
9
    `
10
})
11

  
12
export class OpenaireSearchOrpsComponent {
13

  
14
}
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/searchPages/simple/searchOrps-routing.module.ts
1
import { NgModule } from '@angular/core';
2
import { RouterModule } from '@angular/router';
3

  
4
import{OpenaireSearchOrpsComponent} from './searchOrps.component';
5
import { EnvironmentSpecificResolver} from '../../openaireLibrary/utils/properties/environmentSpecificResolver';
6

  
7
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
8
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
9
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
10

  
11

  
12

  
13
@NgModule({
14
  imports: [
15
    RouterModule.forChild([
16
     	{ path: '', component: OpenaireSearchOrpsComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
17
          redirect: '/error',  community : 'openaire'
18
        }, canDeactivate: [PreviousRouteRecorder] , resolve: { envSpecific: EnvironmentSpecificResolver  }},
19

  
20
    ])
21
  ]
22
})
23
export class SearchOrpsRoutingModule { }
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/landingPages/orp/libOrp.module.ts
1
//import {MaterialModule} from '@angular/material';
2
import { NgModule}            from '@angular/core';
3
import { CommonModule }        from '@angular/common';
4
import { FormsModule }         from '@angular/forms';
5
import { SharedModule } from '../../shared/shared.module';
6
import { RouterModule } from '@angular/router';
7
import { OrpModule  } from '../../openaireLibrary/landingPages/orp/orp.module';
8
import { OpenaireOrpComponent } from './orp.component';
9
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
10
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
11
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
12
import {OrpRoutingModule} from './orp-routing.module';
13
 @NgModule({
14
  imports: [OrpModule, OrpRoutingModule],
15
  declarations:[OpenaireOrpComponent],
16
  providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
17
  exports:[OpenaireOrpComponent]
18
})
19
export class LibOrpModule { }
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/landingPages/orp/orp.component.ts
1
import {Component, ViewChild, ElementRef} from '@angular/core';
2

  
3
@Component({
4
    selector: 'openaire-orp',
5
    template: `<orp></orp>`,
6
 })
7
export class OpenaireOrpComponent{
8
  constructor (  ) {
9

  
10
  }
11

  
12
  ngOnInit() {
13
}
14

  
15

  
16

  
17
}
modules/uoa-services-portal/trunk/portal-4cli-lib/src/app/landingPages/orp/orp-routing.module.ts
1
import { NgModule } from '@angular/core';
2
import { RouterModule } from '@angular/router';
3

  
4
import { OpenaireOrpComponent } from './orp.component';
5
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
6
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
7
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
8

  
9

  
10
@NgModule({
11
 imports: [
12
  RouterModule.forChild([
13
    { path: '', component: OpenaireOrpComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
14
        redirect: '/error',  community : 'openaire'
15
      },canDeactivate: [PreviousRouteRecorder] }
16
  ])
17
]
18
})
19
export class OrpRoutingModule { }

Also available in: Unified diff