1. Content Provider Landing page: Functionality fix: Load first tab contents on click.
2. #4136: Research Data service & Orp servie & Publication service & Software service for landing pages: Set author info in 'rank' position of table (instead of 'rank-1').


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54644 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-01-24 11:39:24 +00:00
parent c8bce934c3
commit ddeb96ee32
5 changed files with 6 additions and 6 deletions

View File

@ -244,7 +244,7 @@ export class DataProviderComponent {
this.reloadRelatedDatasources = true; this.reloadRelatedDatasources = true;
this.statsClicked = false; this.statsClicked = false;
this.search(this.dataProviderInfo.tabs[0].content, 1, 10); //this.search(this.dataProviderInfo.tabs[0].content, 1, 10);
this.count(1, 0); this.count(1, 0);
this.metricsClicked = false; this.metricsClicked = false;
@ -288,7 +288,7 @@ export class DataProviderComponent {
} }
private count(page: number, size: number) { private count(page: number, size: number) {
for(let i=1; i<this.dataProviderInfo.tabs.length; i++) { for(let i=0; i<this.dataProviderInfo.tabs.length; i++) {
let content: string = this.dataProviderInfo.tabs[i].content; let content: string = this.dataProviderInfo.tabs[i].content;
if(content=='publicationsTab') { if(content=='publicationsTab') {

View File

@ -197,7 +197,7 @@ export class DatasetService {
let length = Array.isArray(authors) ? authors.length : 1; let length = Array.isArray(authors) ? authors.length : 1;
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
this.datasetInfo.authors[author.rank-1] = author.content; this.datasetInfo.authors[author.rank] = author.content;
} }

View File

@ -176,7 +176,7 @@ export class OrpService {
let length = Array.isArray(authors) ? authors.length : 1; let length = Array.isArray(authors) ? authors.length : 1;
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
this.orpInfo.authors[author.rank-1] = author.content; this.orpInfo.authors[author.rank] = author.content;
} }

View File

@ -240,7 +240,7 @@ export class PublicationService {
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
this.publicationInfo.authors[author.rank-1] = author.content; this.publicationInfo.authors[author.rank] = author.content;
} }
this.publicationInfo.authors = this.publicationInfo.authors.filter(function (item) { this.publicationInfo.authors = this.publicationInfo.authors.filter(function (item) {
return (item != undefined); return (item != undefined);

View File

@ -199,7 +199,7 @@ export class SoftwareService {
for(let i=0; i<length; i++) { for(let i=0; i<length; i++) {
let author = Array.isArray(authors) ? authors[i] : authors; let author = Array.isArray(authors) ? authors[i] : authors;
this.softwareInfo.authors[author.rank-1] = author.content; this.softwareInfo.authors[author.rank] = author.content;
} }
this.softwareInfo.authors = this.softwareInfo.authors.filter(function (item) { this.softwareInfo.authors = this.softwareInfo.authors.filter(function (item) {