sortColumn = SLOT_SORT_DEFAULT; $sortCriteria->ascending = true; // if this is a post, this is a request to move data // retrieve the source information for this move // from the post values if ($_SERVER['REQUEST_METHOD'] == "POST") { $url = $_REQUEST['url']; $guids = $_REQUEST['srcGuids']; $libGuids = $_REQUEST['libGuids']; $srcGuids = split(':', $_REQUEST['srcGuids']); $srclibGuids = split(':', $_REQUEST['srclibGuids']); } // Get necessary data from the library $loglibs = get_logical_libraries($user, $sortCriteria); $numLogLibs = count($loglibs); $numGuids = count($srcGuids); $cartIndex = 0; for ($l = 0; $l < $numLogLibs; $l++) { $libGuid = $loglibs[$l]->guid; $tmp_carts = get_media_sources($user, $sortCriteria, $libGuid); $empty_slots = get_available_storage_slots($user, $libGuid); $loglibs[$l]->num_empty_slots = count($empty_slots); $numTmpCarts = count($tmp_carts); for ($tmpIndex = 0; $tmpIndex < $numTmpCarts; $tmpIndex++) { for ($guidIndex = 0; $guidIndex < $numGuids; $guidIndex++) { if ($srcGuids[$guidIndex] == $tmp_carts[$tmpIndex]->guid) { $carts[$cartIndex] = $tmp_carts[$tmpIndex]; $cartIndex++; } } } } // store the number of rows to be displayed in the destination table $numRows = count($carts); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes("All Logical Libraries", "All Enclosures", $carts, $numRows, MAX_ROWS_MOVE, MAX_SIZE_DATA_MOVE_LIST); ?> Data Cartridges: Re-assign to a Different Logical Library
Data Cartridge: Move to a Different Logical Library

Data Cartridges Selected:
location[1]; // if the enclosure (chassis) location is negative, append the numeric value to the // '-' to identify the enclosure if ($chass == '-') { $chass = $chass.$cart->location[2]; } $r = $cart->name; // store the destination Slot Id to the radio value ?>
Volume Serial Number Logical Library Media Type Slot Type Location Element Address
barcode?> name?> mediaType?> slotType?> location?> logicalAddress;?>
Total: Filtered: 0 Displayed:

The selected data cartridges will be physically moved to available slots within the destination logical library.