forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support apa citation of some formats
- Loading branch information
Showing
7 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/org/jabref/model/entry/types/BiblatexAPAEntryTypeDefinitions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.jabref.model.entry.types; | ||
|
||
import org.jabref.model.entry.BibEntryType; | ||
import org.jabref.model.entry.BibEntryTypeBuilder; | ||
import org.jabref.model.entry.field.StandardField; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class BiblatexAPAEntryTypeDefinitions { | ||
|
||
private static final BibEntryType JURISDICTION = new BibEntryTypeBuilder() | ||
.withType(StandardEntryType.JURISDICTION) | ||
.withDetailFields(StandardField.ORGANIZATION, StandardField.CITATION_CITEORG, StandardField.CITATION_CITEDATE, StandardField.CITATION_CITEDATE, StandardField.ORIGDATE) | ||
.withRequiredFields(StandardField.TITLE, StandardField.CITATION, StandardField.CITATION_CITEINFO, StandardField.URL, StandardField.DATE) | ||
.build(); | ||
|
||
private static final BibEntryType LEGISLATION = new BibEntryTypeBuilder() | ||
.withType(StandardEntryType.LEGISLATION) | ||
.withImportantFields(StandardField.TITLEADDON, StandardField.ORIGDATE) | ||
.withRequiredFields(StandardField.TITLE, StandardField.LOCATION, StandardField.URL, StandardField.DATE) | ||
.build(); | ||
|
||
private static final BibEntryType LEGADMINMATERIAL = new BibEntryTypeBuilder() | ||
.withType(StandardEntryType.LEGADMINMATERIAL) | ||
.withImportantFields(StandardField.NUMBER, StandardField.SHORTTITLE, StandardField.NOTE, StandardField.KEYWORDS) | ||
.withRequiredFields(StandardField.TITLE, StandardField.CITATION, StandardField.URL, StandardField.DATE) | ||
.build(); | ||
|
||
private static final BibEntryType CONSTITUTION = new BibEntryTypeBuilder() | ||
.withType(StandardEntryType.CONSTITUTION) | ||
.withImportantFields(StandardField.ARTICLE, StandardField.AMENDMENT, StandardField.EVENTDATE, StandardField.KEYWORDS, StandardField.PART, StandardField.SECTION) | ||
.withRequiredFields(StandardField.SOURCE, StandardField.TYPE) | ||
.build(); | ||
|
||
public static final List<BibEntryType> ALL = Arrays.asList(JURISDICTION, LEGISLATION, LEGADMINMATERIAL, CONSTITUTION); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters