add missing latex2html in getArrayOfCommaSeparatedAuthors

This commit is contained in:
Martin Monperrus
2018-12-16 14:49:42 +01:00
parent 5e1ec86e21
commit 4b6a36e570
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -405,6 +405,9 @@ class BTBTest extends PHPUnit_Framework_TestCase {
$this->assertEquals("à Book",$dis->getTitle());
$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);
$test_data = fopen('php://memory','x+');
fwrite($test_data, $bibtex);
+4 -1
View File
@@ -1582,10 +1582,13 @@ class BibEntry {
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() {
$authors = array();
foreach ($this->getRawAuthors() as $author) {
$author = $this->transformValue($author);
$authors[]=$this->formatAuthorCommaSeparated($author);
}
return $authors;