';
echo '['.$id.'] | ';
echo '';
$entry=array();
// title
$title = ''.$title.'';
if ($this->hasField('url')) $title = ' '.$title.'';
$entry[] = $title;
// author
if ($this->hasField('author')) {
$authors = array();
foreach ($this->getAuthors() as $author) {
$authors[]=formatAuthor($author);
}
$entry[0] .= ' ('.implode(', ',$authors).')';
}
// now the origin of the publication is in italic
if ($type=="phdthesis") {
$publication = "PhD thesis, ".$this->getField(SCHOOL);
}
if ($type=="mastersthesis") {
$publication = "Master's thesis, ".$this->getField(SCHOOL);
}
if ($type=="techreport") {
$publication = "Technical report, ".$this->getField("institution");
}
if ($type=="inproceedings") {
$publication = "In ".$this->getField(BOOKTITLE);
}
if ($type=="incollection") {
$publication = "Chapter in ".$this->getField(BOOKTITLE);
}
if ($type=="article") {
$publication = "In ".$this->getField("journal");
}
if (($type=="misc") && $this->hasField("note")) {
$publication = $this->getField("note");
}
if ($this->hasField(EDITOR)) {
$editors = array();
foreach ($this->getEditors() as $editor) {
$editors[]=formatAuthor($editor);
}
$publication = $publication .' ('.implode(', ',$editors).', '.(count($editors)>1?'eds.':'ed.').')';
}
if (isset($publication)) $entry[] = ''.$publication.'';
if ($this->hasField('volume')) $entry[] = "volume ".$this->getField("volume");
if ($this->hasField(YEAR)) $entry[] = $this->getYear();
echo implode(", ",$entry).'.';
// some comments (e.g. acceptance rate)?
if ($this->hasField('comment')) {
echo " (".$this->getField("comment").")";
}
echo " [bib]";
if ($this->hasField('url')) {
echo ' [pdf]';
}
if ($this->hasField('doi')) {
echo ' [doi]';
}
echo " |
\n";
}
/**
* Displays a unformated (verbatim) text of the given bib entry.
* The text is displayed in