Project

General

Profile

Revision 4948

Added by daigle about 12 years ago

Added tpc workflow search and browse capabilities

View differences:

lib/style/skins/sanparks/header.jsp
42 42
		<td align="center" nowrap="nowrap" width="100%">
43 43
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
44 44
				<tr height="92">
45
					<td colspan="2" nowrap="nowrap">
45
					<td colspan="3" nowrap="nowrap">
46 46
						<span class="headertitle">
47 47
							SANParks
48 48
							<br/>
......
57 57
					<td nowrap="nowrap">
58 58
						<a href="<%=CGI_URL%>/register-dataset.cgi?cfg=sanparks" target="_top" class="headermenu">Register Data</a>
59 59
					</td>
60
					<td nowrap="nowrap">
61
						<a href="searchTPCWorkflowRun.jsp" target="_top" class="headermenu">TPC Status</a>
62
					</td>
63
					<td nowrap="nowrap">
64
						<a href="searchTPCWorkflow.jsp" target="_top" class="headermenu">TPC Workflows</a>
65
					</td>
60 66
				</tr>
61 67
			</table>
62 68
		</td>
lib/style/skins/sanparks/left-nav2.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29

  
30
/********************************************************************** 
31
 * left nav settings
32
 **********************************************************************/
33

  
34
.left-nav-section {
35
	display: inline;
36
	float: left;
37
	margin-left: 20px;
38
	height:  840px; 
39
	width:    175px;
40
	background: transparent url("images/navstrip.jpg") left 0px repeat-y;
41
}
42

  
43
.left-nav-header {
44
	margin-left: 0px;
45
	height: 20px;
46
	width: 175px;	
47
	background: #124325;
48
}
49

  
50
.left-nav-header-item {
51
	color: #FFFFFF;
52
	text-decoration: none;
53
	font-weight: bold;
54
	font-size: 12px;
55
	text-align: center;
56
	padding-top: 3px;
57
}
58

  
59
.left-nav-menu-header {
60
	color: #FFFFFF;
61
	display: block;
62
	font-weight: bold;
63
	margin: 8px 5px 0px 8px;
64
	padding-bottom: 5px;
65
	text-decoration: none;
66
}
67

  
68
a.left-nav-menu-header:hover {
69
	color: #FF3300;
70
	text-decoration: underline;
71
}
72

  
73
a.left-nav-menu-item:hover {
74
	color: #FF3300;
75
	text-decoration: underline;
76
}
77

  
78
.left-nav-menu-line {
79
	border-bottom: 1px solid #0E321D;
80
	margin: 0px 7px 0px 7px;
81
}
82

  
83
.left-nav-menu-item {
84
	background: transparent url("images/horns.png") left 1px no-repeat !important;
85
	display: block;
86
	color: #FFFFFF;
87
	font-weight: normal;
88
	padding: 0px 5px 0px 15px;
89
	margin: 0px 0px 0px 8px;
90
}
91
	
92
.left-nav-menu-item:hover {
93
	background: transparent url("images/nav_bullets_orange.gif") left 1px no-repeat !important;
94
	color: #FF3300;
95
	text-decoration: underline;
96
}
0 97

  
lib/style/skins/sanparks/searchTPCWorkflowRun.jsp
1
<%@ page    language="java" %>
2
<%
3
/*
4
*  '$RCSfile$'
5
*    Copyright: 2009 Regents of the University of California and the
6
*               National Center for Ecological Analysis and Synthesis
7
*
8
*   '$Author: daigle $'
9
*     '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
10
* '$Revision: 4080 $'
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
*/
26
%>
27
<%@ include file="settings.jsp"%>
28

  
29
<html>
30
    <head>
31
        <title>Sanparks TPC Report Search</title>
32
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks.css"/>
33
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks-tpc.css"/>
34
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/header2.css"/>
35
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/left-nav2.css"/>
36
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/footer2.css"/>
37
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script>
38
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script>
39
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
40
    </head>
41
    <body class="main-section">
42
        <jsp:include page="header2.jsp"/>
43
        
44
        <!-- Main content -->
45
        <jsp:include page="left-nav2.jsp"/>
46
        <jsp:include page="../../common/searchTPCWorkflowRunSection.jsp" />
47
        
48
        <!-- Footer Content -->
49
        <jsp:include page="footer2.jsp" />
50
    </body>
51
</html>
lib/style/skins/sanparks/left-nav2.jsp
1
<%@ page language="java"%>
2
<%
3
	 /*
4
	 '$RCSfile$'
5
	 Copyright: 2003 Regents of the University of California and the
6
	 National Center for Ecological Analysis and Synthesis
7
	 '$Author: leinfelder $'
8
	 '$Date: 2008-06-10 10:18:06 -0700 (Tue, 10 Jun 2008) $'
9
	 '$Revision: 3966 $'
10
	
11
	 This program is free software; you can redistribute it and/or modify
12
	 it under the terms of the GNU General Public License as published by
13
	 the Free Software Foundation; either version 2 of the License, or
14
	 (at your option) any later version.
15
	
16
	 This program is distributed in the hope that it will be useful,
17
	 but WITHOUT ANY WARRANTY; without even the implied warranty of
18
	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
	 GNU General Public License for more details.
20
	
21
	 You should have received a copy of the GNU General Public License
22
	 along with this program; if not, write to the Free Software
23
	 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
	 */
25
%>
26
<%@ include file="settings.jsp"%>
27
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
28
<html>
29
<head>
30
	<title>left nav</title>
31
	<!-- This file is meant to be included in a parent file, so link css stylesheet there. -->
32
</head>
33

  
34
<body>
35
	<div class="left-nav-section">
36
		<div class="left-nav-header">
37
			<div class="left-nav-header-item">
38
				Parks A-Z
39
			</div>
40
		</div>
41
		<form action="http://indus.msi.ucsb.edu/knb/style/skins/sanparks/index.jsp" method="post" target="_top" name="orgForm">
42
			<input name="organizationScope" type="hidden" value="" />
43
			<a class="left-nav-menu-header" href="#" onclick="orgForm.organizationScope.value='';orgForm.submit();">All</a>
44
			<div class="left-nav-menu-line"></div>
45
			<a class="left-nav-menu-header" href="#" onclick="orgForm.organizationScope.value='SANParks, South Africa';orgForm.submit();">SANParks</a>
46
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='SANParks, South Africa';orgForm.submit();">All</a>
47
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Addo Elephant National Park, South Africa';orgForm.submit();">Addo Elephant National Park</a>
48
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Agulhas National Park, South Africa';orgForm.submit();">Agulhas National Park</a>
49
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Augrabies Falls National Park, South Africa';orgForm.submit();">Augrabies Falls National Park</a>
50
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Bontebok National Park, South Africa';orgForm.submit();">Bontebok National Park</a>
51
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Camdeboo National Park, South Africa';orgForm.submit();">Camdeboo National Park</a>
52
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Golden Gate Highlands National Park, South Africa';orgForm.submit();">Golden Gate Highlands National Park</a>
53
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Karoo National Park, South Africa';orgForm.submit();">Karoo National Park</a>
54
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Kgalagadi Transfrontier Park, South Africa';orgForm.submit();">Kgalagadi Transfrontier Park</a>
55
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Knysna National Lake Area, South Africa';orgForm.submit();">Knysna National Lake Area</a>
56
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Kruger National Park, South Africa';orgForm.submit();">Kruger National Park</a>
57
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Mapungubwe National Park, South Africa';orgForm.submit();">Mapungubwe National Park</a>
58
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Marakele National Park, South Africa';orgForm.submit();">Marakele National Park</a>
59
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Mokala National Park, South Africa';orgForm.submit();">Mokala National Park</a>
60
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Mountain Zebra National Park, South Africa';orgForm.submit();">Mountain Zebra National Park</a>
61
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Namaqua National Park, South Africa';orgForm.submit();">Namaqua National Park</a>
62
			<!-- <a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Richtersveld National Park, South Africa';orgForm.submit();">Richtersveld National Park</a> -->
63
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Table Mountain National Park, South Africa';orgForm.submit();">Table Mountain National Park</a>
64
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Tankwa Karoo National Park, South Africa';orgForm.submit();">Tankwa Karoo National Park</a>
65
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Tsitsikamma National Park, South Africa';orgForm.submit();">Tsitsikamma National Park</a>
66
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='West Coast National Park, South Africa';orgForm.submit();">West Coast National Park</a>
67
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Wilderness National Park, South Africa';orgForm.submit();">Wilderness National Park</a>
68
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Ai-|Ais/Richtersveld Transfrontier National Park, South Africa';orgForm.submit();">Ai-|Ais/Richtersveld Transfrontier National Park</a>
69
		
70
			<a class="left-nav-menu-header" href="#" onclick="orgForm.organizationScope.value='SAEON, South Africa';orgForm.submit();">SAEON</a>
71
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='SAEON, South Africa';orgForm.submit();">All</a>
72
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Arid Zone SAEON Node, South Africa';orgForm.submit();">Arid Zone SAEON Node</a>
73
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Egagasini SAEON Node, South Africa';orgForm.submit();">Egagasini SAEON Node</a>
74
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Elwandle SAEON Node, South Africa';orgForm.submit();">Elwandle SAEON Node</a>
75
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Fynbos SAEON Node, South Africa';orgForm.submit();">Fynbos SAEON Node</a>
76
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Grassland, wetland and forests SAEON Node, South Africa';orgForm.submit();">Grassland, wetland and forests SAEON Node</a>
77
			<a class="left-nav-menu-item" href="#" onclick="orgForm.organizationScope.value='Ndlovu SAEON Node, South Africa';orgForm.submit();">Ndlovu SAEON Node</a>
78
			
79
		</form>
80
	</div>
81
</body>
82

  
83
</html>
84
</div>
85
</body>
86
</html>
0 87

  
lib/style/skins/sanparks/header2.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29

  
30
/********************************************************************** 
31
 * header settings
32
 **********************************************************************/
33

  
34
.header-section {
35
	margin: 0px 20px 0px 20px;
36
	width: 95%;
37
	min-width: 1050px;
38
	height: 112px;
39
	background: #7BB865 url(images/bg_header.jpg) repeat-x;
40
}
41

  
42
.header-title {
43
	font-weight: bold; 
44
	font-family: Helvetica, Verdana, Arial, sans-serif; 
45
	font-size: 16px; 
46
	color: #124326;
47
	margin: 25px 0px 28px 10px;
48
}
49

  
50
.header-left-image {
51
	display: inline;
52
	float: left;
53
	border: 0px;
54
	margin: 0px
55
}
56

  
57
.header-center-section {
58
	width: 45%;
59
	display:inline;
60
	float: left;	
61
	min-width: 400px;
62
}
63

  
64
.header-right-image {
65
	border: 0px;
66
	float: right;
67
}
68

  
69
.header-menu {
70
	position: absolute;
71
	left: 197px;
72
	top: 94px;
73
	width: 80%;	
74
	min-width: 475px;
75
}
76

  
77
.header-menu-item {
78
	display: inline;
79
	color: #FFFFFF;
80
	text-decoration: none;
81
	font-weight: bold;
82
	font-size: 12px;
83
	margin-left: 10%;
84
}
85

  
86
.header-menu-first-item {
87
	margin-left: 10px;
88
}
89

  
90
.menu-item-inactive {
91
	color: #B2B2B2;
92
}
0 93

  
lib/style/skins/sanparks/sanparks-scw.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29

  
30
/********************************************************************** 
31
 * simple calendar widgit settings.  See: 
32
 *          style/common/widgits/simple-calendar-widget.js
33
 * for a full list of possible css settings.
34
 **********************************************************************/
35

  
36
table.scw {
37
	background-color: #124325;
38
}
39

  
40
td.scwCells {
41
	background-color: #7BB865;
42
}
43

  
44
td.scwCells:hover,td.scwCellsHover {
45
	background-color: #ECCE00;
46
}
47

  
48
td.scwInputDate {
49
	background-color: #124325;
50
	color: #7BB865;
51
}
52

  
53
td.scwInputDate:hover,td.scwInputDateHover {
54
	background-color: #ECCE00;
55
	color: #000000;
56
}
57

  
58
td.scwCellsWeekend {
59
	background-color: #7BB865;
60
	color: #000000;
61
}
62

  
63
td.scwCellsWeekend:hover,td.scwCellsWeekendHover {
64
	background-color: #ECCE00;
65
}
66

  
67
td.scwCellsExMonth {
68
	color: #000000;
69
}
70

  
71
td.scwCellsExMonth:hover,td.scwCellsExMonthHover {
72
	background-color: #ECCE00;
73
}
74

  
75
td.scwNow {
76
	background-color: #124325;
77
}
78

  
79
td.scwNow:hover {
80
	color: #ECCE00;
81
}
82

  
83

  
0 84

  
lib/style/skins/sanparks/header2.jsp
1
<%@ page language="java"%>
2
<%
3
	 /*
4
	 '$RCSfile$'
5
	 Copyright: 2003 Regents of the University of California and the
6
	 National Center for Ecological Analysis and Synthesis
7
	 '$Author: leinfelder $'
8
	 '$Date: 2008-06-10 10:18:06 -0700 (Tue, 10 Jun 2008) $'
9
	 '$Revision: 3966 $'
10
	
11
	 This program is free software; you can redistribute it and/or modify
12
	 it under the terms of the GNU General Public License as published by
13
	 the Free Software Foundation; either version 2 of the License, or
14
	 (at your option) any later version.
15
	
16
	 This program is distributed in the hope that it will be useful,
17
	 but WITHOUT ANY WARRANTY; without even the implied warranty of
18
	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
	 GNU General Public License for more details.
20
	
21
	 You should have received a copy of the GNU General Public License
22
	 along with this program; if not, write to the Free Software
23
	 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
	 */
25
%>
26
<%@ include file="settings.jsp"%>
27
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
28
<html>
29
<head>
30
	<title>SANParks - South African National Park Data Repository</title>
31
	<!-- This file is meant to be included in a parent file, so link css stylesheet there. -->
32
</head>
33

  
34
<body>
35
<div class="header-section">
36
	<a href="http://www.SANParks.org/" title="SANParks.org Home"><img class="header-left-image" src="<%=STYLE_SKINS_URL%>/sanparks/images/logofade.jpg" alt="SANParks.org Home" /></a>
37
	<div class="header-center-section">
38
		<div class="header-title">SANParks<br>
39
			South African National Park Data Repository </div>
40
		<div class="header-menu">
41
			<a class="header-menu-item header-menu-first-item" href="./" target="_top" >Repository Home</a>
42
			<a class="header-menu-item"href="<%=CGI_URL%>/register-dataset.cgi?cfg=sanparks" target="_top" >Register Data</a>
43

  
44
<%
45
			if(request.getRequestURI().endsWith("searchTPCWorkflowRun.jsp")) {
46
%>
47
				<div class="header-menu-item menu-item-inactive">TPC Status</div>	
48
<%
49
			} else {
50
%>
51
				<a class="header-menu-item" href="<%=STYLE_SKINS_URL%>/sanparks/searchTPCWorkflow.jsp">TPC Status</a>
52
<%
53
			}
54

  
55
 
56
			if(request.getRequestURI().endsWith("searchTPCWorkflow.jsp")) {
57
%>
58
				<div class="header-menu-item menu-item-inactive">TPC Workflows</div>	
59
<%
60
			} else {
61
%>
62
				<a class="header-menu-item"href="<%=STYLE_SKINS_URL%>/sanparks/searchTPCWorkflow.jsp">TPC Workflows</a>
63
<%
64
			}
65
%> 
66
					
67
		</div>
68
	</div>
69
	<img class="header-right-image" src='<%=STYLE_SKINS_URL%>/sanparks/images/giraffe.jpg' alt='Giraffe' />
70
</div>
71
</body>
72
</html>
0 73

  
lib/style/skins/sanparks/sanparks.css
337 337
	color: #FF3300;
338 338
	text-decoration: underline;
339 339
}
340

  
341
.underlined {
342
	text-decoration: underline;
343
}
340 344
/*****END SANPARKS NAV*******/
341 345

  
342 346
/**
......
696 700
.footerContent a {
697 701
        color: #FFFFFF;
698 702
}
703

  
704
/********************************************************************** 
705
 * content section settings
706
 **********************************************************************/
707
 
708
.main-section {
709
	background: #B6BCB8 url(images/bg_strip.jpg) repeat-x fixed left bottom;
710
}
711
 
712
.content-section {
713
	margin: 0px 20px 0px 20px;
714
	padding-top: 20px;
715
	background: #FFFFFF;
716
	height: 820px;
717
	width: 95%;
718
	min-width: 1050px;
719
}
720

  
721
.content-section-header {
722
	padding: 20px 0px 10px 200px;
723
	color: #7BB865;
724
	font-size: 18px;
725
}
726

  
727
.content-subsection {
728
	margin: 0px 0px 6px 180px;
729
	vertical-align: middle;
730
}
731

  
732
.content-subsection-header {
733
	padding: 0px 0px 10px 0px;
734
	color: #7BB865;
735
	font-size: 16px;
736
}
737

  
738
/********************************************************************** 
739
 * form field settings
740
 **********************************************************************/
741

  
742
.field-label {
743
	display: inline;
744
	margin: 30px 7px 0px 0px;
745
	color: #000000;
746
	font-size: 14px;
747
}
748

  
749
.text-input {
750
	margin: 0px 5px 0px 0px;
751
	padding-left: 4px;
752
	font-size: 12px;
753
	color: #000000;
754
	width: 250px;
755
}
756

  
757
.dropdown-input {
758
	margin: 0px 10px 0px 0px;
759
	width: 150px;
760
}
761

  
762
.submit-button {
763
	margin: 20px 0px 10px 300px;
764
	width: 150px;
765
}
766

  
767
/********************************************************************** 
768
 * search result specific settings
769
 **********************************************************************/
770

  
771
.result-header-section {
772
	margin: 20px 0px 10px 0px;
773
	font-size: 16px;
774
	font-weight: bold;
775
}
776

  
777
.result-header {
778
	color: #255333;
779
	font-style: normal;
780
	display: inline;
781
	float: left;
782
	margin-right: 10px;
783
}
784

  
785
.result-header-emphasis {
786
	color: #DD7744; 
787
}
788

  
789
.row {
790
	color: #255333;
791
	height: 20px;
792
	border-left: 1px solid #A9A9A9;
793
	border-bottom: 1px solid #A9A9A9;
794
	border-right: 1px solid #A9A9A9;
795
}
796

  
797
.row-header {
798
	background-color: #255333;
799
	border-top: 1px solid #A9A9A9;
800
	font-weight: bold;
801
	font-size: 12px;
802
	color: #FFFFFF;
803
}
804

  
805
.row-even {
806
	background-color: #EBEBEB;
807
}
808

  
809
.row-odd {
810
	background-color: #D5D5D5;
811
}
812

  
813
.col {
814
	padding: 1px 0px 0px 15px;
815
	overflow: hidden;
816
	display: inline;
817
	float: left;
818
	width: 100px;
819
	height: 19px;
820
	border-right: 1px solid #D5D5D5;
821
	text-align: center;
822
}
823

  
824
.col1 {
825
	width: 100px;
826
}
827

  
828
.col2 {
829
	width: 100px;
830
}
831

  
832
.col3 {	
833
	width: 100px;
834
}
835

  
836
.col4 {	
837
	width: 100px;
838
}
lib/style/skins/sanparks/sanparks-tpc.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29

  
30
/********************************************************************** 
31
 * tpc settings
32
 **********************************************************************/
33

  
34
.content-section {
35
}
36

  
37
.content-section-header {
38
	text-align:	left;
39
	color: #124325;
40
	background: #CFE2CF;
41
	font-family: "Verdana", "Helvetica", "Trebuchet MS", "Arial", sans-serif;
42
	font-size: 14px;
43
	font-weight: bold;
44
	border: 1px solid #124325;
45
	display: block;
46
	padding: 3px 0px 3px 10px;
47
	margin:0px 60px 20px 178px;
48
}
49

  
50
.content-subsection {
51
	vertical-align: middle;
52
	margin: 0px 0px 0px 195px;
53
	width: 750px;
54
}
55

  
56
.content-subsection-header {
57
	margin: 10px 0px 5px 0px;
58
	padding: 0px 0px 0px 0px;
59
	color: #7BB865;
60
	font-size: 16px;
61
}
62

  
63
.from-date-section {
64
	display:inline;
65
	float: left;
66
	margin: 0px 25px 0px 25px;
67
}
68

  
69
.to-date-section {
70
	margin: 0px 20px 0px 0px;
71
}
72

  
73
.form-input-row {
74
	margin-bottom: 10px;
75
}
76

  
77
.form-base-row {
78
	margin: 20px 0px 10px 0px;
79
}
80

  
81
.field-label {
82
	margin: 0px 0px 0px 15px;
83
	padding: 0px 7px 0px 0px;
84
	width: 125px;
85
	display: inline;
86
	float: left;
87
	text-align: right;
88
	font-size: 1.1em;
89
}
90

  
91
.field-remove-button {
92
	margin: 0px 0px 0px 100px;
93
}
94

  
95
.text-input {
96
	width: 290px;
97
}
98

  
99
.date-input {
100
		width: 150px;
101
}
102

  
103
.calendar-icon {
104
	vertical-align: middle;
105
}
106

  
107
.search-section {
108
	border: 1px solid #D5D5D5;
109
	padding: 15px 0px 5px 0px;
110
}
111

  
112
.search-section-text {
113
	position: absolute;
114
	top: 123px;
115
	left: 230px;
116
	background: #FFFFFF;	
117
	font-size: 14px;
118
	color: #797979;
119
	padding: 0px 5px 0px 5px;
120
}
121

  
122
.submit-button {
123
	margin: 0px 0px 0px 280px;
124
	width: 100px;
125
}
126

  
127
/********************************************************************** 
128
 * tpc search result specific settings
129
 **********************************************************************/
130

  
131
.col1 {
132
	width: 280px;
133
	text-align: left;
134
	font-weight: bold;
135
}
136

  
137
.col2 {
138
	width: 147px;
139
}
140

  
141
.col3 {
142
	width: 110px;
143
}
144

  
145
.col4 {
146
	width: 148px;
147
	border-right: none;
148
}
0 149

  
lib/style/skins/sanparks/searchTPCWorkflow.jsp
1
<%@ page    language="java" %>
2
<%
3
/*
4
*  '$RCSfile$'
5
*    Copyright: 2009 Regents of the University of California and the
6
*               National Center for Ecological Analysis and Synthesis
7
*
8
*   '$Author: daigle $'
9
*     '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
10
* '$Revision: 4080 $'
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
*/
26
%>
27
<%@ include file="settings.jsp"%>
28

  
29
<html>
30
    <head>
31
        <title>Sanparks TPC Report Search</title>
32
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks.css"/>
33
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks-tpc.css"/>
34
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/header2.css"/>
35
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/left-nav2.css"/>
36
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/footer2.css"/>
37
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script>
38
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script>
39
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
40
    </head>
41
    <body class="main-section">
42
        <jsp:include page="header2.jsp"/>
43
        
44
        <!-- Main content -->
45
        <jsp:include page="left-nav2.jsp"/>
46
        <jsp:include page="../../common/searchTPCWorkflowSection.jsp" />
47
        
48
        <!-- Footer Content -->
49
        <jsp:include page="footer2.jsp" />
50
    </body>
51
</html>
lib/style/skins/sanparks/footer2.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29

  
30
/********************************************************************** 
31
 * footer settings
32
 **********************************************************************/
33
 
34
.footer-section {
35
	margin: 0px 20px 0px 20px;
36
	width: 95%;
37
	min-width: 1050px;
38
	height: 150px;
39
	background: #124325;
40
	color: #FFFFFF;
41
}
42

  
43
.footer-link {
44
	color: #FFFFFF;
45
}
46

  
47
.footer-link:hover {
48
	color: #FFFFFF;
49
}
50

  
51
.footer-text {
52
	margin: 0px;
53
	padding: 5px 10px 0px 5px;
54
}
0 55

  
lib/style/skins/sanparks/footer2.jsp
1
<%@ page language="java"%>
2
<%
3
	 /*
4
	 '$RCSfile$'
5
	 Copyright: 2003 Regents of the University of California and the
6
	 National Center for Ecological Analysis and Synthesis
7
	 '$Author: leinfelder $'
8
	 '$Date: 2008-06-10 10:18:06 -0700 (Tue, 10 Jun 2008) $'
9
	 '$Revision: 3966 $'
10
	
11
	 This program is free software; you can redistribute it and/or modify
12
	 it under the terms of the GNU General Public License as published by
13
	 the Free Software Foundation; either version 2 of the License, or
14
	 (at your option) any later version.
15
	
16
	 This program is distributed in the hope that it will be useful,
17
	 but WITHOUT ANY WARRANTY; without even the implied warranty of
18
	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
	 GNU General Public License for more details.
20
	
21
	 You should have received a copy of the GNU General Public License
22
	 along with this program; if not, write to the Free Software
23
	 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
	 */
25
%>
26
<%@ include file="settings.jsp"%>
27
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
28
    
29
<html>
30
<head>
31
	<title>footer</title>
32
		<!-- This file is meant to be included in a parent file, so link css stylesheet there. -->
33
</head>
34
<body>
35
	<div class="footer-section">
36
            <p class="footer-text">
37
                This project is a cooperative effort of the
38
                <a class="footer-link" href="http://www.sanparks.org/">South African National Parks (SANParks)</a> and the 
39
                <a class="footer-link" href="http://www.nceas.ucsb.edu">National Center for Ecological Analysis and Synthesis (NCEAS)</a>.
40
                The Data Repository is based on software developed by the 
41
                <a class="footer-link" href="http://knb.ecoinformatics.org">Knowledge Network for Biocomplexity (KNB)</a>,
42
                and houses metadata that are compliant with 
43
                <a class="footer-link" href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata Language (EML)</a>
44
                and the <a class="footer-link" href="http://www.fgdc.gov/metadata">Federal Geographic Data Committee (FGDC)</a> specification.
45
                Other sites contributing to the KNB repository include:
46
                <ul>
47
                    <li>
48
                        <a class="footer-link" href="http://knb.ecoinformatics.org/knb/obfs">Organization of Biological Field Stations registry</a>  
49
                    </li>
50
                    <li>
51
                        <a class="footer-link" href="http://knb.ecoinformatics.org/knb/style/skins/nrs">UC Natural Reserve System registry</a>  
52
                    </li>
53
                    <li>
54
                        <a class="footer-link" href="http://knb.ecoinformatics.org/knb/style/skins/nceas">NCEAS registry</a>  
55
                    </li>
56
                    <li>
57
                        <a class="footer-link" href="http://knb.ecoinformatics.org/knb/style/skins/specnet">SpecNet registry</a>  
58
                    </li>
59
                </ul>
60
            </p>
61
	</div>
62
</body>
63
</html>
64

  
0 65

  
lib/style/common/tpc-resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
	*  '$RCSfile$'
4
	*      Authors: Matt Jones, CHad Berkley
5
	*    Copyright: 2009 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: leinfelder $'
10
	*     '$Date: 2009-04-02 14:20:05 -0800 (Thu, 02 Apr 2009) $'
11
	* '$Revision: 4893 $'
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
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32

  
33
	<xsl:output method="html" />
34
	<xsl:param name="sessid" />
35
	<xsl:param name="qformat">default</xsl:param>
36
	<xsl:param name="enableediting">false</xsl:param>
37
	<xsl:param name="contextURL"/>
38
	
39
	<xsl:template match="/">  
40
	
41
		<div class="result-header-section">      
42
        	<div class="result-header">TPC Workflows</div>
43
        	<div class="result-header-emphasis">(<xsl:number value="count(resultset/document)" />   
44
        		<xsl:if test="count(resultset/document) != 1"> items</xsl:if>
45
        		<xsl:if test="count(resultset/document) = 1"> item</xsl:if>
46
        	 	found)
47
        	</div>
48
		</div>
49
		<div class="row row-header" >
50
			<div class="col col1">TPC Name</div>
51
			<div class="col col2">Creator</div>
52
			<div class="col col3">Date Created</div>
53
			<div class="col col4">Action</div>
54
		</div>			
55
		<!-- This tests to see if there are returned documents,
56
			if there are not then don't show the query results -->
57
		<xsl:if test="count(resultset/document) &gt; 0">
58
			<xsl:for-each select="resultset/document">
59
				<div>
60
					<xsl:attribute name="class">
61
						<xsl:choose>
62
							<xsl:when test="position() mod 2 = 1">row row-odd</xsl:when>
63
							<xsl:when test="position() mod 2 = 0">row row-even</xsl:when>
64
						</xsl:choose>
65
					</xsl:attribute>
66

  
67
					<div class="col col1">	
68
						<xsl:value-of select='./param[@name="entity/@name"]' />		
69
					</div>
70
					<div class="col col2">	
71
						<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;author&apos;]/configure"]' />		
72
					</div>
73
					<div class="col col3">	
74
						<xsl:value-of select='./updatedate' />			
75
					</div>
76
					<div class="col col4">	
77
						<span>
78
							<xsl:attribute name="class">underlined</xsl:attribute>
79
							<xsl:attribute name="onclick">showWorkflowRuns(&apos;<xsl:value-of select='./param[@name="property[@name=&apos;entityId&apos;]/@value"]' />&apos;,&apos;searchTPCWorkflowRun.jsp&apos;)</xsl:attribute>
80
								 View Runs
81
						</span> 
82
					</div>		
83
				</div>
84
			</xsl:for-each>
85
		</xsl:if>
86
	</xsl:template>
87

  
88
</xsl:stylesheet>
0 89

  
lib/style/common/tpc-run-resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
	*  '$RCSfile$'
4
	*      Authors: Matt Jones, CHad Berkley
5
	*    Copyright: 2009 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: leinfelder $'
10
	*     '$Date: 2009-04-02 14:20:05 -0800 (Thu, 02 Apr 2009) $'
11
	* '$Revision: 4893 $'
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
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32

  
33
	<xsl:output method="html" />
34
	<xsl:param name="sessid" />
35
	<xsl:param name="qformat">default</xsl:param>
36
	<xsl:param name="enableediting">false</xsl:param>
37
	<xsl:param name="contextURL"/>
38
	
39
	<xsl:template match="/">  
40
		<div class="result-header-section">      
41
        	<div class="result-header">TPC Workflows</div>
42
        	<div class="result-header-emphasis">(<xsl:number value="count(resultset/document)" />
43
				<xsl:if test="count(resultset/document) != 1"> items</xsl:if>
44
        		<xsl:if test="count(resultset/document) = 1"> item</xsl:if> 
45
        		found)
46
        	</div>
47
		</div>
48
		<div class="row row-header" >
49
			<div class="col col1">TPC Name</div>
50
			<div class="col col2">Status</div>
51
			<div class="col col3">Date Executed</div>
52
			<div class="col col4">Available Reports</div>
53
		</div>			
54
		<!-- This tests to see if there are returned documents,
55
			if there are not then don't show the query results -->
56
		<xsl:if test="count(resultset/document) &gt; 0">
57
			<xsl:for-each select="resultset/document">
58
				<div>
59
					<xsl:attribute name="class">
60
						<xsl:choose>
61
							<xsl:when test="position() mod 2 = 1">row row-odd</xsl:when>
62
							<xsl:when test="position() mod 2 = 0">row row-even</xsl:when>
63
						</xsl:choose>
64
					</xsl:attribute>
65

  
66
					<div class="col col1">	
67
						<xsl:value-of select='./param[@name="entity/@name"]' />		
68
					</div>
69
					<div class="col col2">	
70
						<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;status&apos;]/configure"]' />		
71
					</div>
72
					<div class="col col3">	
73
						<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;runDate&apos;]/configure"]' />		
74
					</div>
75
					<div class="col col4">	
76
						<a>
77
							<xsl:attribute name="class">underlined</xsl:attribute>
78
							<xsl:attribute name="href">
79
								<xsl:value-of select='$contextURL' />/metacat?action=read&amp;docid=<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;archiveName&apos;]/configure"]' />&amp;archiveEntryName=<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;pdfReport&apos;]/configure"]' />
80
							</xsl:attribute>
81
							PDF
82
						</a> | 
83
						<a>
84
							<xsl:attribute name="class">underlined</xsl:attribute>
85
							<xsl:attribute name="href">
86
								<xsl:value-of select='$contextURL' />/metacat?action=read&amp;docid=<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;archiveName&apos;]/configure"]' />&amp;archiveEntryName=<xsl:value-of select='./param[@name="property[@name=&apos;KeplerDocumentation&apos;]/property[@name=&apos;htmlReport&apos;]/configure"]' />
87
							</xsl:attribute>
88
							HTML
89
						</a> 							 
90
					</div>		
91
				</div>
92
			</xsl:for-each>
93
		</xsl:if>
94
	</xsl:template>
95

  
96
</xsl:stylesheet>
0 97

  
lib/style/common/searchTPCWorkflowSection.jsp
1
<%@ page    language="java" %>
2
<%
3
/*
4
*  '$RCSfile$'
5
*    Copyright: 2009 Regents of the University of California and the
6
*               National Center for Ecological Analysis and Synthesis
7
*
8
*   '$Author: daigle $'
9
*     '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
10
* '$Revision: 4080 $'
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
*/
26
%>
27
<%@ include file="common-settings.jsp"%>
28
<%@ include file="configure-check.jsp"%>
29

  
30
<html>
31
    <head>
32
        <title>TPC Report Search Section</title>
33
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/simple-calendar-widgit.js"></script>
34
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script>
35
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script>
36
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflow.js"></script>   
37
    </head>
38
    <body onload="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
39
    	<div class=content-section>    
40
    		<div class="content-subsection search-section" id="search-section">   
41
        		<form name="tpcSearch" id="tpcSearch">
42
        			<input name="query" id="query" type="hidden" />
43
					<input name="qformat" value="tpc-result" type="hidden" />
44
					<!-- input name="qformat" value="xml" type="hidden" / -->
45
					<input name="action" value="squery" type="hidden" />  
46
           			<input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow" type="hidden">
47
           			<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden">
48
           			<div class="search-section-text">Search</div>			
49
					<div class="form-base-row" id="form-base-row">
50
						<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div>
51
						<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector">
52
							<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option>
53
							<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option>
54
							<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option>
55
							<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option>
56
							<option values="date-created" onclick="addSearchDropdownBefore('tpcSearch','Date Created','date-created','be|af','form-base-row')">Date Created</option>
57
							<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option>
58
						</select>    
59
        		
60
        				<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
61
        			</div> 
62
        		</form>
63
			</div>
64
        	
65
        	<div class="content-subsection" id="workflow-search-results">
66
        	</div>
67
    		
68
        </div>
69
    </body>
70
</html>
lib/style/common/searchWorkflow.js
1
/*
2
 * Generate a workflow query string.  this assumes that search fields meet the
3
 * following criteria in the web page:
4
 * -- search input fields have an ID that starts with sf_ 
5
 * -- the search input field name is the xpath of the value to search
6
 * -- if there is a search mode dropdown for an input field in the form, it's ID 
7
 *    should use the same convention as the input field, but start with sm_
8
 *    (i.e. the search mode input for the sf_firstname input would be sm_firstname) 
9
 * -- the value 
10
 */
11
 
12
function setWorkflowQueryFormField(formId) {
13
	var queryString = ""; 
14
	queryString += "<pathquery version='1.2'>";
15
	queryString += "<returndoctype>entity</returndoctype>";
16
	queryString += "<returndoctype>-//UC Berkeley//DTD MoML 1//EN</returndoctype>";
17
	queryString += "<returnfield>entity/@name</returnfield>";
18
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'author\']/configure</returnfield>";
19
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'description\']/configure</returnfield>";
20
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'createDate\']/configure</returnfield>";
21
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'workflowId\']/configure</returnfield>";
22
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'status\']/configure</returnfield>";
23
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'runDate\']/configure</returnfield>";
24
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'pdfReport\']/configure</returnfield>";
25
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'htmlReport\']/configure</returnfield>";
26
	queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'archiveName\']/configure</returnfield>";				
27
	queryString += "<returnfield>property[@name=\'entityId\']/@value</returnfield>";
28
	
29
	queryString += "<querygroup operator='INTERSECT'>";	
30
	
31
	var elementList = document.getElementById(formId).elements;
32
	for(var i = 0; i < elementList.length; i++) {
33
	//alert("form element: " + elementList[i].id);
34
		if((elementList[i].id.indexOf("sf-") == 0) && (elementList[i].value != '')) {					
35
			queryString += getQueryTerm(elementList[i]);
36
		}
37
	} 
38
	
39
	queryString += "</querygroup>";	
40
	queryString += "</pathquery>";
41
	
42
	//alert(queryString);
43
	
44
	var queryField = document.getElementById("query");
45
	
46
	queryField.value = queryString;
47
}
48

  
49
function getQueryTerm(sfElement) {
50
	var baseId = sfElement.id.substring(3, sfElement.id.length);		
51
	var searchMode = "contains";
52
	var selector = document.getElementById("sm-" + baseId);
53
	if (selector != null) {
54
		searchMode = selector.value;
55
	}
56
	
57
	var pathExpr = '';
58
	if (sfElement.name == 'name') {
59
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
60
		pathExpr += "<value>" + sfElement.value + "</value>";
61
		pathExpr += "<pathexpr>entity/@name</pathexpr>";
62
		pathExpr += "</queryterm>"; 		
63
	} else if (sfElement.name == 'keyword') {
64
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
65
		pathExpr += "<value>" + sfElement.value + "</value>";
66
		pathExpr += "<pathexpr>property/@value</pathexpr>";
67
		pathExpr += "</queryterm>"; 		
68
	} else if (sfElement.name == 'creator') {
69
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
70
		pathExpr += "<value>" + sfElement.value + "</value>";
71
		pathExpr += "<pathexpr>property/property/configure</pathexpr>";
72
		pathExpr += "</queryterm>"; 		
73
	} else if (sfElement.name == 'description') {
74
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
75
		pathExpr += "<value>" + sfElement.value + "</value>";
76
		pathExpr += "<pathexpr>property/property/configure</pathexpr>";
77
		pathExpr += "</queryterm>"; 		
78
	} else if (sfElement.name == 'date-created') {
79
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
80
		pathExpr += "<value>" + sfElement.value + "</value>";
81
		pathExpr += "<pathexpr>property/property/configure</pathexpr>";
82
		pathExpr += "</queryterm>"; 		
83
	} else if (sfElement.name == 'date-executed') {
84
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
85
		pathExpr += "<value>" + sfElement.value + "</value>";
86
		pathExpr += "<pathexpr>property/property/configure</pathexpr>";
87
		pathExpr += "</queryterm>"; 		
88
	} else if (sfElement.name == 'workflow-id') {
89
		pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>";
90
		pathExpr += "<value>" + sfElement.value + "</value>";
91
		pathExpr += "<pathexpr>property/property/configure</pathexpr>";
92
		pathExpr += "</queryterm>"; 		
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff