Revision 4966
Added by daigle over 15 years ago
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/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/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/searchTPCWorkflowRunSection.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 |
|
|
38 |
</head> |
|
39 |
<body onload="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
40 |
<div class=content-section> |
|
41 |
<div class="content-subsection search-section" id="search-section"> |
|
42 |
<form name="tpcSearch" id="tpcSearch"> |
|
43 |
<input name="query" id="query" type="hidden" /> |
|
44 |
<input name="qformat" value="tpc-run-result" 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-run" type="hidden"> |
|
47 |
<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden"> |
|
48 |
<% |
|
49 |
if (request.getParameter("workflowid") != null) { |
|
50 |
%> <input name="workflow-id" id="sf-workflow-id1000" value="<%= request.getParameter("workflowid") %>" type="hidden"> |
|
51 |
<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="equals" type="hidden"> |
|
52 |
<% |
|
53 |
} |
|
54 |
%> |
|
55 |
<div class="search-section-text">Search</div> |
|
56 |
<div class="form-base-row" id="form-base-row"> |
|
57 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
58 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
59 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
60 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
61 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
62 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
63 |
<option values="date-executed" onclick="addSearchDropdownBefore('tpcSearch','Date Executed','date-executed','be|af','form-base-row')">Date Executed</option> |
|
64 |
<option values="workflow-run-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow Run ID</option> |
|
65 |
<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
66 |
<option values="status" onclick="addSearchDropdownBefore('tpcSearch','Status','Status','is|in','form-base-row')">Status</option> |
|
67 |
</select> |
|
68 |
|
|
69 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
70 |
</div> |
|
71 |
</form> |
|
72 |
</div> |
|
73 |
|
|
74 |
<div class="content-subsection" id="workflow-search-results"> |
|
75 |
</div> |
|
76 |
|
|
77 |
</div> |
|
78 |
</body> |
|
79 |
</html> |
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) > 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='KeplerDocumentation']/property[@name='author']/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('<xsl:value-of select='./param[@name="property[@name='entityId']/@value"]' />','searchTPCWorkflowRun.jsp')</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> |
|
89 | 0 |
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) > 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='KeplerDocumentation']/property[@name='status']/configure"]' /> |
|
71 |
</div> |
|
72 |
<div class="col col3"> |
|
73 |
<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='runDate']/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&docid=<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='archiveName']/configure"]' />&archiveEntryName=<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='pdfReport']/configure"]' /> |
|
80 |
</xsl:attribute> |
|
81 |
|
|
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&docid=<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='archiveName']/configure"]' />&archiveEntryName=<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='htmlReport']/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> |
|
97 | 0 |
lib/style/skins/sanparks/searchWorkflowRun.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/searchWorkflowRunSection.jsp" /> |
|
47 |
|
|
48 |
<!-- Footer Content --> |
|
49 |
<jsp:include page="footer2.jsp" /> |
|
50 |
</body> |
|
51 |
</html> |
|
0 | 52 |
lib/style/skins/sanparks/header.jsp | ||
---|---|---|
58 | 58 |
<a href="<%=CGI_URL%>/register-dataset.cgi?cfg=sanparks" target="_top" class="headermenu">Register Data</a> |
59 | 59 |
</td> |
60 | 60 |
<td nowrap="nowrap"> |
61 |
<a href="searchTPCWorkflowRun.jsp" target="_top" class="headermenu">TPC Status</a>
|
|
61 |
<a href="searchWorkflowRun.jsp" target="_top" class="headermenu">TPC Status</a> |
|
62 | 62 |
</td> |
63 | 63 |
<td nowrap="nowrap"> |
64 |
<a href="searchTPCWorkflow.jsp" target="_top" class="headermenu">TPC Workflows</a>
|
|
64 |
<a href="searchWorkflow.jsp" target="_top" class="headermenu">TPC Workflows</a> |
|
65 | 65 |
</td> |
66 | 66 |
</tr> |
67 | 67 |
</table> |
lib/style/skins/sanparks/searchWorkflow.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/searchWorkflowSection.jsp" /> |
|
47 |
|
|
48 |
<!-- Footer Content --> |
|
49 |
<jsp:include page="footer2.jsp" /> |
|
50 |
</body> |
|
51 |
</html> |
|
0 | 52 |
lib/style/skins/sanparks/sanparks-scheduled-jobs.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-suffix { |
|
92 |
margin: 0px 0px 0px 15px; |
|
93 |
padding: 0px 7px 0px 0px; |
|
94 |
width: 125px; |
|
95 |
display: inline; |
|
96 |
text-align: right; |
|
97 |
font-size: 1.1em; |
|
98 |
} |
|
99 |
|
|
100 |
.summary-field { |
|
101 |
margin: 0px 0px 0px 15px; |
|
102 |
padding: 0px 7px 0px 0px; |
|
103 |
width: 125px; |
|
104 |
display: inline; |
|
105 |
float: left; |
|
106 |
text-align: right; |
|
107 |
font-size: 16px; |
|
108 |
color: #255333; |
|
109 |
} |
|
110 |
|
|
111 |
.summary-value { |
|
112 |
padding: 0px 7px 0px 0px; |
|
113 |
display: inline; |
|
114 |
text-align: right; |
|
115 |
font-size: 16px; |
|
116 |
color: #000000; |
|
117 |
} |
|
118 |
|
|
119 |
.field-remove-button { |
|
120 |
margin: 0px 0px 0px 100px; |
|
121 |
} |
|
122 |
|
|
123 |
.text-input { |
|
124 |
width: 290px; |
|
125 |
} |
|
126 |
|
|
127 |
.date-input { |
|
128 |
width: 150px; |
|
129 |
} |
|
130 |
|
|
131 |
.int-input { |
|
132 |
width: 60px; |
|
133 |
} |
|
134 |
|
|
135 |
.calendar-icon { |
|
136 |
vertical-align: middle; |
|
137 |
} |
|
138 |
|
|
139 |
.search-section { |
|
140 |
border: 1px solid #D5D5D5; |
|
141 |
padding: 15px 0px 5px 0px; |
|
142 |
} |
|
143 |
|
|
144 |
.search-section-text { |
|
145 |
position: absolute; |
|
146 |
top: 123px; |
|
147 |
left: 230px; |
|
148 |
background: #FFFFFF; |
|
149 |
font-size: 14px; |
|
150 |
color: #797979; |
|
151 |
padding: 0px 5px 0px 5px; |
|
152 |
} |
|
153 |
|
|
154 |
.submit-button { |
|
155 |
margin: 0px 0px 0px 280px; |
|
156 |
width: 100px; |
|
157 |
} |
|
158 |
|
|
159 |
.result-header-emphasis { |
|
160 |
font-size: 16px; |
|
161 |
margin-bottom: 5px; |
|
162 |
} |
|
163 |
|
|
164 |
.workflow-run-content { |
|
165 |
margin-bottom: 20px; |
|
166 |
} |
|
167 |
|
|
168 |
/********************************************************************** |
|
169 |
* tpc search result specific settings |
|
170 |
**********************************************************************/ |
|
171 |
|
|
172 |
.col1 { |
|
173 |
width: 210px; |
|
174 |
text-align: left; |
|
175 |
font-weight: bold; |
|
176 |
} |
|
177 |
|
|
178 |
.col2 { |
|
179 |
width: 90px; |
|
180 |
} |
|
181 |
|
|
182 |
.col3 { |
|
183 |
width: 170px; |
|
184 |
} |
|
185 |
|
|
186 |
.col4 { |
|
187 |
width: 80px; |
|
188 |
} |
|
189 |
|
|
190 |
.col5 { |
|
191 |
width: 80px; |
|
192 |
border-right: none; |
|
193 |
} |
|
0 | 194 |
lib/style/skins/sanparks/header2.jsp | ||
---|---|---|
42 | 42 |
<a class="header-menu-item"href="<%=CGI_URL%>/register-dataset.cgi?cfg=sanparks" target="_top" >Register Data</a> |
43 | 43 |
|
44 | 44 |
<% |
45 |
if(request.getRequestURI().endsWith("searchTPCWorkflowRun.jsp")) {
|
|
45 |
if(request.getRequestURI().endsWith("searchWorkflowRun.jsp")) { |
|
46 | 46 |
%> |
47 | 47 |
<div class="header-menu-item menu-item-inactive">TPC Status</div> |
48 | 48 |
<% |
49 | 49 |
} else { |
50 | 50 |
%> |
51 |
<a class="header-menu-item" href="<%=STYLE_SKINS_URL%>/sanparks/searchTPCWorkflow.jsp">TPC Status</a>
|
|
51 |
<a class="header-menu-item" href="<%=STYLE_SKINS_URL%>/sanparks/searchWorkflowRun.jsp">TPC Status</a>
|
|
52 | 52 |
<% |
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
|
56 |
if(request.getRequestURI().endsWith("searchTPCWorkflow.jsp")) {
|
|
56 |
if(request.getRequestURI().endsWith("searchWorkflow.jsp")) { |
|
57 | 57 |
%> |
58 | 58 |
<div class="header-menu-item menu-item-inactive">TPC Workflows</div> |
59 | 59 |
<% |
60 | 60 |
} else { |
61 | 61 |
%> |
62 |
<a class="header-menu-item"href="<%=STYLE_SKINS_URL%>/sanparks/searchTPCWorkflow.jsp">TPC Workflows</a>
|
|
62 |
<a class="header-menu-item"href="<%=STYLE_SKINS_URL%>/sanparks/searchWorkflow.jsp">TPC Workflows</a> |
|
63 | 63 |
<% |
64 | 64 |
} |
65 | 65 |
%> |
lib/style/skins/sanparks/sanparks.css | ||
---|---|---|
341 | 341 |
.underlined { |
342 | 342 |
text-decoration: underline; |
343 | 343 |
} |
344 |
|
|
345 |
.fake-url { |
|
346 |
text-decoration: underline; |
|
347 |
} |
|
344 | 348 |
/*****END SANPARKS NAV*******/ |
345 | 349 |
|
346 | 350 |
/** |
lib/style/skins/sanparks/sanparks.xml | ||
---|---|---|
7 | 7 |
<!-- <target publicid="-//W3C//HTML//EN">/style/skins/sanparks/sanparks.xsl</target> --> |
8 | 8 |
<target publicid="-//W3C//HTML//EN">/style/common/resultset.xsl</target> |
9 | 9 |
</doctype> |
10 |
|
|
11 |
<doctype publicid="-//NCEAS//scheduledWorkflowResultset//EN"> |
|
12 |
<target publicid="-//W3C//HTML//EN">/style/common/scheduledWorkflowResultset.xsl</target> |
|
13 |
</doctype> |
|
10 | 14 |
|
11 | 15 |
<doctype publicid="-//NCEAS//login//EN"> |
12 | 16 |
<target publicid="-//W3C//HTML//EN">/style/skins/sanparks/knp-login.xsl</target> |
lib/style/skins/sanparks/sanparks-tpc.css | ||
---|---|---|
100 | 100 |
width: 150px; |
101 | 101 |
} |
102 | 102 |
|
103 |
.int-input { |
|
104 |
width: 60px; |
|
105 |
} |
|
106 |
|
|
103 | 107 |
.calendar-icon { |
104 | 108 |
vertical-align: middle; |
105 | 109 |
} |
... | ... | |
124 | 128 |
width: 100px; |
125 | 129 |
} |
126 | 130 |
|
131 |
.result-header-emphasis { |
|
132 |
font-size: 16px; |
|
133 |
} |
|
134 |
|
|
127 | 135 |
/********************************************************************** |
128 | 136 |
* tpc search result specific settings |
129 | 137 |
**********************************************************************/ |
lib/style/skins/sanparks/scheduleWorkflowRun.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-scheduled-jobs.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/scheduleWorkflowRunSection.jsp" /> |
|
47 |
|
|
48 |
<!-- Footer Content --> |
|
49 |
<jsp:include page="footer2.jsp" /> |
|
50 |
</body> |
|
51 |
</html> |
lib/style/skins/tpc-result/tpc-result.xml | ||
---|---|---|
4 | 4 |
<default-style>/style/common/ascii-treeview.xsl</default-style> |
5 | 5 |
|
6 | 6 |
<doctype publicid="-//NCEAS//resultset//EN"> |
7 |
<target publicid="-//W3C//HTML//EN">/style/common/tpc-resultset.xsl</target>
|
|
7 |
<target publicid="-//W3C//HTML//EN">/style/common/searchWorkflowResultset.xsl</target>
|
|
8 | 8 |
</doctype> |
9 | 9 |
|
10 | 10 |
</style-set> |
lib/style/skins/tpc-run-result/tpc-run-result.xml | ||
---|---|---|
4 | 4 |
<default-style>/style/common/ascii-treeview.xsl</default-style> |
5 | 5 |
|
6 | 6 |
<doctype publicid="-//NCEAS//resultset//EN"> |
7 |
<target publicid="-//W3C//HTML//EN">/style/common/tpc-run-resultset.xsl</target>
|
|
7 |
<target publicid="-//W3C//HTML//EN">/style/common/searchWorkflowRunResultset.xsl</target>
|
|
8 | 8 |
</doctype> |
9 | 9 |
|
10 | 10 |
</style-set> |
lib/style/common/searchWorkflowSection.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%>/ajax-utils.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflow.js"></script> |
|
38 |
</head> |
|
39 |
<body onload="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
40 |
<div class=content-section> |
|
41 |
<div class="content-subsection search-section" id="search-section"> |
|
42 |
<form name="tpcSearch" id="tpcSearch"> |
|
43 |
<input name="query" id="query" type="hidden" /> |
|
44 |
<input name="qformat" value="tpc-result" type="hidden" /> |
|
45 |
<!-- input name="qformat" value="xml" type="hidden" / --> |
|
46 |
<input name="action" value="squery" type="hidden" /> |
|
47 |
<div class="search-section-text">Search</div> |
|
48 |
<div class="form-base-row" id="form-base-row"> |
|
49 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
50 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
51 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
52 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
53 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
54 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
55 |
<option values="date-created" onclick="addSearchDropdownBefore('tpcSearch','Date Created','date-created','be|af','form-base-row')">Date Created</option> |
|
56 |
<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
57 |
</select> |
|
58 |
|
|
59 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
60 |
</div> |
|
61 |
</form> |
|
62 |
</div> |
|
63 |
|
|
64 |
<div class="content-subsection" id="workflow-search-results"> |
|
65 |
</div> |
|
66 |
|
|
67 |
</div> |
|
68 |
</body> |
|
69 |
</html> |
|
0 | 70 |
lib/style/common/scheduleWorkflowRun.js | ||
---|---|---|
1 |
/* |
|
2 |
*/ |
|
3 |
|
|
4 |
function getWorkflowRunSection(url, workflowId, divId) { |
|
5 |
var requestUrl = url + '?action=getScheduledWorkflow&workflowid=' + workflowId + '&qformat=' + 'sanparks'; |
|
6 |
var submitResults = submitUrlIntoDiv(requestUrl, divId); |
|
7 |
} |
|
8 |
|
|
9 |
function showSchedulePage(workflowId, schedulePage, qformat) { |
|
10 |
url = document.URL + '/../' + workflowRunPage + '?workflowid=' + workflowId + '?qformat=' + qformat; |
|
11 |
//alert('new url: ' + url); |
|
12 |
window.location = url; |
|
13 |
} |
|
14 |
|
|
15 |
function scheduleWorkflowRun(url, workflowId, startTime, interval, karId) { |
|
16 |
requestUrl = |
|
17 |
url + '?action=scheduleWorkflow&starttime=' + startTime |
|
18 |
+ '&interval=' + interval + '&jobparam_karId=' + karId; |
|
19 |
//alert('new url: ' + url); |
|
20 |
window.location = url; |
|
21 |
} |
|
22 |
|
|
23 |
|
|
0 | 24 |
lib/style/common/scheduleWorkflow.js | ||
---|---|---|
1 |
/* |
|
2 |
*/ |
|
3 |
|
|
4 |
function getWorkflowRunSection(url, workflowId, workflowName, divId) { |
|
5 |
var requestUrl = url + '?action=getScheduledWorkflow&workflowid=' + workflowId + '&qformat=sanparks&workflowname=' + workflowName; |
|
6 |
var submitResults = submitUrlIntoDiv(requestUrl, divId); |
|
7 |
} |
|
8 |
|
|
9 |
function showSchedulePage(workflowId, schedulePage, qformat) { |
|
10 |
url = document.URL + '/../' + workflowRunPage + '?workflowid=' + workflowId + '?qformat=' + qformat; |
|
11 |
//alert('new url: ' + url); |
|
12 |
window.location = url; |
|
13 |
} |
|
14 |
|
|
15 |
function scheduleWorkflowRun(url, workflowId, startTime, interval, karId) { |
|
16 |
requestUrl = |
|
17 |
url + '?action=scheduleWorkflow&starttime=' + startTime |
|
18 |
+ '&interval=' + interval + '&jobparam_karId=' + karId; |
|
19 |
//alert('new url: ' + url); |
|
20 |
window.location = url; |
|
21 |
} |
|
22 |
|
|
23 |
|
|
0 | 24 |
lib/style/common/searchWorkflowRunSection.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%>/ajax-utils.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflowRun.js"></script> |
|
38 |
|
|
39 |
</head> |
|
40 |
<body onload="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
41 |
<div class=content-section> |
|
42 |
<div class="content-subsection search-section" id="search-section"> |
|
43 |
<form name="tpcSearch" id="tpcSearch"> |
|
44 |
<input name="query" id="query" type="hidden" /> |
|
45 |
<input name="qformat" value="tpc-run-result" type="hidden" /> |
|
46 |
<input name="action" value="squery" type="hidden" /> |
|
47 |
<!-- input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow-run" type="hidden"> |
|
48 |
<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden" --> |
|
49 |
<% |
|
50 |
if (request.getParameter("workflowid") != null) { |
|
51 |
%> <input name="workflow-lsid" id="sf-workflow-id1000" value="<%= request.getParameter("workflowid") %>" type="hidden"> |
|
52 |
<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="equals" type="hidden"> |
|
53 |
<% |
|
54 |
} |
|
55 |
%> |
|
56 |
<div class="search-section-text">Search</div> |
|
57 |
<div class="form-base-row" id="form-base-row"> |
|
58 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
59 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
60 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
61 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
62 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
63 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
64 |
<option values="date-executed" onclick="addSearchDropdownBefore('tpcSearch','Date Executed','date-executed','be|af','form-base-row')">Date Executed</option> |
|
65 |
<option values="workflow-run-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow Run ID</option> |
|
66 |
<option values="workflow-lsid" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
67 |
<option values="status" onclick="addSearchDropdownBefore('tpcSearch','Status','Status','is|in','form-base-row')">Status</option> |
|
68 |
</select> |
|
69 |
|
|
70 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
71 |
</div> |
|
72 |
</form> |
|
73 |
</div> |
|
74 |
|
|
75 |
<div class="content-subsection" id="workflow-search-results"> |
|
76 |
</div> |
|
77 |
|
|
78 |
</div> |
|
79 |
</body> |
|
80 |
</html> |
|
0 | 81 |
lib/style/common/searchWorkflow.js | ||
---|---|---|
14 | 14 |
queryString += "<pathquery version='1.2'>"; |
15 | 15 |
queryString += "<returndoctype>entity</returndoctype>"; |
16 | 16 |
queryString += "<returndoctype>-//UC Berkeley//DTD MoML 1//EN</returndoctype>"; |
17 |
queryString += "<returnfield>entity/@name</returnfield>"; |
|
17 |
queryString += "<returnfield>/entity/@name</returnfield>";
|
|
18 | 18 |
queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'author\']/configure</returnfield>"; |
19 | 19 |
queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'description\']/configure</returnfield>"; |
20 | 20 |
queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'createDate\']/configure</returnfield>"; |
... | ... | |
23 | 23 |
queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'runDate\']/configure</returnfield>"; |
24 | 24 |
queryString += "<returnfield>property[@name=\'KeplerDocumentation\']/property[@name=\'pdfReport\']/configure</returnfield>"; |
25 | 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>"; |
|
26 |
queryString += "<returnfield>/entity/property[@name=\'karLSID\']/@value</returnfield>";
|
|
27 |
queryString += "<returnfield>/entity/property[@name=\'entityId\']/@value</returnfield>";
|
|
28 | 28 |
|
29 | 29 |
queryString += "<querygroup operator='INTERSECT'>"; |
30 | 30 |
|
... | ... | |
90 | 90 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
91 | 91 |
pathExpr += "<pathexpr>property/property/configure</pathexpr>"; |
92 | 92 |
pathExpr += "</queryterm>"; |
93 |
} else if (sfElement.name == 'workflow-lsid') { |
|
94 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
|
95 |
pathExpr += "<value>workflowLSID</value>"; |
|
96 |
pathExpr += "<pathexpr>property/property/@name</pathexpr>"; |
|
97 |
pathExpr += "</queryterm>"; |
|
98 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
|
99 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
|
100 |
pathExpr += "<pathexpr>property/property/@value</pathexpr>"; |
|
101 |
pathExpr += "</queryterm>"; |
|
93 | 102 |
} else if (sfElement.name == 'workflow-run-id') { |
94 | 103 |
pathExpr += "<queryterm casesensitive='false' searchmode='" + searchMode + "'>"; |
95 | 104 |
pathExpr += "<value>" + sfElement.value + "</value>"; |
lib/style/common/scheduledWorkflowResultset.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="row row-header" > |
|
41 |
<div class="col col1">Run Name</div> |
|
42 |
<div class="col col2">Status</div> |
|
43 |
<div class="col col3">Start Time</div> |
|
44 |
<div class="col col4">Interval</div> |
|
45 |
<div class="col col5">Action</div> |
|
46 |
</div> |
|
47 |
<!-- div>jobs: <xsl:number value="count(scheduledWorkflowResultset/scheduledJob)" /> </div --> |
|
48 |
<!-- This tests to see if there are returned documents, |
|
49 |
if there are not then don't show the query results --> |
|
50 |
<xsl:if test="count(scheduledWorkflowResultset/scheduledJob) > 0"> |
|
51 |
<xsl:for-each select="scheduledWorkflowResultset/scheduledJob"> |
|
52 |
<div> |
|
53 |
<xsl:attribute name="class"> |
|
54 |
<xsl:choose> |
|
55 |
<xsl:when test="position() mod 2 = 1">row row-odd</xsl:when> |
|
56 |
<xsl:when test="position() mod 2 = 0">row row-even</xsl:when> |
|
57 |
</xsl:choose> |
|
58 |
</xsl:attribute> |
|
59 |
|
|
60 |
<div class="col col1"> |
|
61 |
<xsl:value-of select='./name' /> |
|
62 |
</div> |
|
63 |
<div class="col col2"> |
|
64 |
<xsl:value-of select='./status' /> |
|
65 |
</div> |
|
66 |
<div class="col col3"> |
|
67 |
<xsl:value-of select='./startTime' /> |
|
68 |
</div> |
|
69 |
<div class="col col4"> |
|
70 |
<xsl:value-of select='./intervalValue' /><xsl:value-of select='./intervalUnit' /> |
|
71 |
</div> |
|
72 |
<div class="col col5"> |
|
73 |
<a> |
|
74 |
<xsl:choose> |
|
75 |
<xsl:when test="./status = 'scheduled'"> |
|
76 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
77 |
<xsl:attribute name="href"><xsl:value-of select='$contextURL' />/metacat?action=unscheduleWorkflow&workflowjobid=<xsl:value-of select='./name' />&workflowname=<xsl:value-of select='./jobParam[@name='workflowname']/value' />&qformat=<xsl:value-of select='$qformat' />&forwardto=scheduleWorkflowRun.jsp</xsl:attribute> |
|
78 |
Unschedule |
|
79 |
</xsl:when> |
|
80 |
<xsl:otherwise> |
|
81 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
82 |
<xsl:attribute name="href"><xsl:value-of select='$contextURL' />/metacat?action=rescheduleWorkflow&workflowjobid=<xsl:value-of select='./name' />&workflowname=<xsl:value-of select='./jobParam[@name='workflowname']/value' />&qformat=<xsl:value-of select='$qformat' />&forwardto=scheduleWorkflowRun.jsp</xsl:attribute> |
|
83 |
Reschedule |
|
84 |
</xsl:otherwise> |
|
85 |
</xsl:choose> |
|
86 |
</a> |
|
87 |
</div> |
|
88 |
</div> |
|
89 |
</xsl:for-each> |
|
90 |
</xsl:if> |
|
91 |
</xsl:template> |
|
92 |
|
|
93 |
</xsl:stylesheet> |
|
0 | 94 |
lib/style/common/searchWorkflowResultset.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) > 0"> |
|
58 |
<xsl:for-each select="resultset/document"> |
|
59 |
<xsl:if test="./docname = 'entity'"> |
|
60 |
<div> |
|
61 |
<xsl:attribute name="class"> |
|
62 |
<xsl:choose> |
|
63 |
<xsl:when test="position() mod 2 = 1">row row-odd</xsl:when> |
|
64 |
<xsl:when test="position() mod 2 = 0">row row-even</xsl:when> |
|
65 |
</xsl:choose> |
|
66 |
</xsl:attribute> |
|
67 |
|
|
68 |
<div class="col col1"> |
|
69 |
<xsl:value-of select='./param[@name="/entity/@name"]' /> |
|
70 |
</div> |
|
71 |
<div class="col col2"> |
|
72 |
<xsl:value-of select='./param[@name="property[@name='KeplerDocumentation']/property[@name='author']/configure"]' /> |
|
73 |
</div> |
|
74 |
<div class="col col3"> |
|
75 |
<xsl:value-of select='./updatedate' /> |
|
76 |
</div> |
|
77 |
<div class="col col4"> |
|
78 |
<a> |
|
79 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
80 |
<xsl:attribute name="href">./searchWorkflowRun.jsp?workflowid=<xsl:value-of select='./param[@name="/entity/property[@name='entityId']/@value"]' /></xsl:attribute> |
|
81 |
View Runs |
|
82 |
</a> |
|
83 |
<span> | </span> |
|
84 |
<a> |
|
85 |
<xsl:attribute name="class">underlined</xsl:attribute> |
|
86 |
<xsl:attribute name="href">./scheduleWorkflowRun.jsp?workflowid=<xsl:value-of select='./param[@name="/entity/property[@name='entityId']/@value"]' />&karid=<xsl:value-of select='./param[@name="/entity/property[@name='karLSID']/@value"]' />&workflowname=<xsl:value-of select='./param[@name="/entity/@name"]' /></xsl:attribute> |
|
87 |
Schedule |
|
88 |
</a> |
|
89 |
</div> |
|
90 |
</div> |
|
91 |
</xsl:if> |
|
92 |
</xsl:for-each> |
|
93 |
</xsl:if> |
|
94 |
</xsl:template> |
|
95 |
|
|
96 |
</xsl:stylesheet> |
|
0 | 97 |
lib/style/common/scheduleWorkflowRunSection.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
2 |
<% |
|
3 |
/* |
|
4 |
* '$RCSfile$' |
Also available in: Unified diff
Updates primarily for final workflow and run xml metadata design