query("SELECT * FROM $dbtable[metadata] WHERE id='$id'");
if($db->num_rows($result) == 0) {
// current document's hierarchy in the site
$site_hierarchy = array("Home"=>"index.php");
// include html header
include("include/header.inc.php");
echo "The requested record was not found.";
// include html footer
include("include/footer.inc.php");
return;
}
$items = $db->assoc_array($result);
// get archive info
$result = $db->query("SELECT id, name, rst FROM $dbtable[archives] WHERE id='$items[archive]'");
$archive_items = $db->assoc_array($result);
// current document's hierarchy in the site
$site_hierarchy = array("Home"=>"index.php", "Archives"=>"archives.php", $archive_items[name]=>"archives.php?id=$archive_items[id]");
// generate Dublin Core meta tags
$dcheaders = "
\n";
// print out additional authors, if applicable
if($items[add_authors]) {
$add_authors = split("\n",$items[add_authors]);
$add_emails = split("\n",$items[add_emails]);
$add_affiliations = split("\n",$items[add_affiliations]);
for($i=0;$i\n";
}
}
}
$dcheaders .= "
\n";
// include html header
include("include/header.inc.php");
?>
Record Details
Browse Archive