Ejemplo n.º 1
0
 function getArticles()
 {
     $xml = $this->getXML();
     $XML_XSL = new XSL_XML();
     $content = $XML_XSL->xml_xsl($xml, dirname(__FILE__) . "/../../xsl/similarToArray.xsl");
     $content = str_replace('<?xml version="1.0" encoding="ISO-8859-1"?>', '', $content);
     $articles = split('\\|SIMILAR_SPLIT\\|', $content);
     $article = new Article();
     for ($i = 0; $i < count($articles) - 1; $i++) {
         $articles[$i] = split('\\|ITEM_SPLIT\\|', $articles[$i]);
         if (trim($articles[$i][0]) != '') {
             $article->setPID(trim($articles[$i][0]));
             $article->setPublicationDate(trim($articles[$i][1]));
             $article->setRelevance(trim($articles[$i][2]));
             $article->setURL(trim($articles[$i][3]));
             $article->setTitle(trim($articles[$i][4]));
             $article->setSerial(trim($articles[$i][5]));
             $article->setVolume(trim($articles[$i][6]));
             $article->setNumber(trim($articles[$i][7]));
             $article->setYear(trim($articles[$i][8]));
             $article->setSuppl(trim($articles[$i][9]));
             $article->setAuthorXML(str_replace("\n", "", trim($articles[$i][10])));
             $article->setKeywordXML(trim($articles[$i][11]));
             $arrArticles[$i] = $article;
         }
     }
     //	die(print_r($arrArticles));
     return $arrArticles;
 }
Ejemplo n.º 2
0
 function getStats()
 {
     $this->setCall('http://' . $this->ini_main['LOG']['SERVER_LOG_PROC'] . '/' . $this->ini_main['LOG']['SERVER_LOG_PROC_PATH'] . '/scielologArticle.php');
     Service::callService(Service::buildCall());
     $xml[] = Service::getResultInXML();
     $XML_XSL = new XSL_XML();
     $result = new AccessServiceResult($XML_XSL->concatXML($xml));
     $requests = $result->getStats();
     return $requests;
 }
 function getStats()
 {
     //FIXME
     $array = $this->ini['collections'];
     foreach ($array as $name => $collection) {
         $this->setCall($this->ini['requests_server'][$name] . '/scielolog/scielologArticle.php');
         Service::callService(Service::buildCall());
         $xml[] = Service::getResultInXML();
     }
     $XML_XSL = new XSL_XML();
     $result = new AccessServiceResult($XML_XSL->concatXML($xml));
     $requests = $result->getStats();
     return $requests;
 }
Ejemplo n.º 4
0
 function getArticles()
 {
     $array = $this->ini['collections'];
     foreach ($array as $name => $collection) {
         $this->setCall($this->ini['trigrama_server'][$name] . '/cgi-bin/serx');
         $this->setParam('c', $this->ini['trigrama_parameter'][$name]);
         Service::callService(Service::buildCall());
         $xml[] = Service::getResultInXML();
     }
     $XML_XSL = new XSL_XML();
     $result = new TrigramaServiceResult($XML_XSL->concatXML($xml));
     $articles = $result->getArticles();
     return $articles;
 }
Ejemplo n.º 5
0
$DirNameLocal = dirname(__FILE__) . '/';
include_once dirname(__FILE__) . "/../../../php/include.php";
$DirHtml = realpath(dirname(__FILE__) . "..") . "/html/" . $lang . "/";
$site = parse_ini_file(dirname(__FILE__) . "/../../../../../bases/site/ini/" . $lang . "/bvs.ini", true);
$scielodef = parse_ini_file("../scielo.def", true);
$bvsSiteIni = parse_ini_file(dirname(__FILE__) . "/../../../bvs-site-conf.php", true);
$baseDir = "";
if ($bvsSiteIni['ENVIRONMENT']['LETTER_UNIT'] != null) {
    $baseDir = $bvsSiteIni['ENVIRONMENT']['LETTER_UNIT'] . $bvsSiteIni['ENVIRONMENT']['DATABASE_PATH'];
} else {
    $baseDir = $bvsSiteIni['ENVIRONMENT']['DATABASE_PATH'];
}
ob_start("ob_gzhandler");
//ob_start();
session_start();
$transformer = new XSL_XML(dirname(__FILE__));
$instance = $_REQUEST['instance'];
$collection = $_REQUEST['collection'];
$letter = $_REQUEST['letter'];
$subject = $_REQUEST['subject'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>
			<?php 
echo $site['title'];
?>
		</title>
Ejemplo n.º 6
0
<?php

include "class.XSLTransformer.php";
include "XML.php";
//	phpinfo();
$XML_XSL = new XSL_XML();
$xml = $XML_XSL->returnContent($argv[1]);
$xsl = $argv[2];
$xml = $XML_XSL->xml_xsl($xml, $xsl, "");
$fp = fopen($argv[3], "w");
if ($fp) {
    fwrite($fp, $xml);
}