top_navigation(); ?> </div> <?php $agent = new Agent(); $xml_output = $agent->describeRepository(); //print_r($xml_output); //print_r($_SERVER['HTTP_HOST']); //print_r($_SESSION['pidNamespace']); if ($xml_output) { $html_output .= $agent->transform("./stylesheets/describe.xslt", $xml_output); } ?> <div id="content"> <div id="base"> </div> <p class="about"><?php echo $html_output; ?> </p> <hr/> <div id="footer"> <p id="footer_copyright"> Copyright ©2007 <b>ARROW</b>, All right reserved </p>
<p class="error">Please select some datastreams for activation/de-activation/editing.</p><p><br /></p>'; } } else { if (isset($_POST['next'])) { $html_output = ""; // echo "You entered next"; $token = $_GET['token']; $id = $_GET['id']; $agent = new Agent(); //call next search $xml_output = $agent->nextSearch($token); //print_r($xml_output); if ($xml_output) { if ($id == "activate") { //use activation stylesheet $html_output .= $agent->transform("./stylesheets/resultA.xslt", $xml_output); } else { if ($id == "deactivate") { //use de-activation stylesheet $html_output .= $agent->transform("./stylesheets/resultD.xslt", $xml_output); } else { if ($id == "edit") { //use edit stylesheet $html_output .= $agent->transform("./stylesheets/resultE.xslt", $xml_output); } } } } //echo $html_output; // create the next search page $tokenNew = $agent->getSearchToken();