Esempio n. 1
0
 function Render()
 {
     $result = "";
     $current_year = 9999;
     foreach ($this->bibarr as $key => $entry) {
         // Print a heading for each year
         if (array_key_exists('year', $entry)) {
             if ($entry['year'] != $current_year) {
                 $current_year = $entry['year'];
                 $result .= '<h3 class="bibtex-year-heading">' . $current_year . '</h3>';
             }
         }
         $result .= '<p class="bibtex-entry">' . Bibtex::RenderEntry($entry) . '</p>';
     }
     return $result;
 }
<?
///
if(!isset($Path['lib-bibtex']))
	$Path['lib-bibtex'] = "lib/";
	
require_once($Path['lib-bibtex'] . 'lib_bibtex.inc.php');

$bib = new Bibtex( 'ei.bib','username');
#$bib->Select(array('owner' => 'loginname'));
$bib->Select(array('author' => 'name'));

echo '<div> Articles';
# Artikel
$bib->PrintBibliography('article');
echo '</div></br> ';

echo '<div> Software/technical reports';
# Software/Handb&uuml;cher
$bib->PrintBibliography('manual');
$bib->PrintBibliography('techreport');
echo '</div></br> ';

/// Book chapters
echo '<div> Book chapters';
# Buchkapitel
$bib->PrintBibliography('inbook');
echo '</div></br> ';

# Bücher
$bib->PrintBibliography('book');
$bib->PrintBibliography('phdthesis');