Skip to content

Commit

Permalink
Modify american-journal-of-archaeology.csl (#5719)
Browse files Browse the repository at this point in the history
* Use title case and minimal page ranges

Correcting to follow cited style guide.


1. Remove date at start of biblio entry since it's included at the end under "issue". Also the style doesn't seem to use anything beyond year except for unpublished things. I haven't removed all uses yet, however, since I'm not 100% on that.

2. Remove leading period when there's a genre as the that follows the title which ends with a period (in the biblio). Remaining issue: if there's not genre specified, the issue still includes the event, if there is one, but the "presented" that introduces it isn't capitalized.

* Thesis, editor, and presentation tweaked

1. Thesis now excludes place and has correct punctuation; citation date is just the year
2. Editor of journal now punctuated correctly
3. "Presented at" now capitalized correctly with or without type (=genre in csl)

* Publisher and edition

1. Handle missing place or publishing house in publisher
2. Handle editions better since final . may or may not be given

* journal-article

Put parens around issue number and removed space after the colon before page numbers.
  • Loading branch information
Jmuccigr committed Dec 30, 2021
1 parent ddeda4f commit 0b4e047
Showing 1 changed file with 33 additions and 19 deletions.
52 changes: 33 additions & 19 deletions american-journal-of-archaeology.csl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal" default-locale="en-US">
<info>
<title>American Journal of Archaeology</title>
<title-short>AJA</title-short>
Expand All @@ -15,7 +15,7 @@
<issn>0002-9114</issn>
<eissn>1939-828X</eissn>
<summary>The American Journal of Archaeology style</summary>
<updated>2017-04-13T16:17:59+00:00</updated>
<updated>2021-11-12T14:22:00+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>
Expand All @@ -32,7 +32,7 @@
<if variable="author">
<names variable="editor">
<label form="verb-short" prefix=" " text-case="capitalize-first" suffix=" "/>
<name and="text" delimiter=", "/>
<name and="text" delimiter=", " suffix=". "/>
</names>
</if>
</choose>
Expand Down Expand Up @@ -170,10 +170,10 @@
</choose>
</if>
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
<text variable="title" font-style="italic" text-case="title"/>
</else-if>
<else>
<text variable="title" suffix=". " quotes="true"/>
<text variable="title" suffix=". " quotes="true" text-case="title"/>
</else>
</choose>
</macro>
Expand All @@ -188,7 +188,7 @@
</group>
</if>
<else>
<text variable="edition" suffix="."/>
<text variable="edition"/>
</else>
</choose>
</if>
Expand All @@ -198,7 +198,7 @@
<choose>
<if type="article-journal">
<text variable="volume" prefix=" "/>
<text variable="issue" prefix=" "/>
<text variable="issue" prefix=" (" suffix=")"/>
</if>
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=". " delimiter=". ">
Expand Down Expand Up @@ -239,7 +239,7 @@
</group>
</if>
<else-if type="article-journal">
<text variable="page" prefix=": "/>
<text variable="page" prefix=":"/>
</else-if>
</choose>
</macro>
Expand All @@ -265,9 +265,19 @@
<text variable="container-title" font-style="italic"/>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
<group>
<choose>
<if type="thesis" match="none">
<text value=". "/>
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</if>
<else>
<text variable="publisher"/>
</else>
</choose>
</group>
</macro>
<macro name="date">
Expand All @@ -287,7 +297,14 @@
</macro>
<macro name="event">
<group>
<text term="presented at" suffix=" "/>
<choose>
<if variable="genre" match="none">
<text term="presented at" suffix=" " text-case="capitalize-first"/>
</if>
<else>
<text term="presented at" suffix=" " text-case="lowercase"/>
</else>
</choose>
<text variable="event"/>
</group>
</macro>
Expand All @@ -300,7 +317,7 @@
<if variable="title" match="none"/>
<else-if type="thesis"/>
<else>
<text variable="genre" text-case="capitalize-first" prefix=". "/>
<text variable="genre" text-case="capitalize-first" prefix=" "/>
</else>
</choose>
</macro>
Expand All @@ -320,14 +337,13 @@
<text macro="day-month" prefix=", "/>
</else-if>
<else>
<group prefix=". " delimiter=", ">
<group prefix="" delimiter=", ">
<choose>
<if type="thesis">
<text variable="genre" text-case="capitalize-first"/>
</if>
</choose>
<text macro="publisher"/>
<text macro="day-month"/>
</group>
</else>
</choose>
Expand All @@ -342,7 +358,6 @@
<group delimiter=" ">
<text macro="contributors-short"/>
<text macro="date"/>
<text macro="day-month" prefix=" (" suffix="), "/>
</group>
<text macro="point-locators"/>
</group>
Expand All @@ -356,14 +371,13 @@
<layout suffix=".">
<text macro="contributors" suffix=". "/>
<text macro="date" suffix=". "/>
<text macro="day-month" text-case="capitalize-first" suffix=". "/>
<text macro="title"/>
<text macro="description"/>
<text macro="secondary-contributors" prefix=". "/>
<text macro="secondary-contributors" prefix=" "/>
<text macro="container-title"/>
<text macro="container-contributors" prefix=", "/>
<text macro="locators-chapter"/>
<text macro="edition" prefix=". "/>
<text macro="edition" prefix=". " strip-periods="true"/>
<text macro="locators"/>
<text macro="collection-title" prefix=". "/>
<text macro="issue"/>
Expand Down

0 comments on commit 0b4e047

Please sign in to comment.