Add volume and pages in cite this| update APA csl

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52058 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-05-16 14:33:00 +00:00
parent fb39dd1a19
commit 39a4780b40
2 changed files with 13 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -100,6 +100,15 @@ export class CiteThisComponent {
if(this.result.date ){
citationData.date = this.result.date ;
}
if(this.result.journal ){
citationData.type = "article-journal"; // in case of APA volume and pages appear only in specific types not just article
if(this.result.journal.volume){
citationData.volume = this.result.journal.volume ;
}
if(this.result.journal["start_page"] && this.result.journal["end_page"]){
citationData.page = this.result.journal["start_page"] +"-" +this.result.journal["end_page"] ;
}
}
}