openaire-library/landingPages/landing-utils/citeThis/citation.class.ts

40 lines
126 KiB
TypeScript
Raw Normal View History

export class Citation{
public templates:string[]=["bibtex","chicago","ieee","science","apa","cell","harvard","mla","nature","acm","frontiers", "ama"];
//https://github.com/citation-style-language/styles
bibtex:string =`<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US"> <info> <title>BibTeX generic citation style</title> <id>http://www.zotero.org/styles/bibtex</id> <link href="http://www.zotero.org/styles/bibtex" rel="self"/> <link href="http://www.bibtex.org/" rel="documentation"/> <author> <name>Markus Schaffner</name> </author> <contributor> <name>Richard Karnesky</name> <email>karnesky+zotero@gmail.com</email> <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri> </contributor> <category citation-format="author-date"/> <category field="generic-base"/> <updated>2012-09-14T21:22:32+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="zotero2bibtexType"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text value="book"/> </if> <else-if type="chapter paper-conference" match="any"> <text value="inbook"/> </else-if> <else-if type="article article-journal article-magazine article-newspaper" match="any"> <text value="article"/> </else-if> <else-if type="thesis" match="any"> <text value="phdthesis"/> </else-if> <else-if type="manuscript" match="any"> <text value="unpublished"/> </else-if> <else-if type="paper-conference" match="any"> <text value="inproceedings"/> </else-if> <else-if type="report" match="any"> <text value="techreport"/> </else-if> <else> <text value="misc"/> </else> </choose> </macro> <macro name="citeKey"> <group delimiter="_"> <text macro="author-short" text-case="lowercase"/> <text macro="issued-year"/> </group> </macro> <macro name="author-short"> <names variable="author"> <name form="short" delimiter="_" delimiter-precedes-last="always"/> <substitute> <names variable="editor"/> <names variable="translator"/> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text variable="title" form="short"/> </if> <else> <text variable="title" form="short"/> </else> </choose> </substitute> </names> </macro> <macro name="issued-year"> <date variable="issued"> <date-part name="year"/> </date> </macro> <macro name="issued-month"> <date variable="issued"> <date-part name="month" form="short" strip-periods="true"/> </date> </macro> <macro name="author"> <names variable="author"> <name sort-separator=", " delimiter=" and " delimiter-precedes-last="always" name-as-sort-order="all"/> <label form="long" text-case="capitalize-first"/> </names> </macro> <macro name="editor-translator"> <names variable="editor translator" delimiter=", "> <name sort-separator=", " delimiter=" and " delimiter-precedes-last="always" name-as-sort-order="all"/> <label form="long" text-case="capitalize-first"/> </names> </macro> <macro name="title"> <text variable="title"/> </macro> <macro name="number"> <text variable="issue"/> <text variable="number"/> </macro> <macro name="container-title"> <choose> <if type="chapter paper-conference" match="any"> <text variable="container-title" prefix=" booktitle={" suffix="}"/> </if> <else> <text variable="container-title" prefix=" journal={" suffix="}"/> </else> </choose> </macro> <macro name="publisher"> <choose> <if type="thesis"> <text variable="publisher" prefix=" school={" suffix="}"/> </if> <else-if type="report"> <text variable="publisher" prefix=" institution={" suffix="}"/> </else-if> <else> <text variable="publisher" prefix=" publisher={" suffix="}"/> </else> </choose> </macro> <macro name="pages"> <text variable="page"/> </macro> <macro name="edition"> <text variable="edition"/> </macro> <citation et-al-min="10" et-al-use-first="10" disambiguate-add-year-suffix="true" disambiguate-add-names="false" disambiguate-add-givenname="false" collapse="year"> <sort> <key macro="author"/> <key variable="issued"/> </sort> <layout delimiter="_"> <text macro="citeKey"/> </layout> </citation> <bibliography hanging-indent="false" et-al-mi
ieee:string =`<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only"> <info> <title>IEEE</title> <id>http://www.zotero.org/styles/ieee</id> <link href="http://www.zotero.org/styles/ieee" rel="self"/> <link href="http://www.ieee.org/documents/style_manual.pdf" rel="documentation"/> <link href="http://www.ieee.org/documents/auinfo07.pdf" rel="documentation"/> <author> <name>Michael Berkowitz</name> <email>mberkowi@gmu.edu</email> </author> <contributor> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </contributor> <contributor> <name>Rintze Zelle</name> <uri>http://twitter.com/rintzezelle</uri> </contributor> <contributor> <name>Stephen Frank</name> <uri>http://www.zotero.org/sfrank</uri> </contributor> <contributor> <name>Sebastian Karcher</name> </contributor> <category citation-format="numeric"/> <category field="engineering"/> <category field="generic-base"/> <updated>2016-10-06T15:32:30+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <locale xml:lang="en"> <terms> <term name="chapter" form="short">ch.</term> <term name="presented at">presented at the</term> <term name="available at">available</term> </terms> </locale> <!-- Macros --> <macro name="edition"> <choose> <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any"> <choose> <if is-numeric="edition"> <group delimiter=" "> <number variable="edition" form="ordinal"/> <text term="edition" form="short"/> </group> </if> <else> <text variable="edition" text-case="capitalize-first" suffix="."/> </else> </choose> </if> </choose> </macro> <macro name="issued"> <choose> <if type="article-journal report" match="any"> <date variable="issued"> <date-part name="month" form="short" suffix=" "/> <date-part name="year" form="long"/> </date> </if> <else-if type=" bill book chapter graphic legal_case legislation motion_picture paper-conference song thesis" match="any"> <date variable="issued"> <date-part name="year" form="long"/> </date> </else-if> <else> <date variable="issued"> <date-part name="day" form="numeric-leading-zeros" suffix="-"/> <date-part name="month" form="short" suffix="-" strip-periods="true"/> <date-part name="year" form="long"/> </date> </else> </choose> </macro> <macro name="author"> <names variable="author"> <name and="text" et-al-min="7" et-al-use-first="1" initialize-with=". "/> <label form="short" prefix=", " text-case="capitalize-first"/> <et-al font-style="italic"/> <substitute> <names variable="editor"/> <names variable="translator"/> </substitute> </names> </macro> <macro name="editor"> <names variable="editor"> <name initialize-with=". " delimiter=", " and="text"/> <label form="short" prefix=", " text-case="capitalize-first"/> </names> </macro> <macro name="locators"> <group delimiter=", "> <text macro="edition"/> <group delimiter=" "> <text term="volume" form="short"/> <number variable="volume" form="numeric"/> </group> <group delimiter=" "> <number variable="number-of-volumes" form="numeric"/> <text term="volume" form="short" plural="true"/> </group> <group delimiter=" "> <text term="issue" form="short"/> <number variable="issue" form="numeric"/> </group> </group> </macro> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture song" match="any"> <text variable="title" font-style="italic"/> </if> <else> <text variable="title" quotes="true"/> </else> </choose> </macro> <macro name="publisher"> <choose> <if type=" bill book chapter graphic legal_case legislation motion_picture paper-conference song" match="any"> <group delimiter=": "> <text variable="publisher-place"/> <text variable="publisher"/> </group> </if> <else> <group delimiter=", "> <text variable="publisher"/> <text variable="publisher-place"/> </group> </else> </choose> </macro> <macro name="event"> <choose> <if type="paper-conference speech"
chicago:string =`<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="display-and-sort" page-range-format="chicago"> <info> <title>Chicago Manual of Style 16th edition (full note)</title> <id>http://www.zotero.org/styles/chicago-fullnote-bibliography</id> <link href="http://www.zotero.org/styles/chicago-fullnote-bibliography" rel="self"/> <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/> <author> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </author> <contributor> <name>Simon Kornblith</name> <email>simon@simonster.com</email> </contributor> <contributor> <name>Elena Razlogova</name> <email>elena.razlogova@gmail.com</email> </contributor> <contributor> <name>Frank Bennett</name> <email>biercenator@gmail.com</email> </contributor> <contributor> <name>Andrew Dunning</name> <email>andrew.dunning@utoronto.ca</email> </contributor> <category citation-format="note"/> <category field="generic-base"/> <summary>Chicago format with full notes and bibliography</summary> <updated>2016-11-03T13:30:08+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <locale xml:lang="en"> <terms> <term name="editor" form="verb-short">ed.</term> <term name="translator" form="verb-short">trans.</term> <term name="translator" form="short">trans.</term> <term name="editortranslator" form="verb-short"> <single>ed. and trans.</single> <multiple>ed. and trans.</multiple> </term> <term name="editortranslator" form="verb"> <single>Edited and translated by</single> <multiple>Edited and translated by</multiple> </term> <term name="translator" form="short">trans.</term> </terms> </locale> <macro name="editor-translator"> <group delimiter=", "> <group delimiter=" "> <choose> <if variable="container-author reviewed-author" match="any"> <group> <names variable="container-author reviewed-author"> <label form="verb-short" text-case="lowercase" suffix=" "/> <name and="text" delimiter=", "/> </names> </group> </if> </choose> </group> <names variable="editor translator" delimiter=", "> <label form="verb-short" text-case="lowercase" suffix=" "/> <name and="text" delimiter=", "/> </names> </group> </macro> <macro name="secondary-contributors-note"> <choose> <if type="chapter paper-conference" match="none"> <text macro="editor-translator"/> </if> </choose> </macro> <macro name="container-contributors-note"> <choose> <if type="chapter paper-conference" match="any"> <text macro="editor-translator"/> </if> </choose> </macro> <macro name="secondary-contributors"> <choose> <if type="chapter paper-conference" match="none"> <names variable="editor translator" delimiter=". "> <label form="verb" text-case="capitalize-first" suffix=" "/> <name and="text" delimiter=", "/> </names> </if> </choose> </macro> <macro name="container-contributors"> <choose> <if type="chapter paper-conference" match="any"> <group delimiter=", "> <choose> <if variable="author"> <choose> <if variable="container-author" match="any"> <names variable="container-author"> <label form="verb-short" text-case="lowercase" suffix=" "/> <name and="text" delimiter=", "/> </names> </if> </choose> <!--This includes page numers after the container author, e.g. for Introductions --> <choose> <if variable="container-author author" match="all"> <group delimiter=". "> <text variable="page"/> <names variable="editor translator" delimiter=", "> <label form="verb" suffix=" "/> <name and="text" delimiter=", "/> </names> </group> </if> <else> <names variable="editor translator" delimiter=", "> <label form="verb" text-case="lowercase" suffix=" "/> <name and="text" delimiter=", "/> </names> </else> </choose> </if> </choose> </group> </if> </choose> </macro> <macro name="recipient-note"> <names variable="recipient" delimiter=", "> <label form="verb" text-case="lowercase" suffix=" "/> <name and="text" delimiter=", "/> </names> </macro> <macro name="con
science:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US"> <info> <title>Science</title> <id>http://www.zotero.org/styles/science</id> <link href="http://www.zotero.org/styles/science" rel="self"/> <link href="http://www.sciencemag.org/about/authors/prep/res/refs.dtl" rel="documentation"/> <author> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </author> <contributor> <name>Sebastian Karcher</name> </contributor> <contributor> <name>Greg Barendt</name> </contributor> <category citation-format="numeric"/> <category field="science"/> <issn>0036-8075</issn> <eissn>1095-9203</eissn> <summary>The Science journal style.</summary> <updated>2014-08-28T01:36:46+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="editor"> <names variable="editor" delimiter=", "> <name initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=", " text-case="capitalize-first"/> </names> </macro> <macro name="author"> <names variable="author"> <name sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=", " text-case="capitalize-first"/> <et-al font-style="italic"/> <substitute> <names variable="editor"/> </substitute> </names> </macro> <macro name="access"> <choose> <if variable="page" match="none"> <text macro="access-value"/> </if> <else-if is-numeric="page" match="none"> <text macro="access-value"/> </else-if> </choose> </macro> <macro name="access-value"> <choose> <if variable="DOI"> <text variable="DOI" prefix=", doi:"/> </if> <else> <group prefix=" (" suffix=")"> <text value="available at "/> <text variable="URL"/> </group> </else> </choose> </macro> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text variable="title" font-style="italic"/> </if> <else> <text variable="title"/> </else> </choose> </macro> <macro name="article-details"> <group delimiter=", "> <group delimiter=". "> <text macro="title"/> <text form="short" variable="container-title" font-style="italic"/> <text variable="volume" font-weight="bold"/> </group> <text variable="page"/> </group> <text macro="issued" prefix=" (" suffix=")"/> <text macro="access"/> </macro> <macro name="publisher"> <group delimiter=", "> <text variable="publisher"/> <text variable="publisher-place"/> </group> </macro> <macro name="pages"> <label variable="page" form="short" suffix=" "/> <text variable="page" form="short"/> </macro> <macro name="issued"> <date variable="issued" delimiter=" "> <date-part name="year"/> </date> </macro> <macro name="edition"> <choose> <if is-numeric="edition"> <group delimiter=" "> <text term="edition" form="short"/> <number variable="edition" form="numeric"/> </group> </if> <else> <text variable="edition" suffix="."/> </else> </choose> </macro> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout prefix="(" suffix=")" delimiter=", "> <text variable="citation-number" font-style="italic"/> </layout> </citation> <bibliography et-al-min="6" et-al-use-first="1" second-field-align="flush"> <layout suffix="."> <text variable="citation-number" suffix=". "/> <group delimiter=", "> <text macro="author"/> <choose> <if type="thesis"> <group delimiter=" "> <group delimiter=", "> <group> <!-- Always print, even if no university given --> <text value="thesis"/> </group> <text macro="publisher"/> </group> <text macro="issued" prefix="(" suffix=")"/> </group> </if> <else-if type="bill book graphic legal_case legislation motion_picture song chapter paper-conference" match="any"> <group delimiter=" "> <choose> <if type="chapter paper-conference" match="any"> <group delimiter=", "> <group delimiter=" "> <text term="in"/> <text variable="container-title" font-style="italic"/> </gr
cell:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" class="in-text" default-locale="en-US" demote-non-dropping-particle="sort-only" page-range-format="expanded"> <info> <title>Cell</title> <id>http://www.zotero.org/styles/cell</id> <link href="http://www.zotero.org/styles/cell" rel="self"/> <link href="http://www.cell.com/authors" rel="documentation"/> <author> <name>Adam Mark</name> <email>a.mark@uoguelph.ca</email> </author> <contributor> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </contributor> <contributor> <name>Aurimas Vinckevicius</name> <email>aurimas.dev@gmail.com</email> </contributor> <category citation-format="author-date"/> <category field="biology"/> <issn>0092-8674</issn> <eissn>1097-4172</eissn> <summary>The Cell journal style. Original by Julian Onions.</summary> <updated>2013-01-26T22:06:38+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="author-short"> <names variable="author"> <name form="short" and="text"/> </names> </macro> <macro name="author-count"> <names variable="author"> <name form="count"/> </names> </macro> <macro name="author"> <names variable="author"> <name name-as-sort-order="all" initialize-with="." and="text" delimiter-precedes-last="always"/> </names> </macro> <macro name="issued"> <date variable="issued"> <date-part name="year"/> </date> </macro> <macro name="publisher"> <group prefix="(" delimiter=": " suffix=")"> <text variable="publisher-place"/> <text variable="publisher"/> </group> </macro> <macro name="editor"> <names variable="editor"> <name initialize-with="." and="text" delimiter-precedes-last="always"/> <label form="short" prefix=", "/> </names> </macro> <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year"> <sort> <key macro="author-short" names-min="1" names-use-first="1"/> <key macro="author-count" names-min="3" names-use-first="3"/> <key macro="author" names-min="3" names-use-first="1"/> <key macro="issued"/> <key variable="title"/> </sort> <layout prefix="(" suffix=")" delimiter="; "> <group delimiter=", "> <text macro="author-short"/> <text macro="issued"/> </group> </layout> </citation> <bibliography et-al-min="11" et-al-use-first="10"> <sort> <key macro="author-short" names-min="1" names-use-first="1"/> <key macro="author-count" names-min="3" names-use-first="3"/> <key macro="author" names-min="3" names-use-first="1"/> <key macro="issued"/> </sort> <layout suffix="."> <group delimiter=" "> <text macro="author"/> <text macro="issued" prefix="(" suffix=")."/> <choose> <if type="article article-magazine article-newspaper article-journal review" match="any"> <text variable="title" suffix="."/> <text variable="container-title" form="short" text-case="title"/> <group delimiter=", "> <text variable="volume" font-style="italic"/> <text variable="page"/> </group> </if> <else-if type="chapter paper-conference" match="any"> <text variable="title" suffix="."/> <text variable="container-title" prefix="In " suffix="," text-case="title"/> <text macro="editor"/> <text macro="publisher" suffix=","/> <label variable="page" form="short"/> <text variable="page"/> </else-if> <else-if type="thesis"> <text variable="title" suffix="."/> <text variable="genre" suffix="."/> <text variable="publisher"/> </else-if> <else> <text variable="title"/> <text macro="publisher"/> </else> </choose> </group> </layout> </bibliography> </style> ';
//mla is short version
mla:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never"> <info> <title>Modern Language Association 7th edition</title> <title-short>MLA</title-short> <id>http://www.zotero.org/styles/modern-language-association</id> <link href="http://www.zotero.org/styles/modern-language-association" rel="self"/> <link href="http://owl.english.purdue.edu/owl/section/2/11/" rel="documentation"/> <author> <name>Ilouise S. Bradford</name> <email>isbradford@gmail.com</email> </author> <contributor> <name>Sarah Ficke</name> <email>sficke@email.unc.edu</email> </contributor> <contributor> <name>Sebastian Karcher</name> <email>karcher@u.northwestern.edu</email> </contributor> <contributor> <name>Christian Werthschulte</name> <email>Christian.Werthschulte@rub.de</email> </contributor> <contributor> <name>Simon Kornblith</name> <email>simon@simonster.com</email> </contributor> <contributor> <name>James Johnston</name> <email>thejamesjohnston@gmail.com</email> </contributor> <category citation-format="author"/> <category field="generic-base"/> <summary>This style adheres to the MLA 7th edition handbook and contains modifications to these types of sources: e-mail, forum posts, interviews, manuscripts, maps, presentations, TV broadcasts, and web pages.</summary> <updated>2014-07-06T20:05:10+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <locale xml:lang="en"> <terms> <term name="month-01" form="short">Jan.</term> <term name="month-02" form="short">Feb.</term> <term name="month-03" form="short">Mar.</term> <term name="month-04" form="short">Apr.</term> <term name="month-05" form="short">May</term> <term name="month-06" form="short">June</term> <term name="month-07" form="short">July</term> <term name="month-08" form="short">Aug.</term> <term name="month-09" form="short">Sept.</term> <term name="month-10" form="short">Oct.</term> <term name="month-11" form="short">Nov.</term> <term name="month-12" form="short">Dec.</term> <term name="volume" form="short"> <single>Vol.</single> <multiple>vols</multiple> </term> <term name="edition" form="short">ed</term> <term name="editor" form="verb-short">ed.</term> <term name="translator" form="verb-short">trans.</term> <term name="translator" form="short">trans.</term> </terms> </locale> <macro name="editor-translator"> <names variable="editor translator" delimiter=". "> <label form="verb-short" text-case="capitalize-first" suffix=" "/> <name and="text" delimiter=", "/> </names> </macro> <macro name="author"> <names variable="author"> <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=", "/> <substitute> <names variable="editor"/> <names variable="translator"/> <text macro="title"/> </substitute> </names> </macro> <macro name="author-short"> <names variable="author"> <name form="short" and="text" delimiter=", " initialize-with=". "/> <substitute> <names variable="editor"/> <names variable="translator"/> <text macro="title-short"/> </substitute> </names> </macro> <macro name="access"> <group delimiter=" "> <date variable="accessed"> <date-part name="day" suffix=" "/> <date-part name="month" form="short" suffix=" "/> <date-part name="year"/> </date> </group> </macro> <macro name="issued-full-date"> <choose> <if variable="issued"> <date variable="issued"> <date-part name="day" suffix=" "/> <date-part name="month" form="short" suffix=" " strip-periods="false"/> <date-part name="year"/> </date> </if> <else> <text term="no date" form="short"/> </else> </choose> </macro> <macro name="medium"> <choose> <if type="motion_picture"> <choose> <if variable="medium"> <text variable="medium" prefix=" "/> </if> <else> <text value="Film" prefix=" "/> </else> </choose> </if> <else-if type="broadcast"> <choose> <if variable="medium"> <text variable="medium" prefix=" "/> </if> <else> <text value="Televis
nature:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB"> <info> <title>Nature</title> <id>http://www.zotero.org/styles/nature</id> <link href="http://www.zotero.org/styles/nature" rel="self"/> <link href="http://www.nature.com/nature/authors/gta/index.html#a5.4" rel="documentation"/> <author> <name>Michael Berkowitz</name> <email>mberkowi@gmu.edu</email> </author> <category citation-format="numeric"/> <category field="science"/> <category field="generic-base"/> <issn>0028-0836</issn> <eissn>1476-4687</eissn> <updated>2014-06-22T03:46:28+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text variable="title" font-style="italic"/> </if> <else-if type="chapter" match="any"/> <else> <text variable="title"/> </else> </choose> </macro> <macro name="author"> <names variable="author"> <name sort-separator=", " delimiter=", " and="symbol" initialize-with=". " delimiter-precedes-last="never" name-as-sort-order="all"/> <label form="short" prefix=", "/> <et-al font-style="italic"/> </names> </macro> <macro name="access"> <choose> <if variable="volume"/> <else-if variable="DOI"> <text variable="DOI" prefix="doi:"/> </else-if> <else-if variable="URL"> <text term="at"/> <text variable="URL" prefix=" &lt;" suffix="&gt;"/> </else-if> </choose> </macro> <macro name="issuance"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song thesis chapter paper-conference" match="any"> <group delimiter=", " prefix="(" suffix=")."> <text variable="publisher" form="long"/> <date variable="issued"> <date-part name="year"/> </date> </group> </if> <else> <date prefix="(" suffix=")." variable="issued"> <date-part name="year"/> </date> </else> </choose> </macro> <macro name="container-title"> <choose> <if type="article-journal"> <text variable="container-title" font-style="italic" form="short"/> </if> <else> <text variable="container-title" font-style="italic"/> </else> </choose> </macro> <macro name="editor"> <choose> <if type="chapter paper-conference" match="any"> <names variable="editor" prefix="(" suffix=")"> <label form="short" suffix=" "/> <name and="symbol" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/> </names> </if> </choose> </macro> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout vertical-align="sup" delimiter=","> <text variable="citation-number"/> </layout> </citation> <bibliography et-al-min="6" et-al-use-first="1" second-field-align="flush" entry-spacing="0" line-spacing="2"> <layout> <text variable="citation-number" suffix="."/> <group delimiter=" "> <text macro="author" suffix="."/> <text macro="title" suffix="."/> <choose> <if type="chapter paper-conference" match="any"> <text term="in" form="long" plural="false"/> </if> </choose> <text macro="container-title"/> <text macro="editor"/> <group font-weight="bold"> <text variable="volume" suffix=","/> </group> <text variable="page"/> <text macro="issuance"/> <text macro="access"/> </group> </layout> </bibliography> </style> ';
//nature_csl:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB"> <info> <title>Nature</title> <id>http://www.zotero.org/styles/nature</id> <link href="http://www.zotero.org/styles/nature" rel="self"/> <link href="http://www.nature.com/nature/authors/gta/index.html#a5.4" rel="documentation"/> <author> <name>Michael Berkowitz</name> <email>mberkowi@gmu.edu</email> </author> <category citation-format="numeric"/> <category field="science"/> <category field="generic-base"/> <issn>0028-0836</issn> <eissn>1476-4687</eissn> <updated>2016-03-10T03:00:48+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text variable="title" font-style="italic"/> </if> <else-if type="chapter" match="any"/> <else> <text variable="title"/> </else> </choose> </macro> <macro name="author"> <names variable="author"> <name sort-separator=", " delimiter=", " and="symbol" initialize-with=". " delimiter-precedes-last="never" name-as-sort-order="all"/> <label form="short" prefix=", "/> <et-al font-style="italic"/> </names> </macro> <macro name="access"> <choose> <if variable="volume"/> <else-if variable="DOI"> <text variable="DOI" prefix="doi:"/> </else-if> <else-if type="webpage" variable="URL" match="all"> <text term="available at" text-case="capitalize-first" suffix=": "/> <text variable="URL" suffix=". "/> <group prefix="(" suffix=")" delimiter=": "> <text term="accessed" text-case="capitalize-first"/> <date variable="accessed"> <date-part name="day" suffix=" " form="ordinal"/> <date-part name="month" suffix=" "/> <date-part name="year"/> </date> </group> </else-if> </choose> </macro> <macro name="issuance"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song thesis chapter paper-conference" match="any"> <group delimiter=", " prefix="(" suffix=")."> <text variable="publisher" form="long"/> <date variable="issued"> <date-part name="year"/> </date> </group> </if> <else> <date prefix="(" suffix=")." variable="issued"> <date-part name="year"/> </date> </else> </choose> </macro> <macro name="container-title"> <choose> <if type="article-journal"> <text variable="container-title" font-style="italic" form="short"/> </if> <else> <text variable="container-title" font-style="italic"/> </else> </choose> </macro> <macro name="editor"> <choose> <if type="chapter paper-conference" match="any"> <names variable="editor" prefix="(" suffix=")"> <label form="short" suffix=" "/> <name and="symbol" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/> </names> </if> </choose> </macro> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout vertical-align="sup" delimiter=","> <text variable="citation-number"/> </layout> </citation> <bibliography et-al-min="6" et-al-use-first="1" second-field-align="flush" entry-spacing="0" line-spacing="2"> <layout> <text variable="citation-number" suffix="."/> <group delimiter=" "> <text macro="author" suffix="."/> <text macro="title" suffix="."/> <choose> <if type="chapter paper-conference" match="any"> <text term="in" form="long" plural="false"/> </if> </choose> <text macro="container-title"/> <text macro="editor"/> <group font-weight="bold"> <text variable="volume" suffix=","/> </group> <text variable="page"/> <text macro="issuance"/> <text macro="access"/> </group> </layout> </bibliography> </style>';
acm:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US"> <info> <title>ACM SIG Proceedings ("et al." for 3+ authors)</title> <id>http://www.zotero.org/styles/acm-sig-proceedings</id> <link href="http://www.zotero.org/styles/acm-sig-proceedings" rel="self"/> <link href="http://www.acm.org/sigs/publications/proceedings-templates" rel="documentation"/> <author> <name>Naeem Esfahani</name> <email>nesfaha2@gmu.edu</email> <uri>http://mason.gmu.edu/~nesfaha2/</uri> </author> <contributor> <name>Chris Horn</name> <email>chris.horn@securedecisions.com</email> </contributor> <category citation-format="numeric"/> <category field="science"/> <category field="engineering"/> <updated>2012-09-27T22:06:38+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="author"> <choose> <if type="webpage"> <text variable="title" suffix=":"/> </if> <else> <names variable="author"> <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/> <label form="short" prefix=" "/> <substitute> <names variable="editor"/> <names variable="translator"/> </substitute> </names> </else> </choose> </macro> <macro name="editor"> <names variable="editor"> <name initialize-with="." delimiter=", " and="text"/> <label form="short" prefix=", "/> </names> </macro> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout prefix="[" suffix="]" delimiter=", "> <text variable="citation-number"/> </layout> </citation> <bibliography entry-spacing="0" second-field-align="flush" et-al-min="3" et-al-use-first="1"> <sort> <key macro="author"/> <key variable="title"/> </sort> <layout suffix="."> <text variable="citation-number" prefix="[" suffix="]"/> <text macro="author" suffix=" "/> <date variable="issued" suffix=". "> <date-part name="year"/> </date> <choose> <if type="paper-conference"> <group delimiter=". "> <text variable="title"/> <group delimiter=" "> <text variable="container-title" font-style="italic"/> <group delimiter=", "> <group delimiter=", " prefix="(" suffix=")"> <text variable="publisher-place"/> <date variable="issued"> <date-part name="month" form="short" suffix=" "/> <date-part name="year"/> </date> </group> <text variable="page"/> </group> </group> </group> </if> <else-if type="article-journal"> <group delimiter=". "> <text variable="title"/> <text variable="container-title" font-style="italic"/> <group delimiter=", "> <text variable="volume"/> <group delimiter=" "> <text variable="issue"/> <date variable="issued" prefix="(" suffix=")"> <date-part name="month" form="short" suffix=" "/> <date-part name="year"/> </date> </group> <text variable="page"/> </group> </group> </else-if> <else-if type="patent"> <group delimiter=". "> <text variable="title"/> <text variable="number"/> <date variable="issued"> <date-part name="month" form="short" suffix=" "/> <date-part name="day" suffix=", "/> <date-part name="year"/> </date> </group> </else-if> <else-if type="thesis"> <group delimiter=". "> <text variable="title" font-style="italic"/> <text variable="archive_location" prefix="Doctoral Thesis #"/> <text variable="publisher"/> </group> </else-if> <else-if type="report"> <group delimiter=". "> <text variable="title" font-style="italic"/> <text variable="number" prefix="Technical Report #"/> <text variable="publisher"/> </group> </else-if> <else-if type="webpage"> <group delimiter=". "> <text variable="URL" font-style="italic"/> <date variable="accessed" prefix="Accessed: "> <date-part name="year" suffix="-"/> <date-part name="month" form="numeric-leading-zeros" suffix="-"/> <date-part name="day" form="numeric-leading-zeros"/> </date> </group> </else-if> <else-if type="chapter paper-conference" match="any"> <group delimiter=". "> <text variable="title"/> <text variable="container-title" font
apa:string ='<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded"> <info> <title>American Psychological Association 6th edition</title> <title-short>APA</title-short> <id>http://www.zotero.org/styles/apa</id> <link href="http://www.zotero.org/styles/apa" rel="self"/> <link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/> <author> <name>Simon Kornblith</name> <email>simon@simonster.com</email> </author> <contributor> <name>Bruce DArcus</name> </contributor> <contributor> <name>Curtis M. Humphrey</name> </contributor> <contributor> <name>Richard Karnesky</name> <email>karnesky+zotero@gmail.com</email> <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri> </contributor> <contributor> <name>Sebastian Karcher</name> </contributor> <contributor> <name> Brenton M. Wiernik</name> <email>zotero@wiernik.org</email> </contributor> <category citation-format="author-date"/> <category field="psychology"/> <category field="generic-base"/> <updated>2016-09-28T13:09:49+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <locale xml:lang="en"> <terms> <term name="editortranslator" form="short"> <single>ed. &amp; trans.</single> <multiple>eds. &amp; trans.</multiple> </term> <term name="translator" form="short"> <single>trans.</single> <multiple>trans.</multiple> </term> </terms> </locale> <macro name="container-contributors"> <choose> <if type="chapter paper-conference entry-dictionary entry-encyclopedia" match="any"> <group delimiter=", "> <names variable="container-author" delimiter=", "> <name and="symbol" initialize-with=". " delimiter=", "/> <label form="short" prefix=" (" text-case="title" suffix=")"/> </names> <names variable="editor translator" delimiter=", "> <name and="symbol" initialize-with=". " delimiter=", "/> <label form="short" prefix=" (" text-case="title" suffix=")"/> </names> </group> </if> </choose> </macro> <macro name="secondary-contributors"> <choose> <if type="article-journal chapter paper-conference entry-dictionary entry-encyclopedia" match="none"> <group delimiter=", " prefix=" (" suffix=")"> <names variable="container-author" delimiter=", "> <name and="symbol" initialize-with=". " delimiter=", "/> <label form="short" prefix=", " text-case="title"/> </names> <names variable="editor translator" delimiter=", "> <name and="symbol" initialize-with=". " delimiter=", "/> <label form="short" prefix=", " text-case="title"/> </names> </group> </if> </choose> </macro> <macro name="author"> <names variable="author"> <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/> <substitute> <names variable="editor"/> <names variable="translator"/> <choose> <if type="report"> <text variable="publisher"/> <text macro="title"/> </if> <else> <text macro="title"/> </else> </choose> </substitute> </names> </macro> <macro name="author-short"> <choose> <if type="patent" variable="number" match="all"> <text macro="patent-number"/> </if> <else> <names variable="author"> <name form="short" and="symbol" delimiter=", " initialize-with=". "/> <substitute> <names variable="editor"/> <names variable="translator"/> <choose> <if type="report"> <text variable="publisher"/> <text variable="title" form="short" font-style="italic"/> </if> <else-if type="legal_case"> <text variable="title" font-style="italic"/> </else-if> <else-if type="book graphic motion_picture song" match="any"> <text variable="title" form="short" font-style="italic"/> </else-if> <else-if type="bill legislation" match="any"> <text variable="title" form="short"/> </else-if> <else-if variable="reviewed-author"> <choose> <if variable="reviewed-title" match="none"> <text variable="title" form="short" font-style="italic" prefix="Review of "/>
// is short version
harvard:string = '<?xml version="1.0" encoding="utf-8"?> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only"> <info> <title>Harvard Reference format 1 (author-date)</title> <id>http://www.zotero.org/styles/harvard1</id> <link href="http://www.zotero.org/styles/harvard1" rel="self"/> <link href="http://libweb.anglia.ac.uk/referencing/harvard.htm" rel="documentation"/> <author> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </author> <category citation-format="author-date"/> <category field="generic-base"/> <summary>The Harvard author-date style</summary> <updated>2012-09-27T22:06:38+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="editor"> <names variable="editor" delimiter=", "> <name and="symbol" initialize-with=". " delimiter=", "/> <label form="short" prefix=", " text-case="lowercase"/> </names> </macro> <macro name="anon"> <text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/> </macro> <macro name="author"> <names variable="author"> <name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/> <label form="short" prefix=" " text-case="lowercase"/> <substitute> <names variable="editor"/> <text macro="anon"/> </substitute> </names> </macro> <macro name="author-short"> <names variable="author"> <name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/> <substitute> <names variable="editor"/> <names variable="translator"/> <text macro="anon"/> </substitute> </names> </macro> <macro name="access"> <choose> <if variable="URL"> <text value="Available at:" suffix=" "/> <text variable="URL"/> <group prefix=" [" suffix="]"> <text term="accessed" text-case="capitalize-first" suffix=" "/> <date variable="accessed"> <date-part name="month" suffix=" "/> <date-part name="day" suffix=", "/> <date-part name="year"/> </date> </group> </if> </choose> </macro> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any"> <text variable="title" font-style="italic"/> </if> <else> <text variable="title"/> </else> </choose> </macro> <macro name="publisher"> <group delimiter=": "> <text variable="publisher-place"/> <text variable="publisher"/> </group> </macro> <macro name="year-date"> <choose> <if variable="issued"> <date variable="issued"> <date-part name="year"/> </date> </if> <else> <text term="no date" form="short"/> </else> </choose> </macro> <macro name="edition"> <choose> <if is-numeric="edition"> <group delimiter=" "> <number variable="edition" form="ordinal"/> <text term="edition" form="short"/> </group> </if> <else> <text variable="edition" suffix="."/> </else> </choose> </macro> <macro name="pages"> <group> <label variable="page" form="short" suffix=" "/> <text variable="page"/> </group> </macro> <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true"> <layout prefix="(" suffix=")" delimiter="; "> <group delimiter=", "> <group delimiter=" "> <text macro="author-short"/> <text macro="year-date"/> </group> <group> <label variable="locator" form="short"/> <text variable="locator"/> </group> </group> </layout> </citation> <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1"> <sort> <key macro="author"/> <key variable="title"/> </sort> <layout> <text macro="author" suffix=","/> <date variable="issued" prefix=" " suffix="."> <date-part name="year"/> </date> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <group prefix=" " delimiter=" " suffix=","> <text macro="title"/> <text macro="edition"/> <text macro="editor"/> </group> <text prefix=" " suffix="." macro="publisher"/> </if> <else-if type="chapter paper-conference" match="any"> <text macro="
locale:string ='<?xml version="1.0" encoding="utf-8"?> <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en-US"> <info> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> <updated>2012-07-04T23:31:02+00:00</updated> </info> <style-options punctuation-in-quote="true" leading-noise-words="a,an,the" name-as-sort-order="ja zh kr my hu vi" name-never-short="ja zh kr my hu vi"/> <date form="text"> <date-part name="month" suffix=" "/> <date-part name="day" suffix=", "/> <date-part name="year"/> </date> <date form="numeric"> <date-part name="month" form="numeric-leading-zeros" suffix="/"/> <date-part name="day" form="numeric-leading-zeros" suffix="/"/> <date-part name="year"/> </date> <terms> <term name="radio-broadcast">radio broadcast</term> <term name="television-broadcast">television broadcast</term> <term name="podcast">podcast</term> <term name="instant-message">instant message</term> <term name="email">email</term> <term name="number-of-volumes"> <single>volume</single> <multiple>volumes</multiple> </term> <term name="accessed">accessed</term> <term name="and">and</term> <term name="and" form="symbol">&amp;</term> <term name="and others">and others</term> <term name="anonymous">anonymous</term> <term name="anonymous" form="short">anon.</term> <term name="at">at</term> <term name="available at">available at</term> <term name="by">by</term> <term name="circa">circa</term> <term name="circa" form="short">c.</term> <term name="cited">cited</term> <term name="edition"> <single>edition</single> <multiple>editions</multiple> </term> <term name="edition" form="short">ed.</term> <term name="et-al">et al.</term> <term name="forthcoming">forthcoming</term> <term name="from">from</term> <term name="ibid">ibid.</term> <term name="in">in</term> <term name="in press">in press</term> <term name="internet">internet</term> <term name="interview">interview</term> <term name="letter">letter</term> <term name="no date">no date</term> <term name="no date" form="short">n.d.</term> <term name="online">online</term> <term name="presented at">presented at the</term> <term name="reference"> <single>reference</single> <multiple>references</multiple> </term> <term name="reference" form="short"> <single>ref.</single> <multiple>refs.</multiple> </term> <term name="retrieved">retrieved</term> <term name="scale">scale</term> <term name="version">version</term> <!-- ANNO DOMINI; BEFORE CHRIST --> <term name="ad">AD</term> <term name="bc">BC</term> <!-- PUNCTUATION --> <term name="open-quote"></term> <term name="close-quote"></term> <term name="open-inner-quote"></term> <term name="close-inner-quote"></term> <term name="page-range-delimiter"></term> <!-- ORDINALS --> <term name="ordinal">th</term> <term name="ordinal-01">st</term> <term name="ordinal-02">nd</term> <term name="ordinal-03">rd</term> <term name="ordinal-11">th</term> <term name="ordinal-12">th</term> <term name="ordinal-13">th</term> <!-- LONG ORDINALS --> <term name="long-ordinal-01">first</term> <term name="long-ordinal-02">second</term> <term name="long-ordinal-03">third</term> <term name="long-ordinal-04">fourth</term> <term name="long-ordinal-05">fifth</term> <term name="long-ordinal-06">sixth</term> <term name="long-ordinal-07">seventh</term> <term name="long-ordinal-08">eighth</term> <term name="long-ordinal-09">ninth</term> <term name="long-ordinal-10">tenth</term> <!-- LONG LOCATOR FORMS --> <term name="book"> <single>book</single> <multiple>books</multiple> </term> <term name="chapter"> <single>chapter</single> <multiple>chapters</multiple> </term> <term name="column"> <single>column</single> <multiple>columns</multiple> </term> <term name="figure"> <single>figure</single> <multiple>figures</multiple> </term> <term name="folio"> <single>folio</single> <multiple>folios</multiple> </term> <term name="issue"> <single>number</single> <multiple>numbers</multiple> </term> <term name="line"> <single>line</single> <multiple>lines</multiple> </term>
frontiers:string = '<?xml version="1.0" encoding="utf-8"?><style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US"> <info> <title>Frontiers journals</title> <id>http://www.zotero.org/styles/frontiers</id> <link href="http://www.zotero.org/styles/frontiers" rel="self"/> <link href="http://www.frontiersin.org/about/AuthorGuidelines" rel="documentation"/> <author> <name>Sebastian Karcher</name> </author> <contributor> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </contributor> <category citation-format="author-date"/> <category field="generic-base"/> <summary>Style for the Open Access Frontiers in ... Journals</summary> <updated>2012-09-27T22:06:38+00:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <macro name="editor"> <names variable="editor" delimiter=", "> <label form="short" prefix=", "/> <name and="text" initialize-with=". " delimiter=", " prefix=" "/> </names> </macro> <macro name="author"> <names variable="author"> <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=" "/> <substitute> <names variable="editor"/> <text variable="title"/> </substitute> </names> </macro> <macro name="author-short"> <names variable="author"> <name form="short" and="text" delimiter=", " initialize-with=". "/> <substitute> <names variable="editor"/> <names variable="translator"/> <text variable="title"/> </substitute> </names> </macro> <macro name="access"> <choose> <if variable="DOI"> <text variable="DOI" prefix="doi:"/> </if> <else-if variable="URL"> <text value="Available at:" suffix=" "/> <text variable="URL"/> <group prefix=" [" suffix="]"> <text term="accessed" text-case="capitalize-first" suffix=" "/> <date variable="accessed"> <date-part name="month" suffix=" "/> <date-part name="day" suffix=", "/> <date-part name="year"/> </date> </group> </else-if> </choose> </macro> <macro name="title"> <choose> <if type="book"> <text variable="title" font-style="italic" suffix="."/> </if> <else-if type="chapter"> <text variable="title" quotes="true" suffix=","/> </else-if> <else> <text variable="title" suffix="."/> </else> </choose> </macro> <macro name="publisher"> <group delimiter=": "> <text variable="publisher-place"/> <text variable="publisher"/> </group> </macro> <macro name="year-date"> <date variable="issued"> <date-part name="year"/> </date> </macro> <macro name="edition"> <choose> <if is-numeric="edition"> <group delimiter=" "> <number variable="edition" form="ordinal"/> <text term="edition" form="short"/> </group> </if> <else> <text variable="edition" suffix="."/> </else> </choose> </macro> <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year"> <sort> <key macro="year-date"/> <key macro="author-short"/> </sort> <layout prefix="(" suffix=")" delimiter="; "> <group delimiter=", "> <text macro="author-short"/> <text macro="year-date"/> <text variable="locator"/> </group> </layout> </citation> <bibliography hanging-indent="true" et-al-min="7" et-al-use-first="6"> <sort> <key macro="author"/> <key macro="year-date"/> <key variable="title"/> </sort> <layout suffix="."> <text macro="author"/> <text macro="year-date" prefix=" (" suffix=")."/> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match
ama:string = '<?xml version="1.0" encoding="utf-8"?><style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US" page-range-format="expanded"> <info> <title>American Medical Association</title> <title-short>AMA</title-short> <id>http://www.zotero.org/styles/american-medical-association</id> <link href="http://www.zotero.org/styles/american-medical-association" rel="self"/> <link href="https://westlibrary.txwes.edu/sites/default/files/pdf/AMACitationStyle.pdf" rel="documentation"/> <author> <name>Julian Onions</name> <email>julian.onions@gmail.com</email> </author> <contributor> <name>Christian Pietsch</name> <uri>http://purl.org/net/pietsch</uri> </contributor> <contributor> <name>Daniel W Chan</name> <email>danwchan@protonmail.com</email> </contributor> <category citation-format="numeric"/> <category field="medicine"/> <summary>The American Medical Association style as used in JAMA.</summary> <updated>2018-01-18T11:17:00-05:00</updated> <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> </info> <locale xml:lang="en"> <terms> <term name="page-range-delimiter">-</term> </terms> </locale> <macro name="editor"> <names variable="editor"> <name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=", "/> </names> </macro> <macro name="author"> <group suffix="."> <names variable="author"> <name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/> <label form="short" prefix=", "/> <substitute> <names variable="editor"/> <text macro="title"/> </substitute> </names> </group> </macro> <macro name="access"> <choose> <if type="article-newspaper" match="none"> <choose> <if variable="DOI"> <text value="doi:"/> <text variable="DOI"/> </if> <else-if variable="URL"> <group delimiter=". " suffix="."> <text variable="URL"/> <choose> <if type="webpage"> <date variable="issued" prefix="Published " form="text"/> </if> </choose> <group> <text term="accessed" text-case="capitalize-first" suffix=" "/> <date variable="accessed"> <date-part name="month" suffix=" "/> <date-part name="day" suffix=", "/> <date-part name="year"/> </date> </group> </group> </else-if> </choose> </if> </choose> </macro> <macro name="title"> <choose> <if type="bill book graphic legal_case legislation motion_picture report song" match="any"> <text variable="title" font-style="italic" text-case="title"/> </if> <else> <text variable="title"/> </else> </choose> </macro> <macro name="publisher"> <group delimiter=": "> <text variable="publisher-place"/> <text variable="publisher"/> </group> </macro> <macro name="edition"> <choose> <if is-numeric="edition"> <group delimiter=" "> <number variable="edition" form="ordinal"/> <text term="edition" form="short"/> </group> </if> <else> <text variable="edition" suffix="."/> </else> </choose> </macro> <citation collapse="citation-number"> <sort> <key variable="citation-number"/> </sort> <layout delimiter="," vertical-align="sup"> <text variable="citation-number"/> <group prefix="(" suffix=")"> <label variable="locator" form="short" strip-periods="true"/> <text variable="locator"/> </group> </layout> </citation> <bibliography hanging-indent="false" et-a
}
export class CitationData{
public id:string;
public type:string;
public title:string;
public DOI:string;
public "container-title":string;
public publisher:string;
public author:{given:string, family:string, 'parse-names':boolean}[] =[];
public issued ={};//{"date-parts":string[]}[] =[];
public date:string;
public authors:string[] =[];
public volume:string;
public page:string ;
public ISSN:string ;
public issue:string;
}