add missing latex2html in getArrayOfCommaSeparatedAuthors
This commit is contained in:
@@ -405,6 +405,9 @@ class BTBTest extends PHPUnit_Framework_TestCase {
|
|||||||
$this->assertEquals("à Book",$dis->getTitle());
|
$this->assertEquals("à Book",$dis->getTitle());
|
||||||
$this->assertEquals("Jé Lo",$dis->getFormattedAuthorsString());
|
$this->assertEquals("Jé Lo",$dis->getFormattedAuthorsString());
|
||||||
|
|
||||||
|
// ensure that it is comma separated, used for metadata
|
||||||
|
$this->assertEquals("Lo, Jé",$dis->getArrayOfCommaSeparatedAuthors()[0]);
|
||||||
|
|
||||||
bibtexbrowser_configure('BIBTEXBROWSER_USE_LATEX2HTML', false);
|
bibtexbrowser_configure('BIBTEXBROWSER_USE_LATEX2HTML', false);
|
||||||
$test_data = fopen('php://memory','x+');
|
$test_data = fopen('php://memory','x+');
|
||||||
fwrite($test_data, $bibtex);
|
fwrite($test_data, $bibtex);
|
||||||
|
|||||||
+4
-1
@@ -1582,10 +1582,13 @@ class BibEntry {
|
|||||||
return $authors;
|
return $authors;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the authors of this entry as an array in a comma-separated form */
|
/** Returns the authors of this entry as an array in a comma-separated form
|
||||||
|
* Mostly used to create meta tags (eg <meta>
|
||||||
|
*/
|
||||||
function getArrayOfCommaSeparatedAuthors() {
|
function getArrayOfCommaSeparatedAuthors() {
|
||||||
$authors = array();
|
$authors = array();
|
||||||
foreach ($this->getRawAuthors() as $author) {
|
foreach ($this->getRawAuthors() as $author) {
|
||||||
|
$author = $this->transformValue($author);
|
||||||
$authors[]=$this->formatAuthorCommaSeparated($author);
|
$authors[]=$this->formatAuthorCommaSeparated($author);
|
||||||
}
|
}
|
||||||
return $authors;
|
return $authors;
|
||||||
|
|||||||
Reference in New Issue
Block a user