Add - Get more recent publications
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50568 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
6ede5c03e9
commit
3725a1c09a
|
@ -26,6 +26,7 @@ NavigationBarModule, FeedbackModule, BottomModule,
|
||||||
CookieLawModule,
|
CookieLawModule,
|
||||||
BrowserModule.withServerTransition({appId: 'my-app'}),
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
||||||
RouterModule.forRoot([
|
RouterModule.forRoot([
|
||||||
|
// { path: '', loadChildren: './community/community.module#CommunityModule'},
|
||||||
{ path: '', loadChildren: './home/home.module#HomeModule'},
|
{ path: '', loadChildren: './home/home.module#HomeModule'},
|
||||||
{ path: 'home', loadChildren: './home/home.module#HomeModule'},
|
{ path: 'home', loadChildren: './home/home.module#HomeModule'},
|
||||||
{ path: 'community', loadChildren: './community/community.module#CommunityModule'},
|
{ path: 'community', loadChildren: './community/community.module#CommunityModule'},
|
||||||
|
|
|
@ -56,17 +56,22 @@
|
||||||
</h3>
|
</h3>
|
||||||
<!--test-->
|
<!--test-->
|
||||||
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
|
<li *ngFor="let item of publicationsInfo; let i = index">
|
||||||
<div class="uk-first-column">
|
<div class="uk-first-column">
|
||||||
<div class="el-item uk-panel">
|
<div class="el-item uk-panel">
|
||||||
<h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
|
<h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
|
||||||
Aaltodoc Publication Archive
|
{{item.result["metadata"]["oaf:entity"]["oaf:result"]["title"]["content"]}}
|
||||||
</h6>
|
</h6>
|
||||||
<div class="el-meta uk-margin uk-text-meta">Aalto University</div>
|
<div class="el-content uk-margin"><span class=" uk-label uk-label-danger">{{item.result["metadata"]["oaf:entity"]["oaf:result"]["bestaccessright"]["classid"]}}</span><br></div>
|
||||||
<div class="el-content uk-margin"><span class="uk-label">IR</span> <span class=" uk-label uk-label-danger">Data</span> <span class="uk-label uk-label-success">OpenAIRE 3.0</span><br>
|
<!--authors-->
|
||||||
12469 datasets
|
<div *ngFor='let item1 of item.result["metadata"]["oaf:entity"]["oaf:result"]["creator"]; let i = index'>
|
||||||
</div>
|
<div class="el-meta uk-margin uk-text-meta">{{item1["content"]}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="el-meta uk-margin uk-text-meta"> {{item.result["metadata"]["oaf:entity"]["oaf:result"]["dateofacceptance"]}} </div>
|
||||||
|
<div class="text-justify descriptionText"> {{item.result["metadata"]["oaf:entity"]["oaf:result"]["description"]}} </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
</div>
|
</div>
|
||||||
<!--end of test-->
|
<!--end of test-->
|
||||||
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
|
@ -105,6 +110,25 @@
|
||||||
<span>Most recent research data</span>
|
<span>Most recent research data</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
<!-- <div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
|
<li *ngFor="let item2 of researchDataInfo; let i = index">
|
||||||
|
<div class="uk-first-column">
|
||||||
|
<div class="el-item uk-panel">
|
||||||
|
<h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
|
||||||
|
{{item2.result["metadata"]["oaf:entity"]["oaf:result"]["title"]["content"]}}
|
||||||
|
</h6>
|
||||||
|
<div class="el-content uk-margin"><span class=" uk-label uk-label-danger">{{item2.result["metadata"]["oaf:entity"]["oaf:result"]["bestaccessright"]["classid"]}}</span><br></div>
|
||||||
|
<!--authors-->
|
||||||
|
<!-- <div *ngFor='let item3 of item2.result["metadata"]["oaf:entity"]["oaf:result"]["creator"]; let i = index'>
|
||||||
|
<div class="el-meta uk-margin uk-text-meta">{{item3["content"]}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="el-meta uk-margin uk-text-meta"> {{item2.result["metadata"]["oaf:entity"]["oaf:result"]["dateofacceptance"]}} </div>
|
||||||
|
<div class="text-justify descriptionText"> {{item2.result["metadata"]["oaf:entity"]["oaf:result"]["description"]}} </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
<div class="uk-first-column">
|
<div class="uk-first-column">
|
||||||
<div class="el-item uk-panel">
|
<div class="el-item uk-panel">
|
||||||
|
@ -131,6 +155,26 @@
|
||||||
<span>Most recent software</span>
|
<span>Most recent software</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
<!-- <div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
|
<li *ngFor="let item4 of publicationsInfo; let i = index">
|
||||||
|
<div class="uk-first-column">
|
||||||
|
<div class="el-item uk-panel">
|
||||||
|
<h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
|
||||||
|
{{item4.result["metadata"]["oaf:entity"]["oaf:result"]["title"]["content"]}}
|
||||||
|
</h6>
|
||||||
|
<div class="el-content uk-margin"><span class=" uk-label uk-label-danger">{{item4.result["metadata"]["oaf:entity"]["oaf:result"]["bestaccessright"]["classid"]}}</span><br></div>
|
||||||
|
<!--authors-->
|
||||||
|
<!-- <div *ngFor='let item4 of item5.result["metadata"]["oaf:entity"]["oaf:result"]["creator"]; let i = index'>
|
||||||
|
<div class="el-meta uk-margin uk-text-meta">{{item4["content"]}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="el-meta uk-margin uk-text-meta"> {{item4.result["metadata"]["oaf:entity"]["oaf:result"]["dateofacceptance"]}} </div>
|
||||||
|
<div class="text-justify descriptionText"> {{item4.result["metadata"]["oaf:entity"]["oaf:result"]["description"]}} </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
<div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
|
||||||
<div class="uk-first-column">
|
<div class="uk-first-column">
|
||||||
<div class="el-item uk-panel">
|
<div class="el-item uk-panel">
|
||||||
|
|
|
@ -9,6 +9,7 @@ import { ErrorCodes, RouterHelper, PiwikService} from 'ng-openaire-library';
|
||||||
import {Properties} from '../utils/properties';
|
import {Properties} from '../utils/properties';
|
||||||
import {CommunityService} from "./community.service";
|
import {CommunityService} from "./community.service";
|
||||||
|
|
||||||
|
//import { PublicationInfo } from '../../publicationInfo';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'community',
|
selector: 'community',
|
||||||
|
@ -24,6 +25,10 @@ export class CommunityComponent {
|
||||||
public reasearchData=[];
|
public reasearchData=[];
|
||||||
public software=[];
|
public software=[];
|
||||||
public publicationsInfo=[];
|
public publicationsInfo=[];
|
||||||
|
public researchDataInfo=[];
|
||||||
|
public softwareInfo=[];
|
||||||
|
|
||||||
|
//public publicationsInfo: PublicationInfo[] = [];
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
@ -75,6 +80,24 @@ export class CommunityComponent {
|
||||||
this.publicationsInfo = publicationsInfo;
|
this.publicationsInfo = publicationsInfo;
|
||||||
console.log(publicationsInfo);
|
console.log(publicationsInfo);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._communityService.getResearchDataInfo().subscribe(
|
||||||
|
researchDataInfo => {
|
||||||
|
this.researchDataInfo = researchDataInfo;
|
||||||
|
console.log(researchDataInfo);
|
||||||
|
});
|
||||||
|
|
||||||
|
this._communityService.getSoftwareInfo().subscribe(
|
||||||
|
softwareInfo => {
|
||||||
|
this.softwareInfo = softwareInfo;
|
||||||
|
console.log(softwareInfo);
|
||||||
|
});
|
||||||
|
|
||||||
|
// this._communityService
|
||||||
|
// .getPublicationInfo('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/publications?fq=communityid exact "egi"&sortBy=resultdateofacceptance,descending&format=json')
|
||||||
|
// .subscribe(
|
||||||
|
//
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
public ngOnDestroy() {
|
public ngOnDestroy() {
|
||||||
if(this.piwiksub){
|
if(this.piwiksub){
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
|
||||||
import { Http, Response, Headers, RequestOptions } from '@angular/http';
|
import { Http, Response, Headers, RequestOptions } from '@angular/http';
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
|
|
||||||
|
import { PublicationInfo } from '../../publicationInfo';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CommunityService {
|
export class CommunityService {
|
||||||
|
@ -26,8 +27,23 @@ export class CommunityService {
|
||||||
.map(res => <any> res.json()).do(res => {console.log(res)});
|
.map(res => <any> res.json()).do(res => {console.log(res)});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getResearchDataInfo() {
|
||||||
|
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/datasets?fq=communityid exact "egi"&sortBy=resultdateofacceptance,descending&format=json')
|
||||||
|
.map(res => <any> res.json()).map(res => res.results).do(res => {console.log(res)});
|
||||||
|
}
|
||||||
|
|
||||||
getNumberOfSoftware() {
|
getNumberOfSoftware() {
|
||||||
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/software/count?format=json&fq=communityid=egi')
|
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/software/count?format=json&fq=communityid=egi')
|
||||||
.map(res => <any> res.json()).do(res => {console.log(res)});
|
.map(res => <any> res.json()).do(res => {console.log(res)});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getSoftwareInfo() {
|
||||||
|
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/software?fq=communityid exact "egi"&sortBy=resultdateofacceptance,descending&format=json')
|
||||||
|
.map(res => <any> res.json()).map(res => res.results).do(res => {console.log(res)});
|
||||||
|
}
|
||||||
|
|
||||||
|
// getPublicationInfo(url: string) {
|
||||||
|
// return this.http.get(url).map(res => <any> res.json()).map(res => res.results).do(res => {console.log(res)});
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue