Advertisement
swardiantara

Harvard - Cardiff University (ITS)

Jun 16th, 2025
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.37 KB | Writing | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
  3.   <info>
  4.     <title>Cardiff University - Harvard (ITS)</title>
  5.     <id>http://www.zotero.org/styles/cardiff-university-harvard</id>
  6.     <link href="http://www.zotero.org/styles/cardiff-university-harvard" rel="self"/>
  7.     <link href="https://xerte.cardiff.ac.uk/play_4191" rel="documentation"/>
  8.     <link href="https://xerte.cardiff.ac.uk/play_4069" rel="documentation"/>
  9.     <link href="https://github.com/citation-style-language/styles/pull/3676#issuecomment-420542651" rel="documentation"/>
  10.     <author>
  11.       <name>Zoe Young</name>
  12.       <email>[email protected]</email>
  13.     </author>
  14.     <author>
  15.       <name>Lewys Peters</name>
  16.     </author>
  17.     <contributor>
  18.       <name>Patrick O'Brien</name>
  19.     </contributor>
  20.     <category citation-format="author-date"/>
  21.     <summary>The Harvard author-date style - adapted for Cardiff University</summary>
  22.     <updated>2025-05-18T00:55:38+00:00</updated>
  23.     <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
  24.   </info>
  25.   <macro name="editor">
  26.     <names variable="editor" delimiter=", ">
  27.       <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with=". " delimiter=", "/>
  28.       <label form="short" prefix=" "/>
  29.     </names>
  30.   </macro>
  31.   <macro name="author">
  32.     <names variable="author">
  33.       <name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
  34.       <label form="short" prefix=" "/>
  35.       <substitute>
  36.         <names variable="editor"/>
  37.         <choose>
  38.           <if type="article-newspaper article-magazine" match="any">
  39.             <text variable="container-title"/>
  40.           </if>
  41.           <else>
  42.             <text macro="title"/>
  43.           </else>
  44.         </choose>
  45.       </substitute>
  46.     </names>
  47.   </macro>
  48.   <macro name="author-short">
  49.     <names variable="author">
  50.       <name form="short" and="text" delimiter=", " et-al-min="3" et-al-use-first="1" delimiter-precedes-last="never" initialize-with=". "/>
  51.       <et-al font-style="italic"/>
  52.       <substitute>
  53.         <names variable="editor"/>
  54.         <names variable="translator"/>
  55.         <choose>
  56.           <if type="article-newspaper article-magazine" match="any">
  57.             <text variable="container-title" text-case="title" font-style="italic"/>
  58.           </if>
  59.           <else>
  60.             <text macro="title"/>
  61.           </else>
  62.         </choose>
  63.       </substitute>
  64.     </names>
  65.   </macro>
  66.   <macro name="access">
  67.     <choose>
  68.       <if variable="URL" match="all">
  69.         <group delimiter=" ">
  70.           <group delimiter=": ">
  71.             <text term="available at" text-case="capitalize-first"/>
  72.             <text variable="URL"/>
  73.           </group>
  74.           <group prefix="[" suffix="]" delimiter=": ">
  75.             <text term="accessed" text-case="capitalize-first"/>
  76.             <date variable="accessed">
  77.               <date-part name="day" suffix=" "/>
  78.               <date-part name="month" suffix=" "/>
  79.               <date-part name="year"/>
  80.             </date>
  81.           </group>
  82.         </group>
  83.       </if>
  84.       <else-if match="all" variable="DOI">
  85.         <text variable="DOI" prefix="doi: "/>
  86.       </else-if>
  87.     </choose>
  88.   </macro>
  89.   <macro name="title">
  90.     <choose>
  91.       <if type="bill book graphic legal_case legislation motion_picture report song thesis patent post post-weblog webpage" match="any">
  92.         <text variable="title" font-style="italic"/>
  93.       </if>
  94.       <else>
  95.         <text variable="title" suffix="."/>
  96.       </else>
  97.     </choose>
  98.   </macro>
  99.   <macro name="publisher">
  100.     <group delimiter=": " suffix="">
  101.       <text variable="publisher-place"/>
  102.       <text variable="publisher"/>
  103.     </group>
  104.   </macro>
  105.   <macro name="year-date">
  106.     <choose>
  107.       <if variable="issued">
  108.         <date variable="issued">
  109.           <date-part name="year"/>
  110.         </date>
  111.         <text variable="year-suffix"/>
  112.       </if>
  113.       <else>
  114.         <text term="no date" prefix="[" suffix="]"/>
  115.         <text variable="year-suffix" prefix="[" suffix="]"/>
  116.       </else>
  117.     </choose>
  118.   </macro>
  119.   <macro name="published-date">
  120.     <choose>
  121.       <if type="article-newspaper article-magazine speech" match="any">
  122.         <date variable="issued">
  123.           <date-part name="day" prefix=" " suffix=" "/>
  124.           <date-part name="month" form="long"/>
  125.         </date>
  126.       </if>
  127.     </choose>
  128.   </macro>
  129.   <macro name="edition">
  130.     <choose>
  131.       <if is-numeric="edition">
  132.         <group delimiter=" ">
  133.           <number variable="edition" form="ordinal"/>
  134.           <text term="edition" form="short"/>
  135.         </group>
  136.       </if>
  137.       <else>
  138.         <text variable="edition" suffix="."/>
  139.       </else>
  140.     </choose>
  141.   </macro>
  142.   <macro name="pages">
  143.     <group>
  144.       <label variable="page" form="short" suffix=" "/>
  145.       <text variable="page"/>
  146.     </group>
  147.     <choose>
  148.       <if type="article article-journal article-magazine article-newspaper book review review-book report" match="any"/>
  149.     </choose>
  150.   </macro>
  151.   <macro name="bill-detail">
  152.     <choose>
  153.       <if type="bill legislation" match="any">
  154.         <group>
  155.           <text variable="section"/>
  156.           <text variable="volume"/>
  157.         </group>
  158.       </if>
  159.     </choose>
  160.   </macro>
  161.   <macro name="patent">
  162.     <text variable="number" suffix=" [Patent]."/>
  163.   </macro>
  164.   <citation et-al-min="3" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true">
  165.     <sort>
  166.       <key macro="year-date"/>
  167.       <key variable="author"/>
  168.     </sort>
  169.     <layout prefix="(" suffix=")" delimiter="; ">
  170.       <group delimiter=", ">
  171.         <group delimiter=", ">
  172.           <text macro="author-short"/>
  173.           <text macro="year-date"/>
  174.         </group>
  175.         <group>
  176.           <label variable="locator" form="short"/>
  177.           <text variable="locator"/>
  178.         </group>
  179.       </group>
  180.     </layout>
  181.   </citation>
  182.   <bibliography et-al-min="50" et-al-use-first="1" hanging-indent="false">
  183.     <sort>
  184.       <key macro="author"/>
  185.       <key macro="year-date"/>
  186.       <key variable="title"/>
  187.     </sort>
  188.     <layout>
  189.       <group delimiter=". ">
  190.         <text macro="author"/>
  191.         <text macro="year-date"/>
  192.         <choose>
  193.           <if type="bill book graphic legal_case legislation motion_picture report song entry-encyclopedia entry-dictionary" match="any">
  194.             <group delimiter=". " suffix=".">
  195.               <text macro="title"/>
  196.               <text macro="edition"/>
  197.               <text macro="editor"/>
  198.               <text macro="publisher"/>
  199.               <text macro="bill-detail"/>
  200.               <text macro="pages"/>
  201.             </group>
  202.           </if>
  203.           <else-if type="chapter paper-conference" match="any">
  204.             <group delimiter=". " suffix=".">
  205.               <text macro="title"/>
  206.               <group prefix=" " delimiter=" ">
  207.                 <text term="in" text-case="capitalize-first" suffix=":"/>
  208.                 <text macro="editor"/>
  209.                 <text variable="container-title" font-style="italic" suffix="."/>
  210.                 <text variable="collection-title" suffix="."/>
  211.               </group>
  212.               <group prefix=" " delimiter=" ">
  213.                 <text macro="edition"/>
  214.                 <group suffix="" delimiter=", ">
  215.                   <date form="text" variable="event-date"/>
  216.                   <text macro="publisher"/>
  217.                   <text macro="pages"/>
  218.                 </group>
  219.               </group>
  220.             </group>
  221.           </else-if>
  222.           <else-if type="thesis">
  223.             <group delimiter=". " suffix=".">
  224.               <text macro="title"/>
  225.               <text macro="edition"/>
  226.               <group prefix=" " delimiter=", ">
  227.                 <text variable="genre"/>
  228.                 <text macro="publisher"/>
  229.               </group>
  230.             </group>
  231.           </else-if>
  232.           <else-if type="webpage post post-weblog" match="any">
  233.             <group delimiter=". " suffix=".">
  234.               <text macro="title"/>
  235.             </group>
  236.           </else-if>
  237.           <else-if type="patent" match="any">
  238.             <group delimiter=" " suffix=".">
  239.               <text macro="title"/>
  240.               <text macro="patent"/>
  241.             </group>
  242.           </else-if>
  243.           <else>
  244.             <group delimiter=". " suffix=".">
  245.               <group>
  246.                 <text macro="title"/>
  247.                 <text macro="editor" prefix=" "/>
  248.               </group>
  249.               <group delimiter=", ">
  250.                 <group delimiter=" ">
  251.                   <text variable="container-title" font-style="italic"/>
  252.                   <group>
  253.                     <text variable="volume"/>
  254.                     <text variable="issue" prefix="(" suffix=")"/>
  255.                   </group>
  256.                 </group>
  257.                 <text macro="pages"/>
  258.               </group>
  259.             </group>
  260.           </else>
  261.         </choose>
  262.       </group>
  263.       <group suffix=".">
  264.         <text macro="published-date"/>
  265.         <text prefix=". " macro="access" suffix="."/>
  266.       </group>
  267.     </layout>
  268.   </bibliography>
  269. </style>
  270.  
Tags: csl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement