Browse Source

removed USE_OXFORD_COMMA option

pull/95/head
Jens Kober 6 years ago
parent
commit
d9caa3faf4
  1. 5
      bibtexbrowser.php

5
bibtexbrowser.php

@ -170,8 +170,7 @@ if (defined('ENCODING')) {
@define('USE_INITIALS_FOR_NAMES',false); // use only initials for all first names? @define('USE_INITIALS_FOR_NAMES',false); // use only initials for all first names?
@define('USE_FIRST_THEN_LAST',false); // put first names before last names? @define('USE_FIRST_THEN_LAST',false); // put first names before last names?
@define('FORCE_NAMELIST_SEPARATOR', ''); // if non-empty, use this to separate multiple names regardless of USE_COMMA_AS_NAME_SEPARATOR_IN_OUTPUT @define('FORCE_NAMELIST_SEPARATOR', ''); // if non-empty, use this to separate multiple names regardless of USE_COMMA_AS_NAME_SEPARATOR_IN_OUTPUT
@define('LAST_AUTHOR_SEPARATOR',' and ');
@define('USE_OXFORD_COMMA',false); // adds an additional separator in addition to LAST_AUTHOR_SEPARATOR if there are more than two authors
@define('LAST_AUTHOR_SEPARATOR',' and '); // if there are more than 2 names, an Oxford comma will be used
@define('TYPES_SIZE',10); // number of entry types per table @define('TYPES_SIZE',10); // number of entry types per table
@define('YEAR_SIZE',20); // number of years per table @define('YEAR_SIZE',20); // number of years per table
@ -1572,7 +1571,7 @@ class BibEntry {
$result .= $authors[$i].$sep; $result .= $authors[$i].$sep;
} }
$lastAuthorSeperator = bibtexbrowser_configuration('LAST_AUTHOR_SEPARATOR'); $lastAuthorSeperator = bibtexbrowser_configuration('LAST_AUTHOR_SEPARATOR');
if (count($authors)>2 && bibtexbrowser_configuration('USE_OXFORD_COMMA')) {
if (count($authors)>2) {
$lastAuthorSeperator = $sep.$lastAuthorSeperator; $lastAuthorSeperator = $sep.$lastAuthorSeperator;
} }
$result .= $authors[count($authors)-2].$lastAuthorSeperator.$authors[count($authors)-1]; $result .= $authors[count($authors)-2].$lastAuthorSeperator.$authors[count($authors)-1];

Loading…
Cancel
Save