echo $count . ' ' . $locsh->getText("sharedRecordIsDeleted"); } elseif ($count > 1) { echo $count . ' ' . $locsh->getText("sharedRecordsAreDeleted"); } echo '</font></div>'; } $dmQ = new DmQuery(); $dmQ->connect(); $collectionDm = $dmQ->getAssoc("collection_dm"); $materialTypeDm = $dmQ->getAssoc("material_type_dm"); $dmQ->close(); /* print_r($dmQ); */ $biblioQ = new BiblioSearchQuery(); $biblioQ->setItemsPerPage(500); $biblioQ->connect(); if ($biblioQ->errorOccurred()) { $biblioQ->close(); displayErrorPage($biblioQ); } $sType = 'title'; $words = ''; $currentPageNmbr = isset($_POST["page"]) ? $_POST["page"] : 1; $sortBy = 'title'; $opacFlg = false; if (!$biblioQ->search($sType, $words, $currentPageNmbr, $sortBy, $opacFlg)) { $biblioQ->close(); displayErrorPage($biblioQ); } if ($biblioQ->getRowCount() == 0) {
if (is_array($_POST['collec'])) { foreach ($_POST['collec'] as $value) { 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); }
} $look4type = $_REQUEST["look4type"]; if (isset($BibSearchesId[$look4type])) { $resType = $BibSearchesId[$look4type]; } else { $resType = OBIB_SEARCH_TITLE; } $searches = NULL; if (isset($_REQUEST["searches"])) { $searches = explodeSearches($_REQUEST["searches"]); } #**************************************************************************** #* Search database #**************************************************************************** $biblioQ = new BiblioSearchQuery(); $biblioQ->setItemsPerPage($currentPageSize); $biblioQ->connect(); if ($biblioQ->errorOccurred()) { $biblioQ->close(); displayErrorPage($biblioQ); } # checking to see if we are in the opac search or logged in $biblioQ->opacFlg = $tab == "opac"; $found = $biblioQ->Lookup($resType, $sType, $words, $currentPageNmbr, $sortBy, $searches); if (!$found) { $biblioQ->close(); displayErrorPage($biblioQ); } #************************************************************************** #* Show search results #**************************************************************************