Ejemplo n.º 1
0
    }
} else {
    // show promoted titles
    if ($sysconf['enable_promote_titles']) {
        $biblio_list->only_promoted = true;
    }
}
// check if we are on xml resultset mode
if (isset($_GET['resultXML']) && $sysconf['enable_xml_result']) {
    // get document list but don't output the result
    $biblio_list->getDocumentList($sysconf['opac_result_num'], false);
    if ($biblio_list->num_rows > 0) {
        // send http header
        header('Content-Type: text/xml');
        echo '<?xml version="1.0" encoding="UTF-8" ?>' . "\n";
        echo $biblio_list->XMLresult();
    }
    exit;
} else {
    // show the list
    echo $biblio_list->getDocumentList($sysconf['opac_result_num']);
    echo '<br />' . "\n";
    // set result number info
    $info = str_replace('{biblio_list->num_rows}', $biblio_list->num_rows, $info);
}
// count total pages
$total_pages = ceil($biblio_list->num_rows / $sysconf['opac_result_num']);
// page number info
if (isset($_GET['page']) and $_GET['page'] > 1) {
    $page = intval($_GET['page']);
    $msg = str_replace('{page}', $page, lang_opac_page_info);