From 456c70f3fbb66401364f5125c945d027c2c9bc14 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Fri, 29 Oct 2010 11:54:17 +0200 Subject: [PATCH] use the new author API --- bibtexbrowser-style-default.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bibtexbrowser-style-default.php b/bibtexbrowser-style-default.php index 400c743..8f1a09c 100755 --- a/bibtexbrowser-style-default.php +++ b/bibtexbrowser-style-default.php @@ -28,7 +28,7 @@ function DefaultBibliographyStyle(&$bibentry) { // author if ($bibentry->hasField('author')) { - $coreInfo = $title . ' ('.$bibentry->formattedAuthors().')';} + $coreInfo = $title . ' ('.$bibentry->getFormattedAuthorsImproved().')';} else $coreInfo = $title; // core info usually contains title + author @@ -50,11 +50,7 @@ function DefaultBibliographyStyle(&$bibentry) { //// we may add the editor names to the booktitle $editor=''; if ($bibentry->hasField(EDITOR)) { - $editors = array(); - foreach ($bibentry->getEditors() as $ed) { - $editors[]=formatAuthor($ed); - } - $editor = implode(', ',$editors).', '.(count($editors)>1?'eds.':'ed.'); + $editor = $bibentry->getFormattedEditors(); } if ($editor!='') $booktitle .=' ('.$editor.')'; // end editor section