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