array_push($collecs, $value); } } $materials = array(); if (is_array($_POST['material'])) { foreach ($_POST['material'] as $value) { array_push($materials, $value); } } #**************************************************************************** #* Search database #**************************************************************************** $biblioQ = new BiblioSearchQuery(); $biblioQ->setItemsPerPage(OBIB_ITEMS_PER_PAGE); $biblioQ->connect(); if ($biblioQ->errorOccurred()) { $biblioQ->close(); displayErrorPage($biblioQ); } # checking to see if we are in the opac search or logged in if ($tab == "opac") { $opacFlg = true; } else { $opacFlg = false; } if (!$biblioQ->search($sType, $words, $currentPageNmbr, $sortBy, $collecs, $materials, $opacFlg)) { $biblioQ->close(); displayErrorPage($biblioQ); } # Redirect to biblio_view if only one result if ($biblioQ->getRowCount() == 1) {
} if (isset($_GET['collectionCd'])) { $collectionCd = $_GET['collectionCd']; } else { $collectionCd = 'all'; } # print "collectionCd = $collectionCd <br>"; # print "materialCd = $materialCd <br>"; #**************************************************************************** #* Search database #**************************************************************************** $biblioSearchQ = new BiblioSearchQuery(); # $biblioQ = new BiblioQuery(); $biblioSearchQ->setItemsPerPage(OBIB_ITEMS_PER_PAGE); $biblioSearchQ->connect(); if ($biblioSearchQ->errorOccurred()) { $biblioSearchQ->close(); displayErrorPage($biblioSearchQ); } # checking to see if we are in the opac search or logged in if ($tab == "opac") { $opacFlg = true; } else { $opacFlg = false; } if (!$biblioSearchQ->search2($sType, $materialCd, $collectionCd, $words, $currentPageNmbr, $sortBy, $opacFlg)) { $biblioSearchQ->close(); displayErrorPage($biblioSearchQ); } #**************************************************************************** #* Search database for more details