removing unused vocabularies json files | use reportsService for downloading csv reprts | change statstab in Dataproviders to load on click
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@45518 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
fbec1a8185
commit
9059f2942e
|
@ -20,7 +20,7 @@
|
|||
"ngc": "ngc -p tsconfig.aot.json",
|
||||
"prestart": "npm run build",
|
||||
"minify": "uglifyjs dist/client/main.bundle.js --screw-ie8 --compress --mangle --output dist/client/main.bundle.min.js",
|
||||
"minify-test": "uglifyjs dist/client/main.js --screw-ie8 --compress --mangle --output dist/client/main.xmin.js",
|
||||
"minify-test": "uglifyjs dist/client/main.bundle.js --output dist/client/main.xmin.js",
|
||||
"server": "nodemon dist/server/index.js",
|
||||
"debug:server": "node-nightly --inspect --debug-brk dist/server/index.js",
|
||||
"start": "npm run server",
|
||||
|
|
|
@ -6,35 +6,38 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
|||
@Component({
|
||||
selector: 'statisticsTab',
|
||||
template: `
|
||||
<div *ngIf="searchPublicationsComponent.searchUtils.totalResults == 0 && searchDatasetsComponent.searchUtils.totalResults == 0" class = "uk-alert">
|
||||
There are no statistics
|
||||
<div *ngIf="show">
|
||||
<div *ngIf="searchPublicationsComponent.searchUtils.totalResults == 0 && searchDatasetsComponent.searchUtils.totalResults == 0" class = "uk-alert">
|
||||
There are no statistics
|
||||
</div>
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults != 0 || searchDatasetsComponent.searchUtils.totalResults != 0)">
|
||||
<p>
|
||||
The results below are discovered through our pilot algorithms.
|
||||
<a href="mailto:">Let us know how we are doing!</a>
|
||||
</p>
|
||||
<p class="uk-text-bold">Latest Documents Timeline</p>
|
||||
<i-frame [url]=docsTimelineUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Documents Types</p>
|
||||
<i-frame [url]=docsTypesUrl width="800" height="350"></i-frame>
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Funders in Data Providers Publications</p>
|
||||
<i-frame [url]=pubsFunderUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Projects with most Publications</p>
|
||||
<i-frame [url]=pubsProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
<div *ngIf="(searchDatasetsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||
<i-frame [url]=dataProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults != 0 || searchDatasetsComponent.searchUtils.totalResults != 0)">
|
||||
<p>
|
||||
The results below are discovered through our pilot algorithms.
|
||||
<a href="mailto:">Let us know how we are doing!</a>
|
||||
</p>
|
||||
<p class="uk-text-bold">Latest Documents Timeline</p>
|
||||
<i-frame [url]=docsTimelineUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Documents Types</p>
|
||||
<i-frame [url]=docsTypesUrl width="800" height="350"></i-frame>
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults != 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Funders in Data Providers Publications</p>
|
||||
<i-frame [url]=pubsFunderUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Projects with most Publications</p>
|
||||
<i-frame [url]=pubsProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
<div *ngIf="(searchDatasetsComponent.searchUtils.totalResults != 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||
<i-frame [url]=dataProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
@ -45,25 +48,12 @@ export class StatisticsTabComponent {
|
|||
@Input() id;
|
||||
@Input() searchDatasetsComponent : SearchDatasetsComponent;
|
||||
@Input() searchPublicationsComponent : SearchPublicationsComponent;
|
||||
@Input() show : boolean = false;
|
||||
|
||||
// last docs timeline
|
||||
// (* if pubs and data)
|
||||
private docsTimelineUrl;
|
||||
|
||||
// document types:
|
||||
// (* if pubs and data)
|
||||
private docsTimelineUrl: string;
|
||||
private docsTypesUrl:string;
|
||||
//
|
||||
// publications funder
|
||||
// (* if pubs and projects)
|
||||
private pubsFunderUrl:string;
|
||||
//
|
||||
// projects with most research data
|
||||
// (* if data and projects)
|
||||
private dataProjectsUrl:string ;
|
||||
//
|
||||
// projects with most publications
|
||||
// (* if pubs and projects)
|
||||
private pubsProjectsUrl:string;
|
||||
constructor () {}
|
||||
|
||||
|
|
|
@ -76,9 +76,42 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
|||
[paramsForSearchLink]="paramsForSearchLink"
|
||||
[searchDatasetsComponent]="searchDatasetsComponent">
|
||||
</datasetsTab>
|
||||
<statisticsTab *ngIf="tabs[0].content=='statisticsTab'"
|
||||
[statistics]="statistics">
|
||||
</statisticsTab>
|
||||
<!--statisticsTab *ngIf="tabs[0].content=='statisticsTab'"
|
||||
[statistics]="statistics" [show]=statsClicked>
|
||||
</statisticsTab-- >
|
||||
<div *ngIf="tabs[0].content=='statisticsTab' && statsClicked">
|
||||
<div *ngIf="searchPublicationsComponent.searchUtils.totalResults == 0 && searchDatasetsComponent.searchUtils.totalResults == 0" class = "uk-alert">
|
||||
There are no statistics
|
||||
</div>
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults != 0 || searchDatasetsComponent.searchUtils.totalResults != 0)">
|
||||
<p>
|
||||
The results below are discovered through our pilot algorithms.
|
||||
<a href="mailto:">Let us know how we are doing!</a>
|
||||
</p>
|
||||
<p class="uk-text-bold">Latest Documents Timeline</p>
|
||||
<i-frame [url]=docsTimelineUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Documents Types</p>
|
||||
<i-frame [url]=docsTypesUrl width="800" height="350"></i-frame>
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Funders in Data Providers Publications</p>
|
||||
<i-frame [url]=pubsFunderUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Projects with most Publications</p>
|
||||
<i-frame [url]=pubsProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
<div *ngIf="(searchDatasetsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||
<i-frame [url]=dataProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<projectsTab *ngIf="tabs[0].content=='projectsTab'"
|
||||
[paramsForSearchLink]="paramsForSearchLink"
|
||||
[searchProjectsComponent]="searchProjectsComponent">
|
||||
|
@ -115,10 +148,43 @@ import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
|||
[paramsForSearchLink]="paramsForSearchLink"
|
||||
[searchDatasetsComponent]="searchDatasetsComponent">
|
||||
</datasetsTab>
|
||||
<statisticsTab *ngIf="i>0 && tab.content=='statisticsTab'"
|
||||
<!--statisticsTab *ngIf="i>0 && tab.content=='statisticsTab'"
|
||||
[searchPublicationsComponent] = "searchPublicationsComponent"
|
||||
[searchDatasetsComponent]="searchDatasetsComponent" [id]="id">
|
||||
</statisticsTab>
|
||||
</statisticsTab-->
|
||||
<div *ngIf="i>0 && tab.content=='statisticsTab' && statsClicked">
|
||||
<div *ngIf="searchPublicationsComponent.searchUtils.totalResults == 0 && searchDatasetsComponent.searchUtils.totalResults == 0" class = "uk-alert">
|
||||
There are no statistics
|
||||
</div>
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults != 0 || searchDatasetsComponent.searchUtils.totalResults != 0)">
|
||||
<p>
|
||||
The results below are discovered through our pilot algorithms.
|
||||
<a href="mailto:">Let us know how we are doing!</a>
|
||||
</p>
|
||||
<p class="uk-text-bold">Latest Documents Timeline</p>
|
||||
<i-frame [url]=docsTimelineUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Documents Types</p>
|
||||
<i-frame [url]=docsTypesUrl width="800" height="350"></i-frame>
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="(searchPublicationsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Funders in Data Providers Publications</p>
|
||||
<i-frame [url]=pubsFunderUrl width="800" height="350"></i-frame>
|
||||
<p class="uk-text-bold">Projects with most Publications</p>
|
||||
<i-frame [url]=pubsProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
<div *ngIf="(searchDatasetsComponent.searchUtils.totalResults > 0)">
|
||||
<div>
|
||||
<p class="uk-text-bold">Projects with most Research Data</p>
|
||||
<i-frame [url]=dataProjectsUrl width="800" height="350"></i-frame>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<projectsTab *ngIf="i>0 && tab.content=='projectsTab'"
|
||||
[paramsForSearchLink]="paramsForSearchLink"
|
||||
[searchProjectsComponent]="searchProjectsComponent">
|
||||
|
@ -170,6 +236,13 @@ export class TabsComponent {
|
|||
private viewsFrameUrl: string;
|
||||
private downloadsFrameUrl: string;
|
||||
|
||||
public statsClicked: boolean = false;
|
||||
private docsTimelineUrl: string;
|
||||
private docsTypesUrl:string;
|
||||
private pubsFunderUrl:string;
|
||||
private dataProjectsUrl:string ;
|
||||
private pubsProjectsUrl:string;
|
||||
|
||||
public searchPublicationsComponent : SearchPublicationsComponent;
|
||||
public searchDatasetsComponent: SearchDatasetsComponent;
|
||||
public searchProjectsComponent: SearchProjectsComponent;
|
||||
|
@ -196,6 +269,12 @@ export class TabsComponent {
|
|||
this.metricsClicked = false;
|
||||
this.viewsFrameUrl = OpenaireProperties.getFramesAPIURL()+'merge.php?com=query&data=[{"query":"dtsrcOpenAIRETimeline", "dtsrcName":"'+this.id+'", "table":"","fields":[{"fld":"sum","agg":"sum","type":"column","yaxis":1,"c":false}],"xaxis":{"name":"month","agg":"sum"},"group":"","color":"","type":"chart","size":30,"sort":"xaxis","xStyle":{"r":-30,"s":"0","l":"-","ft":"-","wt":"-"},"title":"","subtitle":"","xaxistitle":"OpenAIRE","yaxisheaders":["Monthly views"],"generalxaxis":"","theme":0,"in":[],"filters":[{"name":"","values":[""],"to":"-1"}]},{"query":"dtsrcRepoTimeline", "dtsrcName":"'+this.id+'", "table":"","fields":[{"fld":"sum","agg":"sum","type":"column","yaxis":1,"c":false}],"xaxis":{"name":"month","agg":"sum"},"group":" ","color":"","type":"chart","size":30,"sort":"xaxis","xStyle":{"r":-30,"s":"0","l":"-","ft":"-","wt":"-"},"title":"","subtitle":"","xaxistitle":"Repository","yaxisheaders":[""],"generalxaxis":"","theme":0,"in":[],"filters":[{"name":"","values":[""],"to":"-1"}]}]&info_types=["column","column"]&stacking=normal&steps=false&fontFamily=Courier&spacing=[5,0,0,0]&style=[{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"000000","size":""},{"color":"000000","size":""}]&backgroundColor=rgba(255,255,255,1)&colors[]=rgba(124, 181, 236, 1)&colors[]=rgba(67, 67, 72, 1)&colors[]=rgba(144, 237, 125, 1)&colors[]=rgba(247, 163, 92, 1)&colors[]=rgba(128, 133, 233, 1)&colors[]=rgba(241, 92, 128, 1)&colors[]=rgba(228, 211, 84, 1)&colors[]=rgba(43, 144, 143, 1)&colors[]=rgba(244, 91, 91, 1)&colors[]=rgba(145, 232, 225, 1)&xlinew=0&ylinew=1&legends=true&tooltips=true';
|
||||
this.downloadsFrameUrl = OpenaireProperties.getFramesAPIURL()+'merge.php?com=query&data=[{"query":"dtsrcDownloadsTimeline","dtsrcName":"'+this.id+'","table":"","fields":[{"fld":"sum","agg":"sum","type":"chart","yaxis":1,"c":false}],"xaxis":{"name":"month","agg":"sum"},"group":"","color":"","type":"chart","size":30,"sort":"xaxis","xStyle":{"r":-30,"s":"0","l":"-","ft":"-","wt":"-"},"title":"","subtitle":"","xaxistitle":"","yaxisheaders":["Monthly downloads"],"generalxaxis":"","theme":0,"in":[]}]&info_types=["spline"]&stacking=&steps=false&fontFamily=Courier&spacing=[5,0,0,0]&style=[{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"000000","size":""},{"color":"000000","size":""}]&backgroundColor=rgba(255,255,255,1)&colors[]=rgba(124, 181, 236, 1)&colors[]=rgba(67, 67, 72, 1)&colors[]=rgba(144, 237, 125, 1)&colors[]=rgba(247, 163, 92, 1)&colors[]=rgba(128, 133, 233, 1)&colors[]=rgba(241, 92, 128, 1)&colors[]=rgba(228, 211, 84, 1)&colors[]=rgba(43, 144, 143, 1)&colors[]=rgba(244, 91, 91, 1)&colors[]=rgba(145, 232, 225, 1)&xlinew=0&ylinew=1&legends=true&tooltips=true';
|
||||
|
||||
this.docsTimelineUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcYear","dtsrcName":"'+this.id+'","table": "result", "fields": [{"fld": "number", "agg": "count", "type": "line", "yaxis":1, "c":true}], "xaxis":{"name": "year", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [{"f":0, "text": "Yearly"}], "filters": [{"name":"year","max":"2016","min":"1997"},{"name": "result_datasources-datasource-name", "values":[""], "to": "-1"}],"having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": "Year"}&w=600&h=250';
|
||||
this.docsTypesUrl = 'https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcPubs","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=600&h=250';
|
||||
this.pubsFunderUrl =' https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcPubsFund","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Documents"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=600&h=250';
|
||||
this.dataProjectsUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcProjData","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Datasets"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=600&h=250';
|
||||
this.pubsProjectsUrl ='https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"dtsrcProjPubs","dtsrcName":"'+this.id+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "bar", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Publications"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [""], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}&w=600&h=250';
|
||||
}
|
||||
|
||||
if(this.resultsBy == "collectedFrom") {
|
||||
|
@ -237,6 +316,8 @@ export class TabsComponent {
|
|||
this.searchRelatedDatasources(1, 0);
|
||||
} else if(content=='metricsTab') {
|
||||
this.metricsClicked = true;
|
||||
} else if(content=='statisticsTab') {
|
||||
this.statsClicked = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -145,21 +145,24 @@
|
|||
<li>
|
||||
Share - Bookmark
|
||||
</li>
|
||||
<li></li>
|
||||
<div *ngIf="organizationInfo.projects != undefined">
|
||||
</ul>
|
||||
<ul *ngIf="organizationInfo.projects != undefined" class="uk-list uk-list-striped">
|
||||
<li *ngFor="let key of organizationInfo.projects.keys()">
|
||||
<a href="{{downloadURLAPI}}resources?size={{organizationInfo.projects.get(key).length}}&{{csvProjectParamsHead}}{{organizationInfo.projects.get(key)[0]['funderId']}}{{csvParamsTail}}">
|
||||
<!--a href="{{downloadURLAPI}}resources?size={{organizationInfo.projects.get(key).length}}&{{csvProjectParamsHead}}{{organizationInfo.projects.get(key)[0]['funderId']}}{{csvParamsTail}}">
|
||||
Download projects report (CSV) for {{key}}
|
||||
</a>
|
||||
</a-->
|
||||
<span class="clickable" (click)="downloadfile(downloadURLAPI+'resources?size='+organizationInfo.projects.get(key).length+'&'+csvProjectParamsHead+organizationInfo.projects.get(key)[0]['funderId']+csvParamsTail)">
|
||||
<span aria-hidden="true" class="glyphicon glyphicon-download"></span>
|
||||
<span class="uk-icon-download"> Projects report(CSV) for {{key}}</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<li *ngFor="let key of organizationInfo.projects.keys()">
|
||||
<!--li *ngFor="let key of organizationInfo.projects.keys()">
|
||||
<a>
|
||||
Download publications report (CSV) for {{key}}
|
||||
</a>
|
||||
</li>
|
||||
</div>
|
||||
</ul>
|
||||
</li-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@ import {Observable} from 'rxjs/Observable';
|
|||
import {ActivatedRoute} from '@angular/router';
|
||||
import {OrganizationService} from '../../services/organization.service';
|
||||
import {OrganizationInfo} from '../../utils/entities/organizationInfo';
|
||||
|
||||
import {ReportsService} from '../../services/reports.service';
|
||||
import { SearchDataprovidersComponent } from '../../searchPages/simple/searchDataproviders.component';
|
||||
import { SearchDataprovidersService } from '../../services/searchDataproviders.service';
|
||||
import {SearchResultComponent} from '../../searchPages/searchUtils/searchResult.component';
|
||||
|
@ -45,7 +45,9 @@ export class OrganizationComponent {
|
|||
constructor (private _organizationService: OrganizationService,
|
||||
private route: ActivatedRoute,
|
||||
private _searchDataprovidersService: SearchDataprovidersService,
|
||||
private _searchPublicationsService: SearchPublicationsService) {
|
||||
private _searchPublicationsService: SearchPublicationsService,
|
||||
private _reportsService: ReportsService) {
|
||||
|
||||
console.info('organization constructor');
|
||||
this.searchDataprovidersComponent = new SearchDataprovidersComponent(this.route, this._searchDataprovidersService);
|
||||
this.searchPublicationsComponent = new SearchPublicationsComponent(this.route, this._searchPublicationsService);
|
||||
|
@ -169,4 +171,11 @@ export class OrganizationComponent {
|
|||
});
|
||||
}
|
||||
}
|
||||
downloadfile(url:string){
|
||||
console.log("Downloading file: "+ url);
|
||||
this._reportsService.downloadCSVFile(url)
|
||||
.subscribe(data => window.open(window.URL.createObjectURL(data)),
|
||||
error => console.log("Error downloading the file."),
|
||||
() => console.log('Completed file download.'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -171,18 +171,16 @@
|
|||
[linkname]="'Download '+ projectInfo.funder +' progress report (CSV)'"
|
||||
[filename]="'publications.csv'">
|
||||
</export-->
|
||||
<a href="{{downloadURLAPI}}resources?{{csvParams}}">
|
||||
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
||||
Download {{projectInfo.funder}} progress report (CSV)
|
||||
</a>
|
||||
<span class="clickable" (click)="downloadfile(downloadURLAPI+'resources?'+csvParams)">
|
||||
<span aria-hidden="true" class="glyphicon glyphicon-download"></span>
|
||||
<span class="uk-icon-download">{{projectInfo.funder}} progress report (CSV)</span><
|
||||
</span>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<div class="uk-text-center">
|
||||
<a class="uk-button uk-button-primary uk-button-mini" href="/deposit-publications">
|
||||
<a href="/deposit-publications">
|
||||
Deposit Publications
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -8,7 +8,7 @@ import {SearchPublicationsService} from '../../services/searchPublications.servi
|
|||
import { SearchDatasetsComponent } from '../../searchPages/simple/searchDatasets.component';
|
||||
import { SearchDatasetsService } from '../../services/searchDatasets.service';
|
||||
import {SearchResultComponent} from '../../searchPages/searchUtils/searchResult.component';
|
||||
|
||||
import {ReportsService} from '../../services/reports.service';
|
||||
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
||||
|
||||
@Component({
|
||||
|
@ -50,7 +50,8 @@ export class ProjectComponent{
|
|||
constructor (private _projectService: ProjectService,
|
||||
private route: ActivatedRoute,
|
||||
private _searchPublicationsService: SearchPublicationsService,
|
||||
private _searchDatasetsService: SearchDatasetsService) {
|
||||
private _searchDatasetsService: SearchDatasetsService,
|
||||
private _reportsService: ReportsService) {
|
||||
console.info('project constructor.');
|
||||
|
||||
this.searchPublicationsComponent = new SearchPublicationsComponent(this.route, this._searchPublicationsService);
|
||||
|
@ -132,5 +133,11 @@ export class ProjectComponent{
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
downloadfile(url:string){
|
||||
console.log("Downloading file: "+ url);
|
||||
this._reportsService.downloadCSVFile(url)
|
||||
.subscribe(data => window.open(window.URL.createObjectURL(data)),
|
||||
error => console.log("Error downloading the file."),
|
||||
() => console.log('Completed file download.'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,17 +2,18 @@ import {Component, Input, Output, EventEmitter, ViewChild} from '@angular/core';
|
|||
import {Observable} from 'rxjs/Observable';
|
||||
import {AlertModal} from '../../utils/modal/alert';
|
||||
import {OpenaireProperties} from '../../utils/properties/openaireProperties';
|
||||
import {ReportsService} from '../../services/reports.service';
|
||||
|
||||
@Component({
|
||||
selector: 'search-download',
|
||||
template: `
|
||||
<div class= "searchDownload" *ngIf="totalResults > 0">
|
||||
<p class="uk-text-right" *ngIf="totalResults <= 10000">
|
||||
<!--a (click)="download()"-->
|
||||
<a href="{{downloadURLAPI}}{{type}}?format=csv&page=0&size={{totalResults}}{{csvParams}}">
|
||||
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
||||
CSV Download
|
||||
</a>
|
||||
<!--a (click)="download()" href="{{downloadURLAPI}}{{type}}?format=csv&page=0&size={{totalResults}}{{csvParams}}" -->
|
||||
<span class="clickable" (click)="downloadfile(downloadURLAPI+type+'?format=csv&page=0&size='+totalResults+csvParams,type='-report-'+totalResults)">
|
||||
<span aria-hidden="true" class="glyphicon glyphicon-download"></span>
|
||||
<span class="uk-icon-download"> Results (CSV)</span>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<!--modal-alert></modal-alert-->
|
||||
|
@ -28,7 +29,7 @@ export class SearchDownloadComponent {
|
|||
@Output() downloadClick = new EventEmitter();
|
||||
private downloadURLAPI: string;
|
||||
|
||||
constructor () {}
|
||||
constructor ( private _reportsService: ReportsService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.downloadURLAPI = OpenaireProperties.getCsvAPIURL();
|
||||
|
@ -54,4 +55,11 @@ export class SearchDownloadComponent {
|
|||
console.info("denial of Download");
|
||||
|
||||
}
|
||||
downloadfile(url:string,filename:string){
|
||||
console.log("Downloading file: "+ url);
|
||||
this._reportsService.downloadCSVFile(url)
|
||||
.subscribe(data => window.open(window.URL.createObjectURL(data),"reports.csv"),
|
||||
error => console.log("Error downloading the file."),
|
||||
() => console.log('Completed file download.'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,10 +135,10 @@ export class SearchPageComponent {
|
|||
doisParams+=(doisParams.length > 0?" or ":"")+'((pidclassid exact doi) and (pid exact "'+ DOIs[i]+'"))';
|
||||
}
|
||||
if(doisParams.length > 0){
|
||||
doiQuery += "q=("+doisParams+")"
|
||||
doiQuery += "&q=("+doisParams+")"
|
||||
}
|
||||
}else{
|
||||
keywordQuery += "q=("+this.quote(keyword) +")"
|
||||
keywordQuery += "&q=("+this.quote(keyword) +")"
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -282,12 +282,12 @@ export class SearchPageComponent {
|
|||
doisParams+=(doisParams.length > 0?" or ":"")+'((pidclassid exact doi) and (pid exact "'+ DOIs[i]+'"))';
|
||||
}
|
||||
if(doisParams.length > 0){
|
||||
doiQuery += "q=("+doisParams+")"
|
||||
doiQuery += "&q=("+doisParams+")"
|
||||
}else{
|
||||
keywordQuery += "q=("+this.quote(this.searchUtils.keyword) +")"
|
||||
keywordQuery += "&q=("+this.quote(this.searchUtils.keyword) +")"
|
||||
}
|
||||
}else{
|
||||
keywordQuery += "q=("+this.quote(this.searchUtils.keyword) +")"
|
||||
keywordQuery += "&q=("+this.quote(this.searchUtils.keyword) +")"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
import {Injectable} from '@angular/core';
|
||||
import {Http, Response, Headers} from '@angular/http';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {OpenaireProperties} from '../utils/properties/openaireProperties';
|
||||
import 'rxjs/add/observable/of';
|
||||
import 'rxjs/add/operator/do';
|
||||
import 'rxjs/add/operator/share';
|
||||
import { CacheService } from '../shared/cache.service';
|
||||
|
||||
@Injectable()
|
||||
export class ReportsService {
|
||||
// url:string = "http://beta.services.openaire.eu:8480/search/rest/v2/api/publications?format=csv&page=0&size=3&q=(%22test%22)&fq=instancetypename%20exact%20%22Dataset%22";
|
||||
constructor(private http: Http) {}
|
||||
//text/html
|
||||
//On the service:
|
||||
downloadCSVFile(url: string){
|
||||
var headers = new Headers();
|
||||
headers.append('responseType', 'arraybuffer');
|
||||
return this.http.get(url)
|
||||
.map(res => new Blob([res['_body']], { type: 'text/csv' }));
|
||||
}
|
||||
downloadHTMLFile(url: string){
|
||||
var headers = new Headers();
|
||||
headers.append('responseType', 'arraybuffer');
|
||||
return this.http.get(url).do(res => console.log(res['_body']))
|
||||
.map(res => new Blob([res['_body']], { type: 'text/html' }))
|
||||
.do(res => console.log(res))
|
||||
}
|
||||
|
||||
private handleError (error: Response) {
|
||||
// in a real world app, we may send the error to some remote logging infrastructure
|
||||
// instead of just logging it to the console
|
||||
console.log(error);
|
||||
return Observable.throw(error || 'Server error');
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -26,6 +26,7 @@ import {EntitiesSearchService} from './entitySearch.service';
|
|||
|
||||
import {ISVocabulariesService} from './ISVocabularies.service';
|
||||
import {RefineFieldResultsService} from './refineFieldResults.service'
|
||||
import {ReportsService} from './reports.service'
|
||||
|
||||
import {LoginService} from './login.service';
|
||||
|
||||
|
@ -45,7 +46,8 @@ import {LoginService} from './login.service';
|
|||
SearchOrganizationsService, SearchPeopleService, ISVocabulariesService,
|
||||
RefineFieldResultsService,
|
||||
EntitiesSearchService,
|
||||
LoginService
|
||||
LoginService,
|
||||
ReportsService
|
||||
],
|
||||
exports: [
|
||||
]
|
||||
|
|
|
@ -6,6 +6,8 @@ import {SearchProjectsService} from '../services/searchProjects.service';
|
|||
|
||||
import {SearchPublicationsService} from '../services/searchPublications.service';
|
||||
import {SearchDatasetsService} from '../services/searchDatasets.service';
|
||||
import {ReportsService} from '../services/reports.service';
|
||||
|
||||
|
||||
import {ISVocabulariesService} from '../services/ISVocabularies.service';
|
||||
import {Dates} from '../utils/string-utils.class';
|
||||
|
@ -52,631 +54,11 @@ import {SearchFields} from '../utils/properties/searchFields';
|
|||
type="submit" name="action">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
<button (click)="downloadfile()"
|
||||
class="btn waves-effect waves-light"
|
||||
type="submit" name="action">DOWNLOAD</button>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin">
|
||||
|
||||
<div class="uk-grid">
|
||||
<div class="uk-width-1-1" data-uk-margin="">
|
||||
|
||||
<div class="uk-button-group">
|
||||
<button class="uk-button">Button</button>
|
||||
<div data-uk-dropdown="{mode:'click'}" aria-haspopup="true" aria-expanded="false">
|
||||
<button class="uk-button"><i class="uk-icon-caret-down"></i></button>
|
||||
<div class="uk-dropdown uk-dropdown-width-2" aria-hidden="true">
|
||||
|
||||
<div class="uk-grid uk-dropdown-grid">
|
||||
|
||||
<div class="uk-width-1-2">
|
||||
<ul class="uk-nav uk-nav-dropdown uk-panel">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Separated item</a></li>
|
||||
<li class="uk-parent">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2">
|
||||
<ul class="uk-nav uk-nav-dropdown uk-panel">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Separated item</a></li>
|
||||
<li class="uk-parent">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-button-group">
|
||||
<button class="uk-button uk-button-primary">Primary</button>
|
||||
<div data-uk-dropdown="{mode:'click'}" aria-haspopup="true" aria-expanded="false">
|
||||
<button class="uk-button uk-button-primary"><i class="uk-icon-caret-down"></i></button>
|
||||
<div class="uk-dropdown uk-dropdown-small" aria-hidden="true">
|
||||
<ul class="uk-nav uk-nav-dropdown">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Separated item</a></li>
|
||||
<li class="uk-parent">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-button-group">
|
||||
<button class="uk-button uk-button-success">Success</button>
|
||||
<div data-uk-dropdown="{mode:'click'}" aria-haspopup="true" aria-expanded="false">
|
||||
<button class="uk-button uk-button-success"><i class="uk-icon-caret-down"></i></button>
|
||||
<div class="uk-dropdown" aria-hidden="true">
|
||||
<ul class="uk-nav uk-nav-dropdown">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Separated item</a></li>
|
||||
<li class="uk-parent">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-button-group">
|
||||
<button class="uk-button uk-button-danger">Danger</button>
|
||||
<div data-uk-dropdown="{mode:'click'}">
|
||||
<button class="uk-button uk-button-danger"><i class="uk-icon-caret-down"></i></button>
|
||||
<div class="uk-dropdown">
|
||||
<ul class="uk-nav uk-nav-dropdown">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Separated item</a></li>
|
||||
<li class="uk-parent">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<ul class="uk-nav-sub">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="uk-button" disabled="">Disabled</button>
|
||||
<button class="uk-button" data-uk-tooltip="" title="Bazinga!">Tooltip</button>
|
||||
<button class="uk-button" data-uk-modal="{target:'#modal-1'}">Modal</button>
|
||||
<button class="uk-button uk-margin-small-top" data-uk-offcanvas="{target:'#offcanvas-1'}">Off-canvas</button>
|
||||
<button class="uk-button uk-button-link uk-margin-small-top">Button link</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="uk-grid-divider">
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-medium-1-2 uk-row-first">
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-1-1 uk-row-first">
|
||||
<ul class="uk-breadcrumb">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Home</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Blog</a></li>
|
||||
<li><span>Category</span></li>
|
||||
<li class="uk-active"><span>Post</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-row-first">
|
||||
|
||||
<article class="uk-article">
|
||||
|
||||
<h1 class="uk-article-title">Article title</h1>
|
||||
|
||||
<p class="uk-article-meta">Written by Super User on 12 April. Posted in Blog</p>
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
<div class="uk-width-medium-1-2 uk-row-first">
|
||||
<a class="uk-thumbnail uk-overlay-hover" href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">
|
||||
<div class="uk-overlay">
|
||||
<img src="/themes/joomla/2015/bento/images/yootheme/uikit_placeholder.svg" alt="" width="300" height="90">
|
||||
<div class="uk-overlay-panel uk-overlay-icon uk-overlay-background uk-overlay-fade"></div>
|
||||
</div>
|
||||
<div class="uk-thumbnail-caption">Caption</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-2">
|
||||
<a class="uk-thumbnail uk-overlay-hover" href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">
|
||||
<div class="uk-overlay">
|
||||
<img src="/themes/joomla/2015/bento/images/yootheme/uikit_placeholder.svg" alt="" width="300" height="90">
|
||||
<div class="uk-overlay-panel uk-overlay-bottom uk-overlay-background uk-overlay-fade">Caption</div>
|
||||
</div>
|
||||
<div class="uk-thumbnail-caption">Caption</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="uk-article-lead">Lorem ipsum dolor sit amet.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
||||
<pre><code><div class="myclass">...</div></code></pre>
|
||||
<hr class="uk-article-divider">
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-medium-1-5 uk-row-first">
|
||||
<span class="uk-text-muted">text-muted</span><br>
|
||||
<span class="uk-text-primary">text-primary</span><br>
|
||||
<span class="uk-text-success">text-success</span><br>
|
||||
<span class="uk-text-warning">text-warning</span><br>
|
||||
<span class="uk-text-danger">text-danger</span>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-3-10">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">a element</a><br>
|
||||
<em>em element</em><br>
|
||||
<strong>strong</strong><br>
|
||||
<code>code element</code><br>
|
||||
<del>del element</del>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-2-5">
|
||||
<ins>ins element</ins><br>
|
||||
<mark>mark element</mark><br>
|
||||
<q>q <q>inside</q> a q element </q><br>
|
||||
<abbr title="Abbreviation Element">abbr element</abbr><br>
|
||||
<dfn title="Defines a definition term">dfn element</dfn>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-row-first">
|
||||
<p class="uk-text-center">
|
||||
<span class="uk-badge">Badge</span>
|
||||
<span class="uk-badge uk-badge-notification">1</span>
|
||||
<span class="uk-badge uk-badge-success">Success</span>
|
||||
<span class="uk-badge uk-badge-success uk-badge-notification">4</span>
|
||||
<span class="uk-badge uk-badge-warning">Warning</span>
|
||||
<span class="uk-badge uk-badge-warning uk-badge-notification">3</span>
|
||||
<span class="uk-badge uk-badge-danger">Danger</span>
|
||||
<span class="uk-badge uk-badge-danger uk-badge-notification">4</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-2 uk-grid-margin uk-row-first">
|
||||
<h1 class="uk-display-inline">h1</h1>
|
||||
<h2 class="uk-display-inline">h2</h2>
|
||||
<h3 class="uk-display-inline">h3</h3>
|
||||
<h4 class="uk-display-inline">h4</h4>
|
||||
<h5 class="uk-display-inline">h5</h5>
|
||||
<h6 class="uk-display-inline">h6</h6>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-2 uk-grid-margin">
|
||||
<blockquote>
|
||||
<p> Lorem ipsum dolor.</p>
|
||||
<small>Someone famous</small>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-row-first">
|
||||
<ul class="uk-comment-list">
|
||||
<li>
|
||||
<article class="uk-comment">
|
||||
<header class="uk-comment-header">
|
||||
<img class="uk-comment-avatar" src="/themes/joomla/2015/bento/images/yootheme/uikit_avatar.svg" alt="" width="50" height="50">
|
||||
<h4 class="uk-comment-title">Author</h4>
|
||||
<p class="uk-comment-meta">May 2, 2090 at 1:55 pm</p>
|
||||
</header>
|
||||
<div class="uk-comment-body">
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.</p>
|
||||
</div>
|
||||
</article>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-row-first">
|
||||
<ul class="uk-pagination">
|
||||
<li class="uk-disabled"><span><i class="uk-icon-angle-double-left"></i></span></li>
|
||||
<li class="uk-active"><span>1</span></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">2</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">3</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">4</a></li>
|
||||
<li><span>...</span></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">20</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#"><i class="uk-icon-angle-double-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-2">
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-medium-1-2 uk-row-first">
|
||||
|
||||
<div class="uk-panel">
|
||||
<ul class="uk-nav uk-nav-side uk-nav-parent-icon" data-uk-nav="">
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li class="uk-active"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Active</a></li>
|
||||
<li class="uk-parent" aria-expanded="false">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<div style="overflow:hidden;height:0;position:relative;" class="uk-hidden"><ul class="uk-nav-sub" role="menu">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></div>
|
||||
</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="uk-panel uk-panel-divider">
|
||||
<h3 class="uk-panel-title">Divider</h3>
|
||||
Lorem ipsum <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">dolor</a> sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
|
||||
<div class="uk-panel uk-panel-header">
|
||||
<h3 class="uk-panel-title">Header</h3>
|
||||
Lorem ipsum <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">dolor</a> sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-2">
|
||||
|
||||
<div class="uk-panel uk-panel-box">
|
||||
<h3 class="uk-panel-title">Box</h3>
|
||||
Lorem ipsum <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">dolor</a> sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
|
||||
<div class="uk-panel uk-panel-box uk-panel-box-primary">
|
||||
<h3 class="uk-panel-title">Box primary</h3>
|
||||
Lorem ipsum <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">dolor</a> sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
|
||||
<div class="uk-panel uk-panel-box uk-panel-box-secondary">
|
||||
<h3 class="uk-panel-title">Box secondary</h3>
|
||||
Lorem ipsum <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">dolor</a> sit amet, consectetur adipisicing elit.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-1-2 uk-row-first">
|
||||
<div class="uk-alert" data-uk-alert="">
|
||||
<a class="uk-alert-close uk-close"></a>
|
||||
<p>Info message</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2">
|
||||
<div class="uk-alert uk-alert-success" data-uk-alert="">
|
||||
<a class="uk-alert-close uk-close"></a>
|
||||
<p>Success message</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin uk-row-first">
|
||||
<div class="uk-alert uk-alert-warning" data-uk-alert="">
|
||||
<a class="uk-alert-close uk-close"></a>
|
||||
<p>Warning message</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin">
|
||||
<div class="uk-alert uk-alert-danger" data-uk-alert="">
|
||||
<a class="uk-alert-close uk-close"></a>
|
||||
<p>Danger message</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin uk-row-first">
|
||||
<div class="uk-progress">
|
||||
<div class="uk-progress-bar" style="width: 55%;">55%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin">
|
||||
<div class="uk-progress uk-progress-success">
|
||||
<div class="uk-progress-bar" style="width: 55%;">55%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin uk-row-first">
|
||||
<div class="uk-progress uk-progress-warning">
|
||||
<div class="uk-progress-bar" style="width: 55%;">55%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-grid-margin">
|
||||
<div class="uk-progress uk-progress-danger">
|
||||
<div class="uk-progress-bar" style="width: 55%;">55%</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-form uk-grid-margin uk-row-first">
|
||||
<fieldset>
|
||||
<legend>Form states</legend>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="Text Input" class="uk-width-1-1" type="text">
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form-success" value="form-success" class="uk-width-1-1 uk-form-success" type="text">
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form-danger" value="form-danger" class="uk-width-1-1 uk-form-danger" type="text">
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form disabled" class="uk-width-1-1" disabled="" type="text">
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="uk-width-1-2 uk-form uk-grid-margin">
|
||||
<fieldset>
|
||||
<legend>Form styles</legend>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form-large" class="uk-form-large uk-form-width-small" type="text">
|
||||
<button class="uk-button uk-button-large" type="reset">Large</button>
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form-small" class="uk-form-small uk-form-width-small" type="text">
|
||||
<button class="uk-button uk-button-small" type="reset">Small</button>
|
||||
</div>
|
||||
<div class="uk-form-row">
|
||||
<input placeholder="form-blank" class="uk-form-width-small uk-form-blank" type="text">
|
||||
<button class="uk-button uk-button-mini" type="reset">Mini</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr class="uk-grid-divider">
|
||||
|
||||
<div class="uk-grid" data-uk-grid-margin="">
|
||||
|
||||
<div class="uk-width-medium-1-4 uk-row-first">
|
||||
|
||||
<ul class="uk-subnav uk-subnav-line">
|
||||
<li class="uk-active"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Active</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-disabled"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Disabled</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<ul class="uk-subnav uk-subnav-pill">
|
||||
<li class="uk-active"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Active</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-disabled"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Disabled</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<ul class="uk-tab" data-uk-tab="">
|
||||
<li class="uk-active"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Active</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-disabled"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Disabled</a></li>
|
||||
<li class="uk-tab-responsive uk-active uk-hidden" aria-haspopup="true" aria-expanded="false"><a>Active</a><div class="uk-dropdown uk-dropdown-small" aria-hidden="true"><ul class="uk-nav uk-nav-dropdown"></ul><div></div></div></li></ul>
|
||||
|
||||
</div>
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#" class="uk-icon-button uk-icon-github"></a>
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#" class="uk-icon-button uk-icon-twitter"></a>
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#" class="uk-icon-button uk-icon-dribbble"></a>
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#" class="uk-icon-button uk-icon-html5"></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="uk-grid-divider">
|
||||
|
||||
<div class="uk-grid uk-grid-divider" data-uk-grid-margin="">
|
||||
<div class="uk-width-medium-1-4 uk-row-first">
|
||||
|
||||
<ul class="uk-list uk-list-line">
|
||||
<li>List item 1</li>
|
||||
<li>List item 2</li>
|
||||
<li>List item 3</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<ul class="uk-list uk-list-striped">
|
||||
<li>List item 1</li>
|
||||
<li>List item 2</li>
|
||||
<li>List item 3</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<table class="uk-table uk-table-striped uk-table-condensed uk-table-hover">
|
||||
<caption>Table caption</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Table</th>
|
||||
<th>Heading</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Table</td>
|
||||
<td>Data</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Table</td>
|
||||
<td>Data</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="uk-width-medium-1-4">
|
||||
|
||||
<dl class="uk-description-list uk-description-list-line">
|
||||
<dt>Description lists</dt>
|
||||
<dd>Description text.</dd>
|
||||
<dt>Description lists</dt>
|
||||
<dd>Description text.</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="offcanvas-1" class="uk-offcanvas">
|
||||
<div class="uk-offcanvas-bar">
|
||||
|
||||
<ul class="uk-nav uk-nav-offcanvas uk-nav-parent-icon" data-uk-nav="">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
<li class="uk-active"><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Active</a></li>
|
||||
|
||||
<li class="uk-parent" aria-expanded="false">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<div style="overflow:hidden;height:0;position:relative;" class="uk-hidden"><ul class="uk-nav-sub" role="menu">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a>
|
||||
<ul>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></div>
|
||||
</li>
|
||||
|
||||
<li class="uk-parent" aria-expanded="false">
|
||||
<a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Parent</a>
|
||||
<div style="overflow:hidden;height:0;position:relative;" class="uk-hidden"><ul class="uk-nav-sub" role="menu">
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Sub item</a></li>
|
||||
</ul></div>
|
||||
</li>
|
||||
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">Item</a></li>
|
||||
|
||||
<li class="uk-nav-header">Header</li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#"><i class="uk-icon-star"></i> Item</a></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#"><i class="uk-icon-twitter"></i> Item</a></li>
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#"><i class="uk-icon-rss"></i> Item</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="uk-panel">
|
||||
<h3 class="uk-panel-title">Title</h3>
|
||||
Lorem ipsum dolor sit amet, <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">consetetur</a> sadipscing elitr.
|
||||
</div>
|
||||
|
||||
<div class="uk-panel">
|
||||
<h3 class="uk-panel-title">Title</h3>
|
||||
Lorem ipsum dolor sit amet, <a href="https://demo.yootheme.com/themes/joomla/2015/bento/index.php/features/uikit?&style=default#">consetetur</a> sadipscing elitr.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="modal-1" class="uk-modal">
|
||||
<div class="uk-modal-dialog">
|
||||
<button type="button" class="uk-modal-close uk-close"></button>
|
||||
<h1>Headline</h1>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div>
|
||||
</div> </div>
|
||||
<div class="uk-accordion" data-uk-accordion="{collapse: false}">
|
||||
|
||||
<h3 class="uk-accordion-title">Heading 1</h3>
|
||||
<div data-wrapper="true" style="height: 0px; position: relative; overflow: hidden;" aria-expanded="false"><div class="uk-accordion-content">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div></div>
|
||||
|
||||
<h3 class="uk-accordion-title">Heading 2</h3>
|
||||
<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;" aria-expanded="false"><div class="uk-accordion-content">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div></div>
|
||||
|
||||
<h3 class="uk-accordion-title">Heading 3</h3>
|
||||
<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;" aria-expanded="false"><div class="uk-accordion-content">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
</div></div>
|
||||
|
||||
</div>
|
||||
<div class=" altmetrics" >
|
||||
<!--div data-badge-popover="bottom" data-badge-type="medium-donut" data-doi="10.1038/nature.2014.14583" data-hide-no-mentions="true" class="altmetric-embed"></div-->
|
||||
</div>
|
||||
`
|
||||
|
||||
})
|
||||
|
@ -691,7 +73,7 @@ export class TestComponent {
|
|||
public url =('http://vaggelas.athenarc.gr/stats/merge.php?com=query&data=[{"table":"project_stats_monthly","fields":[{"fld":"sum","agg":"sum","type":"column","yaxis":1,"c":false}],"xaxis":{"name":"id","agg":"sum"},"group":"month","color":"","type":"chart","size":30,"sort":"xaxis","xStyle":{"r":0,"s":"0","l":"-","ft":"-","wt":"-"},"title":"","subtitle":"","xaxistitle":"untitled","yaxisheaders":["sum of views"],"generalxaxis":"","theme":0,"in":[],"filters":[{"name":"id","values":["'+this.projectId+'"],"to":"-1"}]}]&info_types=["spline"]&stacking=&steps=false&fontFamily=Courier&spacing=[5,0,0,0]&style=[{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"rgba(0, 0, 0, 1)","size":"18"},{"color":"000000","size":""},{"color":"000000","size":""}]&backgroundColor=rgba(255,255,255,1)&colors[]=rgba(124, 181, 236, 1)&colors[]=rgba(67, 67, 72, 1)&colors[]=rgba(144, 237, 125, 1)&colors[]=rgba(247, 163, 92, 1)&colors[]=rgba(128, 133, 233, 1)&colors[]=rgba(241, 92, 128, 1)&colors[]=rgba(228, 211, 84, 1)&colors[]=rgba(43, 144, 143, 1)&colors[]=rgba(244, 91, 91, 1)&colors[]=rgba(145, 232, 225, 1)&xlinew=0&ylinew=1&legends=true&tooltips=true');
|
||||
// public url = 'https://beta.openaire.eu/stats/chart.php?com=query&persistent=false&data={"query":"projScient","projTitle":"'+this.projectId+'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "spline", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["Publications"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [" "], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}';
|
||||
public user:{password:string,email:string} = {password:"",email:""};
|
||||
constructor(private _projectService: OpenaireProjectsService,private _searchProjectsService:SearchProjectsService,private _searchPubService:SearchPublicationsService,private _searchDataService:SearchDatasetsService, private _vocabulariesService: ISVocabulariesService) {
|
||||
constructor(private _projectService: OpenaireProjectsService,private _searchProjectsService:SearchProjectsService,private _searchPubService:SearchPublicationsService,private _searchDataService:SearchDatasetsService, private _vocabulariesService: ISVocabulariesService, private _reportsService: ReportsService) {
|
||||
}
|
||||
public ready:boolean = false;
|
||||
ngAfterContentChecked(){
|
||||
|
@ -804,4 +186,13 @@ ngAfterViewChecked(){
|
|||
console.info("Save email/ password in local Storage. Email is:" + localStorage.getItem("email"));
|
||||
|
||||
}
|
||||
|
||||
//On the component
|
||||
//http://beta.services.openaire.eu:8480/search/rest/v2/api/publications?format=csv&page=0&size=3&q=(%22test%22)&fq=instancetypename%20exact%20%22Dataset%22"
|
||||
downloadfile(){
|
||||
this._reportsService.downloadHTMLFile("http://beta.services.openaire.eu:8480/search/rest/v2/api/publications?format=html&page=0&size=3&q=(%22test%22)&fq=instancetypename%20exact%20%22Dataset%22")
|
||||
.subscribe(data => window.open(window.URL.createObjectURL(data)),
|
||||
error => console.log("Error downloading the file."),
|
||||
() => console.log('Completed file download.'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ export class OpenaireProperties {
|
|||
public static searchLinkToAdvancedOrganizations = "search/advanced/organizations";
|
||||
public static searchLinkToAdvancedPeople = "search/advanced/people";
|
||||
|
||||
//http://beta.services.openaire.eu:8480/search/
|
||||
//http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/
|
||||
// Services - APIs
|
||||
|
||||
private static metricsAPIURL = "http://vatopedi.di.uoa.gr:8080/stats/";
|
||||
|
@ -37,22 +37,22 @@ export class OpenaireProperties {
|
|||
|
||||
// private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
// private searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/";
|
||||
private static searchAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";
|
||||
private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
//"http://scoobydoo.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
|
||||
// private static searchAPIURLLAst = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
private static searchAPIURLLAst = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";
|
||||
private static searchAPIURLLAst = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
//private static searchAPIURLLAst = "http://scoobydoo.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
||||
|
||||
// private static searchResourcesAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/resources";
|
||||
private static searchResourcesAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/resources";
|
||||
private static searchResourcesAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/resources";
|
||||
|
||||
//private static searchServiveURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
||||
private static searchServiveURL = "http://beta.services.openaire.eu:8480/search/";
|
||||
private static searchServiveURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
||||
// private static searchServiveURL = "http://services.openaire.eu:8380/search/";
|
||||
// private static searchServiveURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
||||
|
||||
private static csvAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";//publications?format=csv
|
||||
private static csvAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";//publications?format=csv
|
||||
|
||||
private static searchCrossrefAPIURL = "http://api.crossref.org/works";
|
||||
private static searchDataciteAPIURL = "http://search.datacite.org/api";
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"id":"344de4f6-8d27-4382-a3d5-5bcd3bf2c33e_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==","name":"dnet:access_modes","description":"dnet:access_modes","code":"dnet:access_modes","terms":[{"englishName":"12 Months Embargo","nativeName":"12 Months Embargo","encoding":"OPENAIRE","code":"12MONTHS"},{"englishName":"6 Months Embargo","nativeName":"6 Months Embargo","encoding":"OPENAIRE","code":"6MONTHS"},{"englishName":"Closed Access","nativeName":"Closed Access","encoding":"OPENAIRE","code":"CLOSED"},{"englishName":"Embargo","nativeName":"Embargo","encoding":"OPENAIRE","code":"EMBARGO"},{"englishName":"Open Access","nativeName":"Open Access","encoding":"OPENAIRE","code":"OPEN"},{"englishName":"Other","nativeName":"Other","encoding":"OPENAIRE","code":"OTHER"},{"englishName":"Restricted","nativeName":"Restricted","encoding":"OPENAIRE","code":"RESTRICTED"},{"englishName":"not available","nativeName":"UNKNOWN","encoding":"OPENAIRE","code":"UNKNOWN"}]}
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
{"id":"da6b3e2f-2a05-4975-85f8-e66aaa8cb93e_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==","name":"dnet:datasourceCompatibilityLevel","description":"dnet:datasourceCompatibilityLevel","code":"dnet:datasourceCompatibilityLevel","terms":[{"englishName":"OpenAIRE 2.0 (EC funding)","nativeName":"OpenAIRE 2.0 (EC funding)","encoding":"OPENAIRE","code":"openaire2.0"},{"englishName":"OpenAIRE 2.0+ (DRIVER OA, EC funding)","nativeName":"OpenAIRE 2.0+ (DRIVER OA, EC funding)","encoding":"OPENAIRE","code":"driver-openaire2.0"},{"englishName":"OpenAIRE 3.0 (OA, funding)","nativeName":"OpenAIRE 3.0 (OA, funding)","encoding":"OPENAIRE","code":"openaire3.0"},{"englishName":"OpenAIRE Basic (DRIVER OA)","nativeName":"OpenAIRE basic (DRIVER OA)","encoding":"OPENAIRE","code":"driver"},{"englishName":"OpenAIRE Data (funded, referenced datasets)","nativeName":"OpenAIRE Data (funded, referenced datasets)","encoding":"OPENAIRE","code":"openaire2.0_data"},{"englishName":"collected from a compatible aggregator","nativeName":"collected from a compatible aggregator","encoding":"OPENAIRE","code":"hostedBy"},{"englishName":"not available","nativeName":"not available","encoding":"OPENAIRE","code":"UNKNOWN"},{"englishName":"proprietary","nativeName":"native","encoding":"OPENAIRE","code":"native"},{"englishName":"under validation","nativeName":"under validation","encoding":"OPENAIRE","code":"notCompatible"}]}
|
|
@ -1 +0,0 @@
|
|||
{"id":"51b3a0ad-7054-4b3b-acbc-b3c9657f113c_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==","name":"dnet:datasource_typologies","description":"dnet:datasource_typologies","code":"dnet:datasource_typologies","terms":[{"englishName":"CRIS System","nativeName":"CRIS System","encoding":"OPENAIRE","code":"crissystem"},{"englishName":"Data Repository","nativeName":"Data Repository","encoding":"OPENAIRE","code":"datarepository::unknown"},{"englishName":"Data Repository Aggregator","nativeName":"Data Repository Aggregator","encoding":"OPENAIRE","code":"aggregator::datarepository"},{"englishName":"Funder database","nativeName":"Funder database","encoding":"OPENAIRE","code":"entityregistry::projects"},{"englishName":"Information Space","nativeName":"Information Space","encoding":"OPENAIRE","code":"infospace"},{"englishName":"Institutional Repository","nativeName":"Institutional Repository","encoding":"OPENAIRE","code":"pubsrepository::institutional"},{"englishName":"Institutional Repository Aggregator","nativeName":"Institutional Repository Aggregator","encoding":"OPENAIRE","code":"aggregator::pubsrepository::institutional"},{"englishName":"Journal","nativeName":"Journal","encoding":"OPENAIRE","code":"pubsrepository::journal"},{"englishName":"Journal Aggregator/Publisher","nativeName":"Journal Aggregator/Publisher","encoding":"OPENAIRE","code":"aggregator::pubsrepository::journals"},{"englishName":"Other","nativeName":"Other","encoding":"OPENAIRE","code":"pubsrepository::mock"},{"englishName":"Publication Catalogue","nativeName":"Publication Catalogue","encoding":"OPENAIRE","code":"pubscatalogue::unknown"},{"englishName":"Publication Repository","nativeName":"Publication Repository","encoding":"OPENAIRE","code":"pubsrepository::unknown"},{"englishName":"Publication Repository Aggregator","nativeName":"Publication Repository Aggregator","encoding":"OPENAIRE","code":"aggregator::pubsrepository::unknown"},{"englishName":"Registry","nativeName":"Registry","encoding":"OPENAIRE","code":"entityregistry"},{"englishName":"Registry of repositories","nativeName":"Registry of repositories","encoding":"OPENAIRE","code":"entityregistry::repositories"},{"englishName":"Scholarly Comm. Infrastructure","nativeName":"Scholarly Comm. Infrastructure","encoding":"OPENAIRE","code":"scholarcomminfra"},{"englishName":"Thematic Repository","nativeName":"Thematic Repository","encoding":"OPENAIRE","code":"pubsrepository::thematic"},{"englishName":"Web Source","nativeName":"Web Source","encoding":"OPENAIRE","code":"websource"}]}
|
|
@ -1 +0,0 @@
|
|||
{"id":"a48f6872-4055-484f-b365-a9c11f5ff152_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==","name":"dnet:dataCite_resource","description":"dnet:dataCite_resource","code":"dnet:dataCite_resource","terms":[{"englishName":"UNKNOWN","nativeName":"UNKNOWN","encoding":"OPENAIRE","code":"UNKNOWN"},{"englishName":"clinical trial","nativeName":"clinical trial","encoding":"OPENAIRE","code":"clinicalTrial"},{"englishName":"collection","nativeName":"collection","encoding":"OPENAIRE","code":"collection"},{"englishName":"dataset","nativeName":"dataset","encoding":"OPENAIRE","code":"dataset"},{"englishName":"event","nativeName":"event","encoding":"OPENAIRE","code":"event"},{"englishName":"film","nativeName":"film","encoding":"OPENAIRE","code":"film"},{"englishName":"image","nativeName":"image","encoding":"OPENAIRE","code":"image"},{"englishName":"interactiveResource","nativeName":"interactiveResource","encoding":"OPENAIRE","code":"interactiveResource"},{"englishName":"model","nativeName":"model","encoding":"OPENAIRE","code":"model"},{"englishName":"physicalObject","nativeName":"physicalObject","encoding":"OPENAIRE","code":"physicalObject"},{"englishName":"service","nativeName":"service","encoding":"OPENAIRE","code":"service"},{"englishName":"software","nativeName":"software","encoding":"OPENAIRE","code":"software"},{"englishName":"sound","nativeName":"sound","encoding":"OPENAIRE","code":"sound"},{"englishName":"text","nativeName":"text","encoding":"OPENAIRE","code":"text"}]}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,188 +0,0 @@
|
|||
{
|
||||
"id":"66daaedb-c0de-48d3-a1ff-60bf5756c9be_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==",
|
||||
"name":"dnet:publication_resource",
|
||||
"description":"dnet:publication_resource",
|
||||
"code":"dnet:publication_resource",
|
||||
"terms":[
|
||||
{
|
||||
"englishName":"Annotation",
|
||||
"nativeName":"Annotation",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0018"
|
||||
},
|
||||
{
|
||||
"englishName":"Article",
|
||||
"nativeName":"Article",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0001"
|
||||
},
|
||||
{
|
||||
"englishName":"Bachelor thesis",
|
||||
"nativeName":"Bachelor thesis",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0008"
|
||||
},
|
||||
{
|
||||
"englishName":"Book",
|
||||
"nativeName":"Book",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0002"
|
||||
},
|
||||
{
|
||||
"englishName":"Collection",
|
||||
"nativeName":"Collection",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0022"
|
||||
},
|
||||
{
|
||||
"englishName":"Conference object",
|
||||
"nativeName":"Conference object",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0004"
|
||||
},
|
||||
{
|
||||
"englishName":"Contribution for newspaper or weekly magazine",
|
||||
"nativeName":"Contribution for newspaper or weekly magazine",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0005"
|
||||
},
|
||||
{
|
||||
"englishName":"Dataset",
|
||||
"nativeName":"Dataset",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0021"
|
||||
},
|
||||
{
|
||||
"englishName":"Doctoral thesis",
|
||||
"nativeName":"Doctoral thesis",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0006"
|
||||
},
|
||||
{
|
||||
"englishName":"Event",
|
||||
"nativeName":"Event",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0023"
|
||||
},
|
||||
{
|
||||
"englishName":"External research report",
|
||||
"nativeName":"External research report",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0009"
|
||||
},
|
||||
{
|
||||
"englishName":"Film",
|
||||
"nativeName":"Film",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0024"
|
||||
},
|
||||
{
|
||||
"englishName":"Image",
|
||||
"nativeName":"Image",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0025"
|
||||
},
|
||||
{
|
||||
"englishName":"InteractiveResource",
|
||||
"nativeName":"InteractiveResource",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0026"
|
||||
},
|
||||
{
|
||||
"englishName":"Internal report",
|
||||
"nativeName":"Internal report",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0011"
|
||||
},
|
||||
{
|
||||
"englishName":"Lecture",
|
||||
"nativeName":"Lecture",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0010"
|
||||
},
|
||||
{
|
||||
"englishName":"Master thesis",
|
||||
"nativeName":"Master thesis",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0007"
|
||||
},
|
||||
{
|
||||
"englishName":"Model",
|
||||
"nativeName":"Model",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0027"
|
||||
},
|
||||
{
|
||||
"englishName":"Newsletter",
|
||||
"nativeName":"Newsletter",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0012"
|
||||
},
|
||||
{
|
||||
"englishName":"Other",
|
||||
"nativeName":"Other",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0020"
|
||||
},
|
||||
{
|
||||
"englishName":"Part of book or chapter of book",
|
||||
"nativeName":"Part of book or chapter of book",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0013"
|
||||
},
|
||||
{
|
||||
"englishName":"Patent",
|
||||
"nativeName":"Patent",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0019"
|
||||
},
|
||||
{
|
||||
"englishName":"PhysicalObject",
|
||||
"nativeName":"PhysicalObject",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0028"
|
||||
},
|
||||
{
|
||||
"englishName":"Preprint",
|
||||
"nativeName":"Preprint",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0016"
|
||||
},
|
||||
{
|
||||
"englishName":"Report",
|
||||
"nativeName":"Report",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0017"
|
||||
},
|
||||
{
|
||||
"englishName":"Research",
|
||||
"nativeName":"Research",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0014"
|
||||
},
|
||||
{
|
||||
"englishName":"Review",
|
||||
"nativeName":"Review",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0015"
|
||||
},
|
||||
{
|
||||
"englishName":"Software",
|
||||
"nativeName":"Software",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0029"
|
||||
},
|
||||
{
|
||||
"englishName":"Sound",
|
||||
"nativeName":"Sound",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0030"
|
||||
},
|
||||
{
|
||||
"englishName":"Unknown",
|
||||
"nativeName":"Unknown",
|
||||
"encoding":"OPENAIRE",
|
||||
"code":"0000"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue