Skip to content

Commit

Permalink
Now two IEEE abbreviation files exist: one for official ieee latex ke…
Browse files Browse the repository at this point in the history
…ys, one for textual ones.
  • Loading branch information
simonharrer committed Oct 8, 2015
1 parent 3bcf7d5 commit 38afd66
Show file tree
Hide file tree
Showing 4 changed files with 2,392 additions and 2,523 deletions.
9 changes: 7 additions & 2 deletions src/main/java/net/sf/jabref/logic/journals/Abbreviations.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ public class Abbreviations {

// journal initialization
public static final String JOURNALS_FILE_BUILTIN = "/journals/journalList.txt";
public static final String JOURNALS_IEEE_INTERNAL_LIST = "/journals/IEEEJournalList.txt";
public static final String JOURNALS_IEEE_OFFICIAL_ABBREVIATION_LIST = "/journals/IEEEJournalList.txt";
public static final String JOURNALS_IEEE_STANDARD_ABBREVIATION_LIST = "/journals/IEEEJournalListText.txt";
public static JournalAbbreviationRepository journalAbbrev;

public static void initializeJournalNames(JabRefPreferences jabRefPreferences) {
// Read internal lists:
journalAbbrev = new JournalAbbreviationRepository();

journalAbbrev.readJournalListFromResource(JOURNALS_FILE_BUILTIN);

if (jabRefPreferences.getBoolean(JabRefPreferences.USE_IEEE_ABRV)) {
journalAbbrev.readJournalListFromResource(JOURNALS_IEEE_INTERNAL_LIST);
journalAbbrev.readJournalListFromResource(JOURNALS_IEEE_OFFICIAL_ABBREVIATION_LIST);
} else {
journalAbbrev.readJournalListFromResource(JOURNALS_IEEE_STANDARD_ABBREVIATION_LIST);
}

// Read external lists, if any (in reverse order, so the upper lists
Expand Down
Loading

0 comments on commit 38afd66

Please sign in to comment.