[Trunk|Library]: #4207: Research Data service & Orp servie & Publication service & Software service for search 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@54888 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-02-22 12:19:37 +00:00
parent 1a7bb8df37
commit 07e6e91f2c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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