[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:
parent
1a7bb8df37
commit
07e6e91f2c
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue