Skip to content
Permalink
Browse files

Create hpb.csl (#4226)

  • Loading branch information...
POBrien333 authored and rmzelle committed Jul 27, 2019
1 parent f18b930 commit 0a9b119457c17fd1a297c17fbef67be13c6043df
Showing with 165 additions and 0 deletions.
  1. +165 −0 hpb.csl
165 hpb.csl
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" page-range-format="minimal" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>HPB</title>
<id>http://www.zotero.org/styles/hpb</id>
<link href="http://www.zotero.org/styles/hpb" rel="self"/>
<link href="http://www.zotero.org/styles/scienceasia" rel="template"/>
<link href="https://www.hpbonline.org/content/authorinfo#idp1331616" rel="documentation"/>
<author>
<name>Patrick O'Brien, PhD</name>
<email>citationstyler@gmail.com</email>
</author>
<category citation-format="numeric"/>
<category field="medicine"/>
<issn>1365-182X</issn>
<eissn>1477-2574</eissn>
<summary>Style for the Official Journal of the International Hepato Pancreato Biliary Association</summary>
<updated>2019-07-26T13:10:57+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="edition" form="short">edn.</term>
</terms>
</locale>
<macro name="editor">
<names variable="editor" prefix=" " delimiter=", ">
<name initialize-with="" name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label strip-periods="true" prefix=", "/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name delimiter-precedes-last="always" et-al-min="10" et-al-use-first="8" initialize-with="" name-as-sort-order="all" sort-separator=" "/>
<et-al font-style="italic"/>
<label strip-periods="false" prefix=", "/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if variable="DOI" match="any">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
<else-if type="webpage post post-weblog" match="any">
<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="publisher">
<group delimiter=", " prefix=" ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" text-case="lowercase" strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="pages">
<group delimiter=" ">
<label plural="never" strip-periods="false" variable="page" form="short"/>
<text variable="page"/>
</group>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout vertical-align="sup" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography delimiter-precedes-et-al="always" et-al-min="7" et-al-use-first="6" second-field-align="flush">
<layout suffix=".">
<text variable="citation-number" suffix=". "/>
<group delimiter=". ">
<group delimiter=" ">
<text macro="author" strip-periods="true"/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
</group>
<text variable="title" text-case="title" font-style="italic"/>
<group>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group delimiter="," prefix=" ">
<text macro="edition" prefix=" "/>
<text macro="editor"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group delimiter=", ">
<group delimiter=". ">
<group delimiter=": ">
<text term="in" text-case="capitalize-first"/>
<text macro="editor"/>
</group>
<text variable="container-title" font-style="italic" text-case="title"/>
</group>
<text variable="collection-title"/>
<group delimiter=" ">
<label variable="volume" form="short" strip-periods="true"/>
<text variable="volume"/>
</group>
<text macro="edition"/>
<text macro="publisher"/>
<text macro="pages"/>
</group>
</else-if>
<else-if type="thesis" match="any">
<group delimiter=", ">
<choose>
<if variable="genre">
<text variable="genre"/>
</if>
<else>
<text variable="genre"/>
</else>
</choose>
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</group>
</else-if>
<else>
<group delimiter=": " prefix=" ">
<group delimiter=" ">
<text variable="container-title" form="short" font-style="italic" strip-periods="true"/>
<text variable="volume" font-weight="normal"/>
</group>
<text variable="page"/>
</group>
</else>
</choose>
</group>
</group>
<text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>

0 comments on commit 0a9b119

Please sign in to comment.
You can’t perform that action at this time.