-
Notifications
You must be signed in to change notification settings - Fork 0
/
iPubCloud.xml.backup
90 lines (80 loc) · 2.55 KB
/
iPubCloud.xml.backup
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
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="iPubCloud"
render_inline="optional"
height="280"
category="technology"
author="Byron Kuo"
author_email="[email protected]"
author_location="Vancouver, BC, Canada"
author_affiliation="James Hogg iCAPTURE Centre for Cardiovascular and Pulmonary Research"
description="Summarize your PubMed search in a (reduced) tag cloud form."
screenshot="http://bioinfo.icapture.ubc.ca:8090/PubCloud/images/ipubcloud-screen.png"
thumbnail="http://bioinfo.icapture.ubc.ca:8090/PubCloud/images/ipubcloud-thumb.png">
</ModulePrefs>
<UserPref name="title" display_name="Title" default_value="iPubCloud" datatype="string" required="true"/>
<Content type="html"><![CDATA[
<style>
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}
</style>
<script type="text/javascript">
function getInputText() {
value = document.SampleForm.myText.value.toUpperCase()
return value
}
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=")
if (c_start!=-1)
{
c_start=c_start + c_name.length+1
c_end=document.cookie.indexOf(";",c_start)
if (c_end==-1) c_end=document.cookie.length
return unescape(document.cookie.substring(c_start,c_end))
}
}
return ""
}
function setCookie(c_name, value, expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}
function checkCookie()
{
querystring=getCookie('query')
if (querystring!=null && querystring!="")
{
window.location="http://localhost:8080/PubCloudZ/jc.jsp?query=" + querystring
}
}
function setClickCookie()
{
var textfield = document.getElementById('query-field')
querystring=textfield.value
if (querystring!=null && querystring!="") {
setCookie('query',querystring,365)
}
}
</script>
<BODY ONLOAD="checkCookie()">
<FONT color="blue"><B>iPubCloud</B></FONT><BR>
<FORM method="GET" action="http://bioinfo.icapture.ubc.ca:8090/PubCloud/pc.jsp">
Query: <INPUT TYPE="text" NAME="query" SIZE="13">
<INPUT TYPE="submit" VALUE="Get Cloud" ONCLICK="setClickCookie()">
</FORM>
</BODY>
]]></Content>
</Module>