From 39a4780b4012be74f211f4d1fb610a0da9b4eb40 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 16 May 2018 14:33:00 +0000 Subject: [PATCH] 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 --- landingPages/landing-utils/citeThis/citation.class.ts | 6 ++++-- .../landing-utils/citeThis/citeThis.component.ts | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/landingPages/landing-utils/citeThis/citation.class.ts b/landingPages/landing-utils/citeThis/citation.class.ts index 42f6424f..e87212b8 100644 --- a/landingPages/landing-utils/citeThis/citation.class.ts +++ b/landingPages/landing-utils/citeThis/citation.class.ts @@ -10,8 +10,7 @@ export class Citation{ nature:string =' '; //nature_csl:string =' '; acm:string =' '; - apa:string =` '`; - //apa:string =' '; + apa:string =' `'; harvard:string = ' '; locale:string =' This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License 2012-07-04T23:31:02+00:00 radio broadcast television broadcast podcast instant message email volume volumes accessed and & and others anonymous anon. at available at by circa c. cited edition editions ed. et al. forthcoming from ibid. in in press internet interview letter no date n.d. online presented at the reference references ref. refs. retrieved scale version AD BC th st nd rd th th th first second third fourth fifth sixth seventh eighth ninth tenth book books chapter chapters column columns figure figures folio folios number numbers line lines note notes opus opera page pages paragraph paragraph part parts section sections sub verbo sub verbis verse verses volume volumes bk. chap. col. fig. f. no. l. n. op. p. pp. para. pt. sec. s.v. s.vv. v. vv. vol. vols. ¶¶ § §§ director directors editor editors editor editors illustrator illustrators translator translators editor & translator editors & translators dir. dirs. ed. eds. ed. eds. ill. ills. tran. trans. ed. & tran. eds. & trans. directed by edited by edited by illustrated by interview by to by translated by edited & translated by by dir. ed. ed. illus. trans. ed. & trans. January February March April May June July August September October November December Jan. Feb. Mar. Apr. May Jun. Jul. Aug. Sep. Oct. Nov. Dec. Spring Summer Autumn Winter '; @@ -28,5 +27,8 @@ export class CitationData{ public issued ={};//{"date-parts":string[]}[] =[]; public date:string; public authors:string[] =[]; + public volume:string; + public page:string ; + } diff --git a/landingPages/landing-utils/citeThis/citeThis.component.ts b/landingPages/landing-utils/citeThis/citeThis.component.ts index 3aec5f68..cadc0eb6 100644 --- a/landingPages/landing-utils/citeThis/citeThis.component.ts +++ b/landingPages/landing-utils/citeThis/citeThis.component.ts @@ -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"] ; + } + } }