function cleanParameters($input) { foreach ($input as $key => $value) { $cleaned = cleanParameter($value); $input[$key] = $cleaned; } return $input; }
include_once "classDefFile.php"; include_once "class.XSLTransformerOAI.php"; //include_once ("classScielo.php"); include_once "version-4.1-like-4.0.php"; include_once "scielo-ws.php"; define("DEFNAME", "scielo.def.php"); define("DEFAULT_CACHE_EXPIRES", 180); $defFile = parse_ini_file(dirname(__FILE__) . "/../scielo.def.php"); $metadataPrefixList = array("oai_dc" => array("ns" => "http://www.openarchives.org/OAI/2.0/oai_dc/", "schema" => "http://www.openarchives.org/OAI/2.0/oai_dc.xsd"), "oai_dc_agris" => array("ns" => "http://www.purl.org/agmes/agrisap/schema/", "schema" => "http://www.purl.org/agmes/agrisap/schema/agris.xsd")); /* $repositoryName = "SciELO Online Library Collection"; $earliestDatestamp = "1996-01-01"; */ $debug_str = ""; $identifier = cleanParameter($identifier); /******************************************* Functions *********************************************/ function debugstring($str) { global $debug, $debug_str; if ($debug) { $debug_str .= $str; } } function printdebug() { global $debug, $debug_str; if ($debug) { echo $debug_str; exit; }