Get number of publications from rudie's json
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50447 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
e2857a2409
commit
7a95759394
|
@ -12,6 +12,8 @@ import {NavigationBarModule, FeedbackModule, BottomModule, CookieLawModule, Erro
|
|||
|
||||
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
||||
|
||||
import { CommunityService } from './community/community.service';
|
||||
|
||||
@NgModule({
|
||||
|
||||
imports: [
|
||||
|
@ -72,7 +74,7 @@ NavigationBarModule, FeedbackModule, BottomModule,
|
|||
],
|
||||
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
||||
exports: [ AppComponent ],
|
||||
providers:[ ],
|
||||
providers:[ CommunityService ],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
//
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-grid" uk-grid="">
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-card-small uk-card-body">
|
||||
<a><h3 class="uk-card-title">3258</h3>
|
||||
<a><h3 class="uk-card-title">{{res.total}}</h3>
|
||||
<p>publications</p></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,6 +7,7 @@ import { Meta, MetaDefinition, ConfigurationService} from 'ng-openaire-library';
|
|||
|
||||
import { ErrorCodes, RouterHelper, PiwikService} from 'ng-openaire-library';
|
||||
import {Properties} from '../utils/properties';
|
||||
import {CommunityService} from "./community.service";
|
||||
|
||||
|
||||
@Component({
|
||||
|
@ -19,13 +20,14 @@ export class CommunityComponent {
|
|||
|
||||
public pageTitle = "OpenAIRE"
|
||||
|
||||
|
||||
public res=[];
|
||||
|
||||
constructor (
|
||||
private route: ActivatedRoute,
|
||||
private _router: Router,
|
||||
private location: Location, private _meta: Meta,private _piwikService:PiwikService,
|
||||
private config: ConfigurationService
|
||||
private config: ConfigurationService,
|
||||
private _communityService:CommunityService
|
||||
) {
|
||||
|
||||
var description = "open access, research, scientific publication, European Commission, EC, FP7, ERC, Horizon 2020, H2020, search, projects ";
|
||||
|
@ -47,6 +49,11 @@ export class CommunityComponent {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this._communityService.getNumberOfPublications().subscribe(
|
||||
res => {
|
||||
this.res = res;
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
public ngOnDestroy() {
|
||||
if(this.piwiksub){
|
||||
|
|
Loading…
Reference in New Issue