From eeb6935cd762417068287ca41920469a329dfe2a Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Tue, 4 Nov 2014 01:15:04 +0100 Subject: 2014-11-04 00:47:00 --- tex/context/base/publ-imp-apa.lua | 71 ++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 23 deletions(-) (limited to 'tex/context/base/publ-imp-apa.lua') diff --git a/tex/context/base/publ-imp-apa.lua b/tex/context/base/publ-imp-apa.lua index 6d2bfdea4..821c09607 100644 --- a/tex/context/base/publ-imp-apa.lua +++ b/tex/context/base/publ-imp-apa.lua @@ -1,7 +1,6 @@ -- to be checked local virtual = { "authoryear", "authoryears", "authornum", "num", "suffix" } -local authors = { "author", "editor", "publisher" } return { name = "apa", @@ -14,50 +13,50 @@ return { required = { { "author", "editor" }, "title" }, optional = { "year", "type", "journal", "volume", "number", "pages", "url", "note", "doi" }, virtual = virtual, - author = authors, + author = { "author", "editor" }, }, magazine = { required = { { "author", "editor" }, "title", "journal", "year" }, optional = { "volume", "number", "pages", "month", "day", "note", "url", "doi" }, virtual = virtual, - author = authors, + author = { "author", "editor" }, }, newspaper = { required = { { "author", "editor" }, "title", "journal", "year" }, optional = { "volume", "number", "pages", "month", "day", "note", "url", "doi" }, virtual = virtual, - author = authors, + author = { "author", "editor" }, }, book = { virtual = { "authoryear" }, required = { { "author", "editor", "publisher" }, "title" }, optional = { "year", "month", "day", "title", "type", "edition", "series", "volume", "number", "pages", "address", "publisher", "url", "note", "ISBN" }, virtual = virtual, - author = authors, + author = { "author", "editor", "publisher" }, }, booklet = { required = { "title" }, optional = { "author", "howpublished", "address", "month", "year", "note" }, virtual = virtual, - author = authors, + author = { "author" }, }, inbook = { - required = { { "author", "editor", "publisher" }, "title", "chapter", "pages","year" }, + required = { { "author", "editor", "publisher" }, "title", "chapter", "pages", "year" }, optional = { "volume", "number", "series", "type", "address", "edition", "month", "note", "ISBN" }, virtual = virtual, - author = authors, + author = { "author", "editor", "publisher" }, }, incollection = { required = { "author", "title", "booktitle", "publisher", "year" }, optional = { "editor", "volume", "number", "series", "type", "chapter", "pages", "address", "edition", "month", "note", "ISBN" }, virtual = virtual, - author = authors, + author = { "author", "editor", "publisher" }, }, inproceedings = { required = { "author", "title", "booktitle", "year" }, optional = { "editor", "volume", "number", "series", "pages", "address", "month", "organization", "publisher", "note", "ISBN" }, virtual = virtual, - author = authors, + author = { "author", "editor", "publisher" }, }, conference = "inproceedings", -- Alan: does this work? Hans: I just made it work. @@ -65,19 +64,31 @@ return { required = { "title" }, optional = { "author", "organization", "address", "edition", "month", "year", "note" }, virtual = virtual, - author = authors, + author = { "author" }, }, mastersthesis = { required = { "author", "title", "school", "year" }, optional = { "type", "address", "month", "note" }, virtual = virtual, - author = authors, + author = { "author" }, + }, + phdthesis = { + required = { "author", "title", "school", "year" }, + optional = { "type", "address", "month", "note" }, + virtual = virtual, + author = { "author" }, + }, + thesis = { + required = { "author", "title", "school", "year", "type" }, + optional = { "address", "month", "note" }, + virtual = virtual, + author = { "author" }, }, misc = { required = { }, optional = { "author", "title", "howpublished", "month", "year", "note" }, virtual = virtual, - author = authors, + author = { "author" }, }, -- Not sure yet how "periodical" is used... but "jabref" includes it as standard. -- strangely, "jabref" does not include "author" as required nor optional.. @@ -85,36 +96,50 @@ return { required = { "title", "year" }, optional = { "author", "editor", "month", "note", "number", "organization", "series", "volume" }, virtual = virtual, - author = authors, - }, - phdthesis = { - required = { "author", "title", "school", "year" }, - optional = { "type", "address", "month", "note" }, - virtual = virtual, + author = { "author", "editor" }, }, proceedings = { required = { "title", "year" }, optional = { "editor", "volume", "number", "series", "address", "month", "organization", "publisher", "note", "pages", "ISBN" }, virtual = virtual, - author = authors, + author = { "editor", "publisher" }, }, techreport = { required = { "author", "title", "institution", "year" }, optional = { "type", "number", "address", "month", "note" }, virtual = virtual, - author = authors, + author = { "author" }, + }, + other = { + required = { { "author", "title" }, "year" }, + optional = { "note", "doi" }, + virtual = virtual, + author = { "author" }, }, patent = { required = { "nationality", "number", "year", "yearfiled" }, optional = { "author", "title", "language", "assignee", "address", "type", "day", "dayfiled", "month", "monthfiled", "note", }, virtual = virtual, - author = authors, + author = { "author" }, + }, + electronic = { + required = { "title" }, + optional = { "address", "author", "howpublished", "month", "note", "organization", "year", "url", "doi", "type" }, + virtual = virtual, + author = { "author" }, + }, + -- check this! + standard = { + required = { { "author", "institution", "organization" }, "title", "year", "note", "url" }, + optional = { "doi", }, + virtual = virtual, + author = { "author", "institution", "organization" }, }, unpublished = { required = { "author", "title", "note" }, optional = { "month", "year" }, virtual = virtual, - author = authors, + author = { "author" }, }, literal = { required = { "key", "text", }, -- cgit v1.2.3