sortColumn = DRV_SORT_DEFAULT; $sortCriteria->ascending = true; $numRows = 0; // Get necessary data from the library $counts = get_library_summary_info($user); //$drives = get_available_drives_by_type($user, $sortCriteria, 1); $temp_drives = get_all_drives($user, $sortCriteria); $numTempDrives = count($temp_drives); $i = 0; for ($d=0; $d < $numTempDrives; $d++) { //error_log(print_r("[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[".$temp_drives[$d]->name, true)); if ($temp_drives[$d]->name == "Physical Library") { $drives[$i] = $temp_drives[$d]; $i++; } } $numRows = count($drives); // sort the table data based on the sortBy value $oldi = sortDrives($drives, "location"); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes("All Logical Libraries", "All Enclosures", $drives, $numRows, MAX_ROWS_LIB_CREATE, MAX_SIZE_LIB_CREATE); $clnSlots = get_cleaning_slots($user, $sortCriteria,(int)2); $nSlots = count($clnSlots); if( $nSlots == 0 ) //per loglib setting not supported { $autoCleanEnabled = false; } else { $autoCleanEnabled = true; } $emulationMap = get_emulation_map($user); // $emulationMap = array("em A", "em B", "any Em"); ksort($emulationMap); $barcodeFormatMap = get_barcodeformat_map($user); // $barcodeFormatMap = array("bcp A", "bcp B", "any bcp"); ksort($barcodeFormatMap); // Get necessary data from the library //$libs = get_logical_libraries($user, $sortCriteria); $libs = $counts->libs; $numLogLibs = count($libs); $librarynames = ""; for ($l = 0; $l < $numLogLibs; $l++) { if ($l == 0) { $librarynames = $libs[$l]->name; } else { $librarynames = $librarynames. ":".$libs[$l]->name; } } ?>