AnonSec Team
Server IP : 103.11.96.170  /  Your IP : 18.223.97.137
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
User : elibrary.unsap.ac.id ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  D:/localhost/elibrary/lib/oaipmh/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : D:/localhost/elibrary/lib/oaipmh/listsets.php
<?php 
/**
 * \file
 * \brief Response to Verb ListSets
 *
 * Lists what sets are available to records in the system. 
 */

// Here the size of sets is small, no resumptionToken is taken care.
if (is_array($SETS)) {
	$outputObj = new ANDS_Response_XML($args);
	foreach($SETS as $set) {
		$setNode = $outputObj->add2_verbNode("set");
		foreach($set as $key => $val) {
			if($key=='setDescription') {
				$desNode = $outputObj->addChild($setNode,$key);
				$des = $outputObj->doc->createDocumentFragment();
				$des->appendXML($val);
				$desNode->appendChild($des);
			} else {
				$outputObj->addChild($setNode,$key,$val);
			}
		}
	}
}	else {
	$errors[] = oai_error('noSetHierarchy'); 
	oai_exit();
}

?>

AnonSec - 2021