Project

General

Profile

« Previous | Next » 

Revision 5509

include bioportal widgets, at least for an example.
oboe-sbc and oboe are both registered as tests.

View differences:

index.jsp
1
<%@ page    language="java" import="edu.ucsb.nceas.metacat.properties.PropertyService"%>
2
<% 
3
 /**
4
  *  '$RCSfile$'
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  * 
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file showing the resultset of a query
29
  * into an HTML format suitable for rendering with modern web browsers.
30
  */
1
<%@ page language="java"%>
2
<%
3
/**
4
 * 
5
 * '$RCSfile$'
6
 * Copyright: 2008 Regents of the University of California and the
7
 *             National Center for Ecological Analysis and Synthesis
8
 *    '$Author$'
9
 *      '$Date$'
10
 * '$Revision$'
11
 * 
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 * 
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
     
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */  
31 26
%>
32
<%@ include file="settings.jsp"%>
33
<%@ include file="session_vars.jsp"%>
34
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
27

  
28
<%@ include file="../../common/common-settings.jsp"%>
29
<%@ include file="../../common/configure-check.jsp"%>
35 30
<html>
36 31
<head>
37
<title>Metacat Data Catalog </title>
38
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
39
	<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/semtools/semtools.css">
40
	<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script>
41
	<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
32
<title>Semantic search</title>
33
<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/semtools/semtools.css">
34
<script type="text/javascript"
35
	src="<%=STYLE_SKINS_URL%>/semtools/search.js"></script>
36

  
37
<script type="text/javascript">
38
                    	    // Set defaults for this installation
39
                    	    //var BP_SEARCH_SERVER = "http://oor-01.cim3.net";
40
                    	    //var BP_SITE = "Sandbox";
41
                    	    //var BP_ORG = "OOR";
42
                    	  </script>
43
<script language="Javascript" type="text/JavaScript"
44
	src="<%=STYLE_SKINS_URL%>/semtools/bioportal/form_complete.js">
45
</script>
46

  
47
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script>
48
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
49

  
42 50
</head>
43 51
<body>
44
  <script language="javascript">
45
	  insertTemplateOpening("<%=CONTEXT_URL%>");
46
	  insertSearchBox("<%=CONTEXT_URL%>");
47
  </script>
48
  <br/>
52
<script language="javascript">
53
	insertTemplateOpening("<%=CONTEXT_URL%>");
54
</script>
49 55

  
50
  <% if ( PropertyService.getProperty("spatial.runSpatialOption").equals("true") ) { %>
51
  <script language="javascript">
52
	  insertMap("<%=CONTEXT_URL%>");
53
  </script>
54
  <br/>
55
  <% } %>
56
<h2>Concept search</h2>
56 57

  
57
  <script language="javascript">
58
	  insertLoginBox("<%=CONTEXT_URL%>");
59
  </script>
60
  <script language="javascript">
61
	  insertTemplateClosing("<%=CONTEXT_URL%>");
62
  </script>
58
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="searchForm" name="searchForm" onSubmit="return checkSearch(this)">
59
	<input name="query" type="hidden" />
60
	<input name="qformat" value="semtools" type="hidden" />
61
	<input name="action" value="squery" type="hidden" />
62

  
63
	<table>
64
		<tr>
65
			<td>Entity: (SBC only)</td>
66
			<td><input type="text" name="entity" class="bp_form_complete-1523-uri" size="100" /></td>
67
		</tr>
68
		<tr>
69
			<td>Characteristic: (all)</td>
70
			<td><input type="text" name="characteristic" class="bp_form_complete-all-uri" size="100" /></td>
71
		</tr>
72
		<tr>
73
			<td>Standard: (all)</td>
74
			<td><input type="text" name="standard" class="bp_form_complete-all-uri" size="100" /></td>
75
		</tr>
76
		<tr>
77
			<td>Protocol: (all)</td>
78
			<td><input type="text" name="protocol" class="bp_form_complete-all-uri" size="100" /></td>
79
		</tr>
80
		<tr>
81
			<td colspan="2"><input type="submit" value="Search"/></td>
82
		</tr>
83
	</table>
84
</form>
85

  
86
<h2>Ontology search</h2>
87
<div id="bp_quick_jump"></div>
88
<script type="text/javascript">
89
    var BP_ontology_id = "all";
90
</script>
91
<script src="<%=STYLE_SKINS_URL%>/semtools/bioportal/quick_jump.js" type="text/javascript" charset="utf-8">
92
</script>
93

  
94
<h2>Tree browser</h2>
95

  
96
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
97
	id="OntologyTree" width="300" height="100%"
98
	codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
99
	<param name="movie" value="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" />
100
	<param name="quality" value="high" />
101
	<param name="bgcolor" value="#ffffff" />
102
	<param name="allowScriptAccess" value="always" />
103
	<param name="flashVars" value="ontology=1523&alerterrors=false&canchangeontology=false&virtual=true" />
104
	<embed src="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" quality="high" bgcolor="#ffffff"
105
		width="300" height="100%" name="OntologyTree" align="middle"
106
		play="true"
107
		loop="false"
108
		allowScriptAccess="always"
109
		type="application/x-shockwave-flash"
110
		flashVars="ontology=1523&alerterrors=false&canchangeontology=false&virtual=true"
111
		pluginspage="http://www.adobe.com/go/getflashplayer">
112
	</embed>
113
</object>
114

  
115
<!-- Included default search/login -->
116
<% if ( PropertyService.getProperty("spatial.runSpatialOption").equals("true") ) { %>
117
<script language="javascript">
118
	insertMap("<%=CONTEXT_URL%>");
119
</script>
120
<br/>
121
<% } %>
122
  
123
<script language="javascript">
124
	insertSearchBox("<%=CONTEXT_URL%>");
125
	insertLoginBox("<%=CONTEXT_URL%>");	
126
</script>
127

  
128
<script language="javascript">
129
	insertTemplateClosing("<%=CONTEXT_URL%>");
130
</script>
131

  
63 132
</body>
64 133
</html>

Also available in: Unified diff