-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.jsp
134 lines (117 loc) · 6.55 KB
/
index.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Pedigree Editor</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="imagetoolbar" content="no"/>
<link rel="canonical" href="bin/PARTICIPANT_ID"/>
<meta name="document" content="data.PARTICIPANT_ID"/>
<meta name="wiki" content="xwiki"/>
<meta name="space" content="data"/>
<meta name="page" content="PARTICIPANT_ID"/>
<meta name="version" content="1.3"/>
<meta name="restURL" content="wikis/xwiki/spaces/data/pages/PARTICIPANT_ID"/>
<meta name="form_token" content="wwD9MXlaxCgPfFnxu3vQHQ"/>
<meta name="gwt:probandDataLoader.jsproperty" content="locale=en"/>
<meta name="revisit-after" content="7 days"/>
<meta name="description" content="Pedigree editor"/>
<meta name="keywords" content="wiki"/>
<meta name="distribution" content="GLOBAL"/>
<meta name="rating" content="General"/>
<meta name="author" content="Unknown User"/>
<meta http-equiv="reply-to" content=""/>
<meta name="language" content="en"/>
<%
Boolean devMode = new Boolean(System.getProperty("devmode"));
String mercuryRemoteHost = System.getenv("MERCURY_REMOTE_HOST");
if(mercuryRemoteHost == null || mercuryRemoteHost.equals("")) mercuryRemoteHost = "http://localhost:8080";
String[] jsFiles = {"require", "prototype", "localization", "WebService","xwiki"};
String[] jsRestFiles = {"config","version"};
String[] jsDeferFiles = {"effects", "DateTimePicker", "datepicker", "searchSuggest", "lock", "livevalidation_prototype", "fullScreen",
"slider", "dragdrop", "raphael", "helpers", "queues", "baseGraph", "xcoordclass", "ordering", "import", "export", "edgeOptimization", "ageCalc",
"positionedGraph", "dynamicGraph", "Blob", "FileSaver", "nodeMenu", "nodetypeSelectionBubble", "graphicHelpers", "legend", "disorder",
"disorderLegend", "hpoTerm", "hpoLegend", "geneLegend", "unRenderedLegendSuper", "unRenderedLegend", "saveLoadIndicator", "templateSelector",
"okCancelDialogue", "importSelector", "exportSelector", "abstractHoverbox", "readonlyHoverbox", "partnershipHoverbox", "personHoverbox",
"abstractNode", "abstractNodeVisuals", "abstractPerson", "Settings", "undoRedoManager", "controller", "preferencesManager", "probandDataLoader",
"saveLoadEngine", "versionUpdater", "lineSet", "childlessBehavior", "childlessBehaviorVisuals", "partnershipVisuals", "partnership",
"abstractPersonVisuals", "personVisuals", "person", "personGroupHoverbox", "personGroupVisuals", "personGroup", "personPlaceholderVisuals",
"personPlaceholder", "view", "svgWrapper", "workspace", "cancersLegend", "printEngine", "printDialog", "pedigree", "actionButtons",
"ContentTopMenu", "PushPatient", "compatibility", "markerScript","pedigreeDate", "pedigreeEditorParameters", "Widgets"};
String suffix = "min.js";
out.println("<!-- Mercury Remote Host: "+mercuryRemoteHost+" -->");
out.println(" <script type=\"text/javascript\">var mercuryRemoteHost='"+mercuryRemoteHost+"'</script>");
if(devMode){
Long time = System.currentTimeMillis();
out.println("<!-- Running in DEV mode -->");
// In devmode then load the unminified files
suffix = "js?"+time;
%>
<link href="resources/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/print.css" rel="stylesheet" type="text/css" media="print"/>
<!--[if IE]>
<link href="css/colibri-ie-all.css" rel="stylesheet" type="text/css" />
<![endif]-->
<%
}else{
// In prod mode then load minified
%>
<link href="resources/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="css/style.min.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/print.min.css" rel="stylesheet" type="text/css" media="print"/>
<!--[if IE]>
<link href="css/colibri-ie-all.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<%
}
out.println("<!-- Load pedigree source base -->");
for(String jsFile : jsFiles){
out.println(" <script type=\"text/javascript\" src=\"js/"+jsFile+"."+suffix+"\"></script>");
}
out.println(" <!-- Load pedigree config-->");
for(String jsFile : jsRestFiles){
out.println(" <script type=\"text/javascript\" src=\"rest/"+jsFile+".js\"></script>");
}
out.print(" <!-- Load pedigree widgets-->");
out.println("<!-- Load pedigree deferred files-->");
for(String jsFile : jsDeferFiles){
out.println(" <script type=\"text/javascript\" src=\"js/"+jsFile+"."+suffix+"\" defer=\"defer\"></script>");
}
out.println(" <!-- All JS loaded -->");
%>
<script type="text/javascript">
// <![CDATA[
define('jQueryNoConflict', ['jquery'], function ($) {
$.noConflict();
return $;
});
XWiki.webapppath = "";
XWiki.servletpath = "bin/";
XWiki.contextPath = "";
XWiki.mainWiki = "xwiki";
XWiki.currentWiki = "xwiki";
XWiki.currentSpace = "data";
XWiki.currentPage = "PARTICIPANT_ID";
XWiki.editor = "inline";
XWiki.viewer = "";
XWiki.contextaction = "edit";
XWiki.docisnew = false;
XWiki.docsyntax = "xwiki/2.1";
XWiki.docvariant = "";
XWiki.blacklistedSpaces = ["Import", "Panels", "Scheduler", "Stats", "XAppClasses", "XAppSheets", "XAppTemplates", "XWiki", "WatchCode",
"WatchSheets", "XApp", "WatchAdmin", "Watch", "ColorThemes", "AnnotationCode"];
XWiki.hasEdit = true;
XWiki.hasProgramming = false;
XWiki.hasBackupPackImportRights = false;
XWiki.hasRenderer = true;
window.docviewurl = "/bin/PARTICIPANT_ID";
window.docediturl = "/bin/edit/data/PARTICIPANT_ID";
window.docsaveurl = "/bin/save/data/PARTICIPANT_ID";
window.docgeturl = "/bin/get/data/PARTICIPANT_ID";
</script>
</head>
<body id="body" class="skin-colibri wiki-xwiki space-data viewbody hidelefthideright panel-left-width-Medium panel-right-width-Medium">
</body>
</html>