Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update university-of-south-wales-harvard.csl #7296

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions university-of-south-wales-harvard.csl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<name>Aspen</name>
<email>[email protected]</email>
</author>
<contributor>
<name>Sez</name>
</contributor>
<category citation-format="author-date"/>
<category field="generic-base"/>
<summary>The author-year Harvard standard for the University of South Wales</summary>
Expand Down Expand Up @@ -64,26 +67,20 @@
</macro>
<macro name="access">
<choose>
<if variable="URL" match="all">
<group delimiter=" ">
<group delimiter=": ">
<text term="available at" text-case="capitalize-first"/>
<text variable="URL"/>
</group>
<group delimiter=": " prefix="(" suffix=")">
<text term="accessed" text-case="capitalize-first"/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
<if variable="DOI" match="any">
<text variable="DOI" prefix="Available at: doi:"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<text variable="DOI" prefix="Available at: doi:"/>
<text variable="DOI" prefix="Available at: https://doi.org/"/>

Should this use the URL for of the DOI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, that's one of the weirdnesses of USW Harvard - they specify "Available at: doi:" 🙄. Thank you for checking!

</if>
<else-if match="all" variable="DOI">
<text variable="DOI" prefix="doi: "/>
<else-if variable="URL">
<text variable="URL" prefix="Available at: "/>
</else-if>
</choose>
<group prefix=" (Accessed: " suffix=")">
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</macro>
<macro name="title">
<choose>
Expand Down