Skip to content

Commit

Permalink
support apa citation type of jurisdictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognimalf committed Jul 10, 2022
1 parent 92b7d7a commit 2b73079
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/org/jabref/model/entry/field/StandardField.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public enum StandardField implements Field {
BOOKTITLE("booktitle", FieldProperty.BOOK_NAME),
BOOKTITLEADDON("booktitleaddon"),
CHAPTER("chapter"),
CITATION("citiation"),
CITATION_CITEORG("citation_citeorg"),
CITATION_CITEDATE("citation_citedate"),
CITATION_CITEINFO("citation_citeinfo"),
COMMENTATOR("commentator", FieldProperty.PERSON_NAMES),
COMMENT("comment"),
CROSSREF("crossref", FieldProperty.SINGLE_ENTRY_LINK),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ public class BibtexEntryTypeDefinitions {
.withImportantFields(StandardField.EDITOR, StandardField.VOLUME, StandardField.NUMBER, StandardField.SERIES, StandardField.PAGES, StandardField.ADDRESS, StandardField.MONTH, StandardField.ORGANIZATION, StandardField.PUBLISHER, StandardField.NOTE)
.build();

/**
* A jurisdiction from court case.
* <p>
* Required fields: title, citation, CITATION+an:citeorg, CITATION+an:citedate, CITATION+an:citeinfo, url, date, origdate
* Optional fields: none
*/
private static final BibEntryType JURISDICTION_APA = new BibEntryTypeBuilder()
.withType(StandardEntryType.JURISDICTION_APA)
.withRequiredFields(StandardField.TITLE, StandardField.CITATION, StandardField.CITATION_CITEINFO, StandardField.URL, StandardField.DATE)
.withDetailFields(StandardField.ORGANIZATION, StandardField.CITATION_CITEORG, StandardField.CITATION_CITEDATE, StandardField.CITATION_CITEDATE, StandardField.ORIGDATE)
.build();

/**
* Technical documentation.
* Required field: title.
Expand Down Expand Up @@ -178,7 +190,7 @@ public class BibtexEntryTypeDefinitions {
.build();

public static final List<BibEntryType> ALL = Arrays.asList(ARTICLE, INBOOK, BOOK, BOOKLET, INCOLLECTION, CONFERENCE,
INPROCEEDINGS, PROCEEDINGS, MANUAL, MASTERSTHESIS, PHDTHESIS, TECHREPORT, UNPUBLISHED, MISC);
INPROCEEDINGS, PROCEEDINGS, MANUAL, MASTERSTHESIS, PHDTHESIS, TECHREPORT, UNPUBLISHED, MISC, JURISDICTION_APA);

public static final List<BibEntryType> RECOMMENDED = Arrays.asList(ARTICLE, BOOK, INPROCEEDINGS, TECHREPORT, MISC);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public enum StandardEntryType implements EntryType {
// Biblatex
BookInBook("BookInBook"),
InReference("InReference"),
JURISDICTION_APA("Jurisdiction_apa"),
MvBook("MvBook"),
MvCollection("MvCollection"),
MvProceedings("MvProceedings"),
Expand Down

0 comments on commit 2b73079

Please sign in to comment.