-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix longstanding issue with overzealous treatment as in-press. Add modern item types & update style in general
- Loading branch information
1 parent
fc52465
commit 4b6147b
Showing
1 changed file
with
103 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<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"/> | ||
<link href="https://www.science.org/content/page/instructions-preparing-initial-manuscript#science-citation-style" rel="documentation"/> | ||
<author> | ||
<name>Julian Onions</name> | ||
<email>[email protected]</email> | ||
|
@@ -44,45 +44,45 @@ | |
<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:"/> | ||
<text variable="DOI" prefix="https://doi.org/"/> | ||
</if> | ||
<else> | ||
<group prefix=" (" suffix=")"> | ||
<text value="available at "/> | ||
<text variable="URL"/> | ||
</group> | ||
<text variable="URL"/> | ||
</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 type="bill book graphic legal_case legislation motion_picture song" match="any"> | ||
<text variable="title" font-style="italic" text-case="title"/> | ||
</if> | ||
<else-if type="chapter report thesis paper-conference" match="any"> | ||
<text variable="title" quotes="true"/> | ||
</else-if> | ||
<else> | ||
<text variable="title"/> | ||
</else> | ||
</choose> | ||
</macro> | ||
<macro name="article-details"> | ||
<group delimiter=", "> | ||
<group delimiter=". "> | ||
<text macro="title"/> | ||
<group delimiter=" "> | ||
<text form="short" variable="container-title" font-style="italic"/> | ||
<text variable="volume" font-weight="bold"/> | ||
</group> | ||
<choose> | ||
<if variable="page volume" match="none"> | ||
<text variable="DOI" prefix="doi: "/> | ||
</if> | ||
</choose> | ||
<text variable="page"/> | ||
</group> | ||
<text macro="issued" prefix=" (" suffix=")"/> | ||
<text macro="access"/> | ||
</macro> | ||
<macro name="publisher"> | ||
<group delimiter=", "> | ||
|
@@ -125,119 +125,107 @@ | |
<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 variable="title" prefix=""" suffix="""/> | ||
<text term="in"/> | ||
<text variable="container-title" font-style="italic"/> | ||
</group> | ||
<text macro="editor"/> | ||
</group> | ||
</if> | ||
<else> | ||
<text macro="title"/> | ||
</else> | ||
</choose> | ||
<group prefix="(" suffix=")" delimiter="; "> | ||
<group delimiter=", "> | ||
<text macro="publisher"/> | ||
<text macro="edition"/> | ||
<text macro="issued"/> | ||
</group> | ||
<text variable="URL"/> | ||
</group> | ||
</group> | ||
<group delimiter=" of "> | ||
<group> | ||
<label variable="volume" form="short" suffix=" "/> | ||
<number variable="volume"/> | ||
</group> | ||
<text variable="collection-title" font-style="italic"/> | ||
<text macro="title"/> | ||
</group> | ||
<choose> | ||
<if type="thesis"> | ||
<group delimiter=" " prefix=", "> | ||
<group delimiter=", "> | ||
<text term="thesis"/> | ||
<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=" " prefix=" "> | ||
<choose> | ||
<if type="chapter paper-conference" match="any"> | ||
<text macro="pages"/> | ||
</if> | ||
</choose> | ||
</else-if> | ||
<else-if type="article-journal"> | ||
<choose> | ||
<if variable="page"> | ||
<choose> | ||
<if is-numeric="page" match="none"> | ||
<group> | ||
<group delimiter=", "> | ||
<text variable="container-title" form="short" font-style="italic"/> | ||
<group> | ||
<text term="in press"/> | ||
</group> | ||
</group> | ||
<text macro="access"/> | ||
</group> | ||
</if> | ||
<else> | ||
<text macro="article-details"/> | ||
</else> | ||
</choose> | ||
<group delimiter=", "> | ||
<group delimiter=" "> | ||
<text term="in"/> | ||
<text variable="container-title" font-style="italic" text-case="title"/> | ||
</group> | ||
<text macro="editor"/> | ||
</group> | ||
</if> | ||
<else> | ||
<text macro="article-details"/> | ||
</else> | ||
</choose> | ||
</else-if> | ||
<else-if type="report"> | ||
<group> | ||
<group prefix="(" suffix=")" delimiter="; "> | ||
<group delimiter=", "> | ||
<text variable="title" quotes="true"/> | ||
<text variable="collection-title" font-style="italic"/> | ||
</group> | ||
<group prefix=" (" suffix=")" delimiter=", "> | ||
<group delimiter=" "> | ||
<text variable="genre" form="short"/> | ||
<number variable="number"/> | ||
</group> | ||
<text variable="publisher"/> | ||
<text variable="publisher-place"/> | ||
<text macro="publisher"/> | ||
<text macro="edition"/> | ||
<text macro="issued"/> | ||
</group> | ||
<text variable="URL"/> | ||
</group> | ||
<text macro="pages"/> | ||
<text macro="access"/> | ||
</else-if> | ||
<else> | ||
</group> | ||
<group delimiter=" of "> | ||
<group> | ||
<group delimiter=", "> | ||
<text macro="editor"/> | ||
<group delimiter=". "> | ||
<text macro="title"/> | ||
<text form="short" variable="container-title" font-style="italic"/> | ||
<text variable="volume" font-weight="bold"/> | ||
</group> | ||
<label variable="volume" form="short" suffix=" "/> | ||
<number variable="volume"/> | ||
</group> | ||
<text variable="collection-title" font-style="italic"/> | ||
</group> | ||
<choose> | ||
<if type="chapter paper-conference" match="any"> | ||
<text macro="pages" prefix=", "/> | ||
</if> | ||
</choose> | ||
</else-if> | ||
<else-if type="article-journal"> | ||
<text macro="article-details" prefix=". "/> | ||
</else-if> | ||
<else-if type="report"> | ||
<group prefix=" (" suffix=")" delimiter=", "> | ||
<group delimiter=" "> | ||
<text variable="genre" form="short"/> | ||
<number variable="number"/> | ||
</group> | ||
<text variable="publisher"/> | ||
<text variable="publisher-place"/> | ||
<text macro="issued"/> | ||
</group> | ||
<text macro="access-value" prefix="; "/> | ||
</else-if> | ||
<else-if type="article"> | ||
<group delimiter=". " prefix=". "> | ||
<group delimiter=" "> | ||
<text variable="publisher"/> | ||
<text variable="number"/> | ||
<text term="article" text-case="capitalize-first" prefix="[" suffix="]"/> | ||
<text macro="issued" prefix="(" suffix=")"/> | ||
</group> | ||
<text macro="access-value"/> | ||
</group> | ||
</else-if> | ||
<else-if type="dataset software" match="any"> | ||
<group delimiter=" " prefix=", "> | ||
<group delimiter=", "> | ||
<group delimiter=" "> | ||
<text term="version"/> | ||
<text variable="version"/> | ||
</group> | ||
<text macro="issued" prefix=" (" suffix=")"/> | ||
<text variable="publisher"/> | ||
</group> | ||
<text macro="pages"/> | ||
<text macro="access"/> | ||
</else> | ||
</choose> | ||
</group> | ||
<text macro="issued" prefix="(" suffix=")"/> | ||
</group> | ||
<text macro="access-value" prefix="; "/> | ||
</else-if> | ||
<else> | ||
<group> | ||
<group delimiter=", " prefix=", "> | ||
<text macro="editor"/> | ||
<group delimiter=". "> | ||
<text variable="container-title" font-style="italic"/> | ||
<text variable="volume" font-weight="bold"/> | ||
</group> | ||
</group> | ||
<text macro="issued" prefix=" (" suffix=")"/> | ||
</group> | ||
<text macro="pages"/> | ||
<text macro="access" prefix=". "/> | ||
</else> | ||
</choose> | ||
</layout> | ||
</bibliography> | ||
</style> |