// send http header header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8" ?>' . "\n"; echo $detail->getPrefix(); echo $output; echo $detail->getSuffix(); exit; } else { // filter the ID $detail_id = intval($_GET['id']); // include detail library and template include 'lib/detail.inc.php'; include $sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/detail_template.php'; // create detail object $detail = new detail($dbs, $detail_id); $detail->setListTemplate($detail_template); // set the content for info box $info = '<strong>' . strtoupper(lang_opac_rec_detail) . '</strong><hr />'; if (!defined('LIGHTWEIGHT_MODE')) { $info .= '<a href="javascript: history.back();">' . lang_opac_back_prev . '</a> '; } if ($sysconf['enable_xml_detail'] && !defined('LIGHTWEIGHT_MODE')) { $info .= '<a href="index.php?p=show_detail&inXML=true&id=' . $detail_id . '" class="xmlDetailLink" target="_blank">XML Detail</a>'; } if (!defined('LIGHTWEIGHT_MODE')) { // include Prototype javascript library echo '<script type="text/javascript" src="' . JS_WEB_ROOT_DIR . 'prototype.js"></script>'; } // output the record detail echo $detail->showDetail(); $page_title = $detail->record_title;