Example #1
0
 /**
  * Get all titles contained at the issn array
  * @param $issn array
  */
 public function getDetachedTitles($issn)
 {
     $this->getVariableFromDef();
     if (is_array($issn)) {
         $issnTmp = '';
         foreach ($issn as $key => $value) {
             if ($key > 0) {
                 $issnTmp .= ' or ';
             }
             $issnTmp .= 'LOC=' . $value;
         }
         $issnString = $issnTmp;
     } else {
         $issnString = 'LOC=' . $issn;
     }
     $serviceUrl = "http://" . $this->applServer . "/cgi-bin/wxis.exe/webservices/wxis/?IsisScript=detached.xis&database=" . $this->databasePath . "title/title&gizmo=GIZMO_XML&search=" . $issnString;
     $XML = readData($serviceUrl, true);
     $journalTotal = getElementValue(getElementValue(str_replace("<hr>", "<hr />", $XML), "Isis_Total"), "occ");
     $serviceXML .= '<collection name="' . $this->country . '" uri="http://' . $this->applServer . '">';
     $serviceXML .= '<indicators>';
     $serviceXML .= '<journalTotal>' . $journalTotal . '</journalTotal>';
     $serviceXML .= '<articleTotal>' . getIndicators("articleTotal", $this->applServer, $this->databasePath, $issn) . '</articleTotal>';
     $serviceXML .= '<issueTotal>' . getIndicators("issueTotal", $this->applServer, $this->databasePath, $issn) . '</issueTotal>';
     $serviceXML .= '<citationTotal>' . getIndicators("citationTotal", $this->applServer, $this->databasePath, $issn) . '</citationTotal>';
     $serviceXML .= '</indicators>';
     $serviceXML .= $XML;
     $serviceXML .= '</collection>';
     header("Content-type: text/xml charset=ISO-8859-1");
     return $serviceXML;
 }
Example #2
0
function get_titles($type, $param)
{
    global $country, $applServer, $output, $transformer, $serviceRoot, $databasePath;
    $xslName = '';
    $serviceUrl = "http://" . $applServer . "/cgi-bin/wxis.exe/webservices/wxis/?IsisScript=list.xis&database=" . $databasePath . "title/title&gizmo=GIZMO_XML";
    $XML = readData($serviceUrl, true);
    //	die($serviceUrl);
    $serviceXML .= '<collection name="' . $country . '" uri="http://' . $applServer . '">';
    $serviceXML .= '<indicators>';
    $serviceXML .= '<journalTotal>' . getIndicators("journalTotal") . '</journalTotal>';
    $serviceXML .= '<articleTotal>' . getIndicators("articleTotal") . '</articleTotal>';
    $serviceXML .= '<issueTotal>' . getIndicators("issueTotal") . '</issueTotal>';
    $serviceXML .= '<citationTotal>' . getIndicators("citationTotal") . '</citationTotal>';
    $serviceXML .= '</indicators>';
    $serviceXML .= $XML;
    $serviceXML .= '</collection>';
    if ($output == "xml") {
        header("Content-type: text/xml");
        return envelopeXml($serviceXML, $serviceRoot);
    } else {
        return $serviceXML;
    }
    return $serviceXML;
}