<?php
include '../class/class_collection.php';
include '../class/class_publication.php';
include '../class/gestor_articulos.php';
?>
<html>
<head>
<title>Pergamus Publication Manager</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main">
<h1> BibTex reference</h1>
<br>
<?php
function escape_chars($text) {
$search = array ('ñ', 'á', 'é', 'í', 'ó', 'ú', 'Á', 'É', 'Í', 'Ó', 'Ú');
$replace = array ("\~{n}", "\'{a}", "\'{e}", "\'{i}", "\'{o}", "\'{u}", "\'{A}", "\'{E}", "\'{I}", "\'{O}", "\'{U}");
$export = str_replace($search, $replace, $text);
return $export;
}
$bib =& new Collection('publications');
$filter = array();
$pubs_dic = $bib->build_all_pubs($filter);
print('@'.$pubs_dic[$bibtex_id]->bibtex_type.' { '.$bibtex_id.',<br>');
foreach($pubs_dic[$bibtex_id]->metadata as $key => $value){
print(' '.$key.' = "'.escape_chars($value).'",<br>');
}
print('}<br>');
?>
<p> </p>
<a href="p_publications.php"><img src="../img/atras.gif" border="0"> Back to the publication list</a>
<?php include 'p_banner.php'?>
<p> </p>
</div>
</body>
</html>
|