Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CitationStyleLanguagePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ public function getCitationStyles(): array
'title' => __('plugins.generic.citationStyleLanguage.style.modern-language-association'),
'isEnabled' => true,
],
[
'id' => 'national-library-of-medicine',
'title' => __('plugins.generic.citationStyleLanguage.style.national-library-of-medicine'),
'isEnabled' => true,
],
[
'id' => 'turabian-fullnote-bibliography',
'title' => __('plugins.generic.citationStyleLanguage.style.turabian-fullnote-bibliography'),
Expand Down
291 changes: 291 additions & 0 deletions citation-styles/national-library-of-medicine.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" initialize-with-hyphen="false" default-locale="en-US">
<info>
<title>National Library of Medicine</title>
<title-short>NLM</title-short>
<id>http://www.zotero.org/styles/national-library-of-medicine</id>
<link href="http://www.zotero.org/styles/national-library-of-medicine" rel="self"/>
<link href="http://www.nlm.nih.gov/bsd/uniform_requirements.html" rel="documentation"/>
<link href="https://www.ncbi.nlm.nih.gov/books/NBK7256/" rel="documentation"/>
<link href="http://www.nlm.nih.gov/pubs/formats/recommendedformats1991-full.pdf" rel="documentation"/>
<author>
<name>Michael Berkowitz</name>
<email>mberkowi@gmu.edu</email>
</author>
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<contributor>
<name>Matt Tracy</name>
</contributor>
<category citation-format="numeric"/>
<category field="medicine"/>
<summary>National Library of Medicine citation style for biomedical literature</summary>
<updated>2025-01-14T12:00: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 xml:lang="en">
<terms>
<term name="presented at">presented at</term>
<term name="retrieved">available</term>
<term name="section" form="short">sect.</term>
</terms>
</locale>
<macro name="author">
<names variable="author">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=", "/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="editor">
<group delimiter=": ">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="capitalize-first"/>
</if>
</choose>
<names variable="editor" suffix=".">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
<label form="long" prefix=", "/>
</names>
</group>
</macro>
<macro name="publisher">
<group delimiter=": " suffix=";">
<choose>
<if type="thesis">
<text variable="publisher-place" prefix="[" suffix="]"/>
</if>
<else-if type="speech"/>
<else>
<text variable="publisher-place"/>
</else>
</choose>
<text variable="publisher"/>
</group>
</macro>
<macro name="access">
<choose>
<if variable="URL">
<group delimiter=": ">
<group delimiter=" ">
<text term="retrieved" text-case="capitalize-first"/>
<text term="from"/>
</group>
<text variable="URL"/>
</group>
</if>
</choose>
</macro>
<macro name="accessed-date">
<choose>
<if variable="URL">
<group prefix="[" suffix="]" delimiter=" ">
<text term="cited"/>
<date variable="accessed">
<date-part name="year"/>
<date-part name="month" prefix=" " form="short" strip-periods="true"/>
<date-part name="day" prefix=" "/>
</date>
</group>
</if>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper" match="any">
<group suffix="." delimiter=" ">
<text variable="container-title" form="short" strip-periods="true"/>
<choose>
<if variable="URL">
<text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</group>
<text macro="edition" prefix=" "/>
</if>
<!--add event-name and event-place once they become available-->
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<group delimiter=". ">
<text variable="container-title"/>
<group delimiter=" ">
<text term="section" form="short" text-case="capitalize-first"/>
<text variable="section"/>
</group>
</group>
<text variable="number"/>
</group>
</else-if>
<else-if type="speech">
<group delimiter=": " suffix=";">
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<text term="presented at"/>
</group>
<text variable="event"/>
</group>
</else-if>
<else>
<text variable="container-title" suffix="."/>
</else>
</choose>
</macro>
<macro name="title">
<text variable="title"/>
<choose>
<if type="article-journal article-magazine chapter paper-conference article-newspaper" match="none">
<choose>
<if variable="URL">
<text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
<text macro="edition" prefix=". "/>
</if>
</choose>
<choose>
<if type="thesis">
<text variable="genre" prefix=" [" suffix="]"/>
</if>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="date">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<group suffix=";" delimiter=" ">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day"/>
</date>
<text macro="accessed-date"/>
</group>
</if>
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<date variable="issued" delimiter=" ">
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day"/>
</date>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="report">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
<date-part name="month" form="short" strip-periods="true"/>
</date>
</else-if>
<else-if type="patent">
<group suffix=".">
<group delimiter=", ">
<text variable="number"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
<text macro="accessed-date" prefix=" "/>
</group>
</else-if>
<else-if type="speech">
<group delimiter="; ">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day"/>
</date>
<text variable="event-place"/>
</group>
</else-if>
<else>
<group suffix=".">
<date variable="issued">
<date-part name="year"/>
</date>
<text macro="accessed-date" prefix=" "/>
</group>
</else>
</choose>
</macro>
<macro name="pages">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<text variable="page" prefix=":"/>
</if>
<else>
<text variable="page" prefix=" p. "/>
</else>
</choose>
</macro>
<macro name="pmcid">
<text variable="PMCID" prefix=" PMCID: "/>
<choose>
<if variable="PMCID" match="none">
<text variable="PMID" prefix=" PMID: "/>
</if>
</choose>
</macro>
<macro name="journal-location">
<choose>
<if type="article-journal article-magazine" match="any">
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
</if>
</choose>
</macro>
<macro name="report-details">
<choose>
<if type="report">
<text variable="number" prefix="Report No.: "/>
</if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout vertical-align="sup" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography second-field-align="flush">
<layout>
<text variable="citation-number" suffix=". "/>
<group delimiter=". " suffix=". ">
<text macro="author"/>
<text macro="title"/>
</group>
<group delimiter=" " suffix=". ">
<text macro="editor"/>
<text macro="container-title"/>
<text macro="publisher"/>
<group>
<text macro="date"/>
<text macro="journal-location"/>
<text macro="pages"/>
</group>
</group>
<text macro="report-details" suffix=". "/>
<text macro="access"/>
<text macro="pmcid"/>
</layout>
</bibliography>
</style>
3 changes: 3 additions & 0 deletions locale/en/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ msgstr "IEEE"
msgid "plugins.generic.citationStyleLanguage.style.modern-language-association"
msgstr "MLA"

msgid "plugins.generic.citationStyleLanguage.style.national-library-of-medicine"
msgstr "NLM"

msgid "plugins.generic.citationStyleLanguage.style.turabian-fullnote-bibliography"
msgstr "Turabian"

Expand Down
3 changes: 3 additions & 0 deletions locale/vi/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ msgid "plugins.generic.citationStyleLanguage.settings.citationUserGroupsDescript
msgstr ""
"Trong một số kiểu trích dẫn, những người đóng góp phải được xác định khác "
"nhau tùy thuộc vào vai trò của họ. Vui lòng xác định các vai trò thích hợp."

msgid "plugins.generic.citationStyleLanguage.style.national-library-of-medicine"
msgstr "NLM"