/* Showing record detail in HTML and XML */ if (isset($_GET['inXML']) and !empty($_GET['inXML'])) { if (!$sysconf['enable_xml_detail']) { die('XML Detail is disabled'); } // filter the ID $detail_id = intval($_GET['id']); // include detail library and template include 'lib/detail.inc.php'; // create detail object $detail = new detail($dbs, $detail_id, 'mods'); $output = $detail->showDetail(); // 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')) {