*/ require_once('wpi.php'); require_once('extensions/PathwayViewer/PathwayViewer.php'); ?> ' . "\n"; //Initialize javascript echo '' . "\n"; $jsSnippets = XrefPanel::getJsSnippets(); foreach($jsSnippets as $js) { echo "\n"; } $imgPath = "$wgServer/$wgScriptPath/skins/common/images/"; echo ""; $jsSrc = PathwayViewer::getJsDependencies(); $jsSrc = array_merge($jsSrc, XrefPanel::getJsDependencies()); foreach($jsSrc as $js) { echo '' . "\n"; } $id = $_REQUEST['id']; $rev = $_REQUEST['rev']; $pathway = Pathway::newFromTitle($id); if($rev) { $pathway->setActiveRevision($rev); } $svg = $pathway->getFileURL(FILETYPE_IMG); $gpml = $pathway->getFileURL(FILETYPE_GPML); echo << SCRIPT; ?> WikiPathways Pathway Viewer