Project

General

Profile

« Previous | Next » 

Revision 4318

remove obsolete knp skin. this has been replaced by the sanparks skin.

View differences:

lib/style/skins/knp/searchform.jsp
1
<%@ page    language="java" %>
2
<%
3
/**
4
 * '$RCSfile$'
5
 * Copyright: 2008 Regents of the University of California and the
6
 *            National Center for Ecological Analysis and Synthesis
7
 *  '$Author$'
8
 *    '$Date$'
9
 * '$Revision$'
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

  
27
<%@ include file="../../common/common-settings.jsp"%>
28
<%@ include file="../../common/configure-check.jsp"%>
29

  
30
<form method="POST" action="<%=SERVLET_URL%>" target="_top">
31
Search for: 
32
  <input value="INTERSECT" name="operator" type="hidden">   
33
  <input size="14" name="anyfield" type="text" value="">
34
  <!-- <input name="organizationName" value="Kruger National Park" type="hidden"> -->
35
  <input name="action" value="query" type="hidden">
36
  <input name="qformat" value="knp" type="hidden">
37
  <input name="enableediting" value="false" type="hidden">
38
  <input name="operator" value="UNION" type="hidden">
39
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
40
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
41
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
42
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
43
  <input name="returnfield" value="originator/organizationName" type="hidden">
44
  <input name="returnfield" value="creator/organizationName" type="hidden">
45
  <input name="returnfield" value="dataset/title" type="hidden">
46
  <input name="returnfield" value="keyword" type="hidden">
47
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
48
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
49
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
50
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
51
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
52
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
53
  <input value="Start Search" type="submit">
54
</form>
55 0

  
lib/style/skins/knp/knp.cfg
1
#
2
# General configuration parameters
3
#
4
metacatUrl = http://@httpserver@@servlet-path@
5
username = uid=knpadmin,o=KNP,dc=ecoinformatics,dc=org
6
password = testme
7
ldapUrl = @ldapUrl@
8
defaultScope = knp
9
organization = Kruger National Park
10
orgabbrev = KNP
11
orgurl = http://www.sanparks.org/
12
responseTemplate = @responseForm@
13
entryFormTemplate = @entryForm@
14
guideTemplate = @guide@
15
confirmDataTemplate = @confirmData@
16
deleteDataTemplate = @deleteData@
17
spatialRequired = false
18
temporalRequired = false
19
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN
20
accesssysid = eml-access.dtd
21
datasetpubid = eml://ecoinformatics.org/eml-dataset-2.0.0
22
datasetsysid = eml-dataset.dtd
23
mailhost = somewhere.sanparks.org
24
sender = registry@sanparks.org
25
recipient = judithk@sanparks.org
26
adminname = Judith Kruger
27
debug = 0
28
#
29
# These are the sites and their coordinates. Coordinates are in
30
# degrees:minutes:seconds:direction format
31
# Make sure there is a lat/lon pair for every site
32
#
33
# example format ...
34
# lat [UK] Harwood forest[Sitka Spruce] = 55:12:46:N
35
# lon [UK] Harwood forest[Sitka Spruce] = 2:2:15:W
36 0

  
lib/style/skins/knp/knp.xml
1
<?xml version="1.0"?>
2
<style-set name="knp">
3
<!-- general login & search -->
4
  <default-style>/style/common/ascii-treeview.xsl</default-style>
5

  
6
  <doctype publicid="-//NCEAS//resultset//EN">
7
    <target publicid="-//W3C//HTML//EN">/style/common/resultset.xsl</target>
8
  </doctype>
9

  
10
  <doctype publicid="-//NCEAS//login//EN">
11
    <target publicid="-//W3C//HTML//EN">/style/skins/knp/knp-login.xsl</target>
12
  </doctype>
13
  <doctype publicid="-//NCEAS//unauth_login//EN">
14
    <target publicid="-//W3C//HTML//EN">/style/skins/knp/knp-login.xsl</target>
15
  </doctype>
16

  
17
<!--
18
    ARE THESE STILL NEEDED????????????
19

  
20
  <doctype publicid="-//NCEAS//eml-generic//EN">
21
    <target publicid="-//W3C//HTML//EN">/style/common/generic-morpho.xsl</target>
22
  </doctype>
23
-->
24

  
25

  
26
<!-- pre-beta6 modules -->
27
<!-- NOTE these settings are unchanged from the previous version - only the xsl 
28
     filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" -->
29
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.1">
30
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.1/eml.xsl</target>
31
  </doctype>
32
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.0">
33
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.1/eml.xsl</target>
34
  </doctype>
35
  <doctype publicid="-//NCEAS//eml-dataset//EN">
36
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
37
  </doctype>
38
  <doctype publicid="-//NCEAS//eml-dataset-2.0//EN">
39
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
40
  </doctype>
41
  <doctype publicid="-//NCEAS//eml-resource//EN">
42
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
43
  </doctype>
44
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN">
45
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
46
  </doctype>
47
<!-- beta6 modules -->
48
  <doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN">
49
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-access-2.0.0beta6.xsl</target>
50
  </doctype>
51
  <doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN">
52
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-attribute-2.0.0beta6.xsl</target>
53
  </doctype>
54
  <doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN">
55
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-constraint-2.0.0beta6.xsl</target>
56
  </doctype>
57
  <doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN">
58
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-coverage-2.0.0beta6.xsl</target>
59
  </doctype>
60
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN">
61
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-dataset-2.0.0beta6.xsl</target>
62
  </doctype>
63
  <doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN">
64
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-entity-2.0.0beta6.xsl</target>
65
  </doctype>
66
  <doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN">
67
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-literature-2.0.0beta6.xsl</target>
68
  </doctype>
69
  <doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN">
70
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-physical-2.0.0beta6.xsl</target>
71
  </doctype>
72
  <doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN">
73
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-project-2.0.0beta6.xsl</target>
74
  </doctype>
75
  <doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN">
76
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-protocol-2.0.0beta6.xsl</target>
77
  </doctype>
78
  <doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN">
79
    <target publicid="-//W3C//HTML//EN">/style/common/eml-2.0.0beta6/eml-software-2.0.0beta6.xsl</target>
80
  </doctype>
81

  
82
  <!-- NBII/FGDC styles -->
83
  <doctype publicid="metadata">
84
    <!--target publicid="-//W3C//HTML//EN">/style/common/fgdc/nbii-metacat.xsl</target-->
85
    <target publicid="-//W3C//HTML//EN">/style/common/fgdc/fgdc_1.xsl</target>
86
  </doctype>
87
</style-set>
88 0

  
lib/style/skins/knp/spatial/africa_frame_config.xml
1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2
<MapbuilderConfig version="0.2.1" id="referenceTemplate" xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ../../mapbuilder/lib/schemas/config.xsd">
3
  <!--
4
    Description: This configuration file determines what components from the
5
                 Mapbuilder library are to be included in a Main Mapbuilder web
6
                 page.
7
    Licence:     GPL as per: http://www.gnu.org/copyleft/gpl.html 
8

  
9
    $Id$
10
  -->
11
  <!--
12
    All static images should be relative to this URL.
13
    This dir is relative the dir of the main html file.
14
  -->
15
  <models>
16
    <Context id="mainMap">
17
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
18
      <widgets>
19
        <Loading id="loading"/>
20
        <Loading2 id="loading2">
21
            <mapContainerId>mainMapPane</mapContainerId>
22
        </Loading2>
23

  
24
        <MapPane id="mainMapWidget">
25
          <htmlTagId>mainMapPane</htmlTagId>
26
          <mapContainerId>mainMapContainer</mapContainerId>
27
        </MapPane>
28
        <AoiBoxWZ id="aoiBox2">
29
          <htmlTagId>mainMapPane</htmlTagId>
30
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
31
          <lineColor>#FF0000</lineColor>
32
          <lineWidth>1</lineWidth>
33
          <crossSize>15</crossSize>
34
          <mapContainerId>mainMapContainer</mapContainerId>
35
        </AoiBoxWZ>
36
        <!-- <CursorTrack id="cursorTrack">
37
          <mouseHandler>mainMap</mouseHandler>
38
        </CursorTrack> -->
39
        <Legend id="legend">
40
        </Legend>
41
        <MapScaleText id="mapScaleText">
42
        </MapScaleText>
43
      </widgets>
44
      <tools>
45
        <AoiMouseHandler id="mainAoi"/>
46
        <DragPanHandler id="mainDragPan">
47
          <enabled>false</enabled>
48
        </DragPanHandler>
49
        <MouseClickHandler id="mainMouseClick"/>
50
      </tools>
51
    </Context>
52
    
53
    <Context id="locator">
54
      <defaultModelUrl>africa_frame_model.xml</defaultModelUrl>
55
      <widgets>
56
        <MapPane id="locatorWidget">
57
          <htmlTagId>locatorMap</htmlTagId>
58
          <targetModel>mainMap</targetModel>
59
          <mapContainerId>locatorContainer</mapContainerId>
60
          <fixedWidth>180</fixedWidth>
61
        </MapPane>
62
        <AoiBoxWZ id="aoiBox2">
63
          <htmlTagId>locatorMap</htmlTagId>
64
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
65
          <lineColor>#FF0000</lineColor>
66
          <lineWidth>1</lineWidth>
67
          <crossSize>15</crossSize>
68
          <mapContainerId>locatorContainer</mapContainerId>
69
        </AoiBoxWZ>
70
      </widgets>
71
      <tools>
72
        <AoiMouseHandler id="locatorAoi"/>
73
        <ZoomToAoi id="locatorZoomToAoi">
74
          <targetModel>mainMap</targetModel>
75
        </ZoomToAoi>
76
      </tools>
77
    </Context>
78

  
79
    <Transaction id="transaction">
80
      <widgets>
81
        <TransactionResponse id="transactionResponse">
82
        </TransactionResponse>
83
      </widgets>
84
    </Transaction>
85
    <FeatureCollection id="featureCollection">
86
      <namespace>xmlns:gml='http://www.opengis.net/gml' xmlns:wfs='http://www.opengis.net/wfs' xmlns:topp='http://www.openplans.org/topp'</namespace>
87
      <widgets>
88
        <GmlRendererWZ id="testGmlRenderer">
89
          <htmlTagId>mainMapPane</htmlTagId>
90
          <targetModel>mainMap</targetModel>
91
          <mapContainerId>mainMapContainer</mapContainerId>
92
          <lineColor>#FF0000</lineColor>
93
          <lineWidth>1</lineWidth>
94
          <pointDiameter>10</pointDiameter>
95
        </GmlRendererWZ>
96
        <FeatureList id="featureList">
97
        </FeatureList>
98
      </widgets>
99
    </FeatureCollection>
100
  </models>
101
  <widgets>
102
    <ZoomIn id="zoomIn">
103
      <buttonBar>mainButtonBar</buttonBar>
104
      <targetModel>mainMap</targetModel>
105
      <mouseHandler>mainAoi</mouseHandler>
106
      <class>RadioButton</class>
107
      <selected>true</selected>
108
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
109
      <disabledSrc>/images/ZoomInDisable.png</disabledSrc>
110
      <tooltip xml:lang="en">click map or drag to zoom in</tooltip>
111
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour agrandir</tooltip-->
112
    </ZoomIn>
113
    <ZoomOut id="zoomOut">
114
      <buttonBar>mainButtonBar</buttonBar>
115
      <targetModel>mainMap</targetModel>
116
      <mouseHandler>mainAoi</mouseHandler>
117
      <class>RadioButton</class>
118
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
119
      <disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
120
      <tooltip xml:lang="en">click map to zoom out</tooltip>
121
      <!--tooltip xml:lang="fr">cliquer pour rée</tooltip-->
122
    </ZoomOut>
123
    <DragPan id="dragPan">
124
      <buttonBar>mainButtonBar</buttonBar>
125
      <targetModel>mainMap</targetModel>
126
      <mouseHandler>mainDragPan</mouseHandler>
127
      <class>RadioButton</class>
128
      <enabledSrc>/images/PanEnable.png</enabledSrc>
129
      <disabledSrc>/images/PanDisable.png</disabledSrc>
130
      <tooltip xml:lang="en">click and drag to pan</tooltip>
131
      <!--tooltip xml:lang="fr">cliquer et faire glisser la souris pour voir un autre parti de la carte</tooltip-->
132
    </DragPan>
133
    <Reset id="reset">
134
      <buttonBar>mainButtonBar</buttonBar>
135
      <targetModel>mainMap</targetModel>
136
      <class>Button</class>
137
      <disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
138
      <tooltip xml:lang="en">reset the map to full extent</tooltip>
139
      <!--tooltip xml:lang="fr">redonner la carte ses dimensions complèts</tooltip-->
140
    </Reset>
141

  
142
	<!--
143
    <EditPoint id="editPoint">
144
      <buttonBar>mainButtonBar</buttonBar>
145
      <mouseHandler>mainMouseClick</mouseHandler>
146
      <class>RadioButton</class>
147
      <enabledSrc>/images/EditPointEnable.png</enabledSrc>
148
      <disabledSrc>/images/EditPointDisable.png</disabledSrc>
149
      <tooltip xml:lang="en">click on map to create a point feature</tooltip>
150
      <tooltip xml:lang="fr">click on map to create a point feature</tooltip>
151
      <targetModel>featureCollection</targetModel>
152
      <transactionResponseModel>transaction</transactionResponseModel>
153
      <webServiceUrl>../../../../wfs</webServiceUrl>
154
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:the_geom/gml:Point/gml:coordinates</featureXpath>
155
      <featureXpath>/gml:featureMember/topp:metacat_testdata/topp:ID</featureXpath>
156
      <defaultModelUrl>template_metacat.xml</defaultModelUrl>
157
      <targetContext>mainMap</targetContext>
158
    </EditPoint>
159
    -->
160

  
161
    <!-- <GetFeatureInfo id="getFeatureInfo">
162
      <buttonBar>mainButtonBar</buttonBar>
163
       <targetModel>mainMap</targetModel>
164
      <context>mainMap</context>
165
       <mouseHandler>mainAoi</mouseHandler>
166
      <class>RadioButton</class>
167
    <enabledSrc>/images/QueryEnable.png</enabledSrc>
168
    <disabledSrc>/images/QueryDisable.png</disabledSrc>
169
	  <tooltip xml:lang="en">select single dataset</tooltip>
170
    </GetFeatureInfo> -->
171

  
172
  <!--SetAoi id="setAoi">
173
  <buttonBar>mainButtonBar</buttonBar>
174
  <targetModel>mainMap</targetModel>
175
  <mouseHandler>mainAoi</mouseHandler>
176
  <class>RadioButton</class>
177
  <enabledSrc>/images/SetAoiEnable.png</enabledSrc>
178
  <disabledSrc>/images/SetAoiDisable.png</disabledSrc>
179
  </SetAoi-->
180

  
181
  <AoiMetacatQuery id="aoiMetacatQuery">
182
      <buttonBar>mainButtonBar</buttonBar>
183
      <targetModel>mainMap</targetModel>
184
      <mouseHandler>mainAoi</mouseHandler>
185
      <class>RadioButton</class>
186
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
187
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
188
      <tooltip xml:lang="en">select multiple datasets</tooltip>
189
      <metacat>../../../../metacat</metacat>
190
      <skin>knp</skin>
191
      <pixel_tolerance>5</pixel_tolerance>
192
  </AoiMetacatQuery>
193
  
194
  </widgets>
195
  <skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir>
196
  <!-- Url of LOCAL redirection script, required to access external URLs -->
197
  <proxyUrl>../../proxy.jsp</proxyUrl>
198
  <!-- 
199
  <serializeUrl>../../../../spatial/mapbuilder/writeXml</serializeUrl>
200
   -->
201
</MapbuilderConfig>
202

  
203 0

  
lib/style/skins/knp/spatial/map.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$'
12
  *      '$Date$'
13
  *  '$Revision$'
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
#mapContainer {
30
    position: absolute;
31
    right: 0px;
32
    top: 0px;
33
}
34

  
35
#mapControl {
36
	height: 48px;
37
	width: 31px;
38
}
39

  
40
div#mapControlHide,
41
div#mapControlShow {
42
	width: 100%;
43
	height: 100%;
44
	vertical-align: center;
45
}
46

  
47
div#mapControl a {
48
	display: block;
49
	margin: 0; padding:0;
50
	width:100%;
51
	height:100%;
52
	overflow:hidden;
53
	text-decoration:none;
54
}
55

  
56

  
57
div#mapControlShow {
58
	background: transparent url(../images/show_map.gif) no-repeat bottom left;
59
}
60

  
61
div#mapControlHide {
62
	background: transparent url(../images/hide_map.gif) no-repeat bottom left;
63
}
64

  
65
div#mapControlShow a {
66
	background: transparent url(../show_map.gif) no-repeat top left;
67
	text-decoration:none;
68
}
69
div#mapControlHide a {
70
	background: transparent url(../hide_map.gif) no-repeat top left;
71
	text-decoration:none;
72
}
73

  
74
div#mapControlShow a:hover {
75
	background:none;
76
	text-decoration: none;
77
}
78

  
79
div#mapControlHide a:hover {
80
	background:none;
81
	text-decoration: none;
82
}
83

  
84 0

  
lib/style/skins/knp/spatial/html.css
1
h2 {
2
  color: red;
3
  background-color: silver;
4
}
5

  
6

  
7
INPUT.bareinput {
8
  border: 0px blue none;
9
  font: 8pt Verdana, geneva, arial, sans-serif;
10
  color: #000000;
11
  background-color: transparent;
12
}
13

  
14
#mainMapContainer {
15
  border: 1px solid olive;
16
  cursor: crosshair;
17
  text-align: left;
18
  background-color: white;
19
}
20

  
21
#legend td {
22
	/*
23
  font-size: 70%; 
24
  font-family: cursive;
25
  background-color: silver;
26
  */
27
  font: 11pt arial, sans-serif;
28
  color: #000;
29
}
30

  
31

  
32
img#query_topp\:metacat_testdata { display:none; }
33

  
34 0

  
lib/style/skins/knp/spatial/africa_frame_model.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
2
<ViewContext version="1.0.0" id="atlas_world"
3
xmlns="http://www.opengis.net/context"
4
xmlns:xlink="http://www.w3.org/1999/xlink"
5
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
7
  <General>
8
    <Window width="250" height="417" />
9
    <!-- <BoundingBox SRS="EPSG:4326" minx="30.5912" miny="-25.535" maxx="32.3037" maxy="-22.325" /> -->
10
    <BoundingBox SRS="EPSG:4326" minx="30" miny="-26.5" maxx="33" maxy="-21.5"/>
11
    <Title>Krueger National Park</Title>
12
    <KeywordList>
13
      <Keyword>metacat</Keyword>
14
      <Keyword>EML</Keyword>
15
    </KeywordList>
16
    <Abstract>Low resolution.</Abstract>
17
  </General>
18
  <LayerList>
19
    
20
    <Layer queryable="0" hidden="1">
21
    <Server service="wms" version="1.1.0" title="wms">
22
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"  xlink:type="simple" xlink:href="http://wms.jpl.nasa.gov/wms.cgi?"/>
23
    </Server>
24
    <Name>global_mosaic</Name> 
25
    <!-- <Name>BMNG</Name> -->
26
    <Title>satellite imagery</Title>
27
    <SRS>EPSG:4326</SRS>
28
    <FormatList>
29
    <Format current="1">image/jpeg</Format>
30
    </FormatList>
31
    </Layer>
32
   
33
    <Layer queryable="0" hidden="0">
34
      <Server service="OGC:WMS" version="1.1.1"
35
      title="kruger boundary">
36
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
37
      </Server>
38
      <Name>knp:SOILS_VENTER</Name>
39
      <Title>Kruger soils</Title>
40
      <SRS>EPSG:4326</SRS>
41
      <FormatList>
42
        <Format current="1">image/png</Format>
43
      </FormatList>
44
    </Layer>
45

  
46
    <Layer queryable="0" hidden="0">
47
      <Server service="OGC:WMS" version="1.1.1"
48
      title="kruger boundary">
49
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
50
      </Server>
51
      <Name>knp:INFRA_ROADSPUBLIC_VIEW</Name>
52
      <Title>Kruger Park roads</Title>
53
      <SRS>EPSG:4326</SRS>
54
      <FormatList>
55
        <Format current="1">image/png</Format>
56
      </FormatList>
57
    </Layer>
58
	
59
    <Layer queryable="0" hidden="0">
60
      <Server service="OGC:WMS" version="1.1.1"
61
      title="kruger boundary">
62
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
63
      </Server>
64
      <Name>knp:BNDRY_BUSINESSUNITS</Name>
65
      <Title>Kruger Park business units</Title>
66
      <SRS>EPSG:4326</SRS>
67
      <FormatList>
68
        <Format current="1">image/png</Format>
69
      </FormatList>
70
    </Layer>
71
   
72
    
73
    <Layer queryable="0" hidden="0">
74
      <Server service="OGC:WMS" version="1.1.1"
75
      title="kruger boundary">
76
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
77
      </Server>
78
      <Name>knp:BNDRY_KRUGERNP</Name>
79
      <Title>Kruger Park boundaries</Title>
80
      <SRS>EPSG:4326</SRS>
81
      <FormatList>
82
        <Format current="1">image/png</Format>
83
      </FormatList>
84
    </Layer>
85

  
86
    <Layer queryable="0" hidden="0">
87
      <Server service="OGC:WMS" version="1.1.1"
88
      title="DatasetBounds">
89
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
90
      </Server>
91
      <Name>metacat:data_bounds</Name>
92
      <Title>Dataset Bounds</Title>
93
      <SRS>EPSG:4326</SRS>
94
      <FormatList>
95
        <Format current="1">image/gif</Format>
96
      </FormatList>
97
    </Layer>
98

  
99

  
100
    <Layer queryable="0" hidden="0">
101
      <Server service="OGC:WMS" version="1.1.1"
102
      title="DatasetPoints">
103
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
104
      </Server>
105
      <Name>metacat:data_points</Name>
106
      <Title>Dataset Points</Title>
107
      <SRS>EPSG:4326</SRS>
108
      <FormatList>
109
        <Format current="1">image/gif</Format>
110
      </FormatList>
111
    </Layer>
112

  
113
    <!-- <Layer queryable="1" hidden="0">
114
      <Server service="OGC:WMS" version="1.1.1"
115
      title="Datasets">
116
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
117
      </Server>
118
      <Name>metacat:metacat_testdata</Name>
119
      <Title>Datasets</Title>
120
      <SRS>EPSG:4326</SRS>
121
      <FormatList>
122
        <Format current="1">image/png</Format>
123
      </FormatList>
124
    </Layer> -->
125
    
126
  </LayerList>
127
</ViewContext>
128 0

  
lib/style/skins/knp/spatial/pma.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2

  
3

  
4
<html>
5
<head>
6
<title>Metacat Spatial Option Demo</title>
7

  
8
<link rel="stylesheet" href="/style.css" type="text/css"/>
9
<link rel="stylesheet" href="./html.css" type="text/css"/>
10

  
11
<link href="../knp.css" type="text/css" rel="stylesheet"/>
12
<script src="../knp.js" type="text/JavaScript" language="Javascript"></script>
13

  
14
<link href="./map.css" type="text/css" rel="stylesheet"/>
15

  
16
<script src="../../../common/prototype.js" type="text/JavaScript" language="Javascript"></script>
17
<script src="../../../common/effects.js" type="text/JavaScript" language="Javascript"></script>
18

  
19
<script language="JavaScript">
20
          function submitform(action,form_ref) {
21
            form_ref.action.value=action;
22
            form_ref.sessionid.value="";
23
            form_ref.qformat.value="knp";
24
            form_ref.submit();
25
          }
26
</script>
27

  
28
<script type="text/javascript">
29
  var mbConfigUrl="africa_frame_config.xml";
30
</script>
31
<script type="text/javascript" src="../../../../spatial/mapbuilder/lib/Mapbuilder.js"></script>
32

  
33

  
34
<script language="JavaScript">
35
function show_map() {
36
	Element.show('mapControlHide')
37
	Element.hide('mapControlShow')
38

  
39
	// reset the map position in the iframe
40
	$("mapContainer").setAttribute("style", "right:-212px;");
41

  
42
	// expand the iframe
43
	var frm = top.getMapFrame();
44
	frm.setAttribute("style", "width:295px;right:0;");
45

  
46
	var element = $('mapContainer')
47
	new Effect.Move(element, { x: -212, y: 0, duration: 0.2})
48

  
49
	//setTimeout('$("mapContainer").setAttribute("style", "position:absolute;left:0;")', 300);
50

  
51
	//alert('moved');
52
	//do_move_anim(-260);
53
}
54

  
55
/*
56
 * Don't animate.  Just shrink the outer frame and make left:0.
57
 */
58
function hide_map() {
59
	Element.show('mapControlShow')
60
	Element.hide('mapControlHide')
61
	var element = $('mapContainer')
62
	//new Effect.Move(element, { x: 260, y: 0, duration: 0.1})
63
	$("mapContainer").setAttribute("style", "left:0px;");
64

  
65

  
66

  
67
	//alert('moved');
68
	//setTimeout('getElementsByClassName(top.document, "iframe", "iframeMap")[0].setAttribute("style", "width:35px;right:0;")', 200);
69

  
70
	// shrink the iframe
71
	var frm = top.getMapFrame();
72
	frm.setAttribute("style", "width:35px;right:-3px;");
73

  
74

  
75
	//alert('closed');
76
	//alert('now');
77
	//setTimeout('$("mapContainer").setAttribute("style", "left:0;")', 400);
78
	//$("mapContainer").setAttribute("style", "right:-212px;");
79
	//alert($("mapContainer").getAttribute("style"));
80
	//alert('adjusted');
81

  
82
	//do_move_anim(260);
83
}
84

  
85

  
86
//
87
// animate the drawer
88
//
89
function do_move_anim(xdelta) {
90

  
91
	var element = $('mapContainer')
92
	var old_right = Element.getStyle(element, 'right')
93
	//alert("right:" + old_right);
94
	old_right = old_right.substring(0,old_right.indexOf("px"));
95
	var new_right = old_right + xdelta;
96
	new_right = new_right + "px";
97
	new_right = "0px";
98
	var new_left;
99

  
100
	if (xdelta > 0) {
101
		// hide
102
		new_left = "0px";
103
		new_right = "0px";
104
	} else {
105
		// show
106
		new_left = "0px";
107
		new_right = "0px";
108
	}
109

  
110
	var newStyle = {
111
		left: new_left,
112
		right: new_right};
113
	Element.setStyle(element, newStyle);
114
		
115

  
116
	//alert(xdelta + ": " + Element.getStyle(element, 'left') + "=l R=" + Element.getStyle(element, 'right'));
117
/*
118
*/
119
	//new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3})
120

  
121
	/*
122
	new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3, 
123
		afterFinishInternal: function(effect) { with(Element) {
124
			undoPositioned(effect.element); setStyle(effect.element, newStyle);	}}})
125
	new Effect.Move(element, { x: xdelta, y: 0, duration: 0.3, 
126
		afterFinishInternal: function(effect) { with(Element) {
127
			setStyle(effect.element, newStyle);	}}})
128
			*/
129

  
130
	//Element.setStyle(element, newStyle);
131

  
132

  
133

  
134
	//alert(Element.getStyle(element, 'left') + "=l R=" + Element.getStyle(element, 'right'));
135
}
136

  
137
function getElementsByClassName(oElm, strTagName, strClassName){
138
    var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
139
    var arrReturnElements = new Array();
140
    strClassName = strClassName.replace(/\-/g, "\\-");
141
    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
142
    var oElement;
143
    for(var i=0; i<arrElements.length; i++){
144
        oElement = arrElements[i];      
145
        if(oRegExp.test(oElement.className)){
146
            arrReturnElements.push(oElement);
147
        }   
148
    }
149
    return (arrReturnElements)
150
}
151

  
152

  
153

  
154
</script>
155
</head>
156
<!--
157
 <body onload="document.location='/wms/GetCapabilities'">
158
 -->
159
<body onload="mbDoLoad()" style="background: #7BB865;">
160

  
161
<div id="mapContainer">
162

  
163
<table border="0" cellpadding="0" cellspacing="0">
164
	<tr>
165
    <td style="border-width:0;">
166
		<div id="mapControl">
167
			<div id="mapControlShow" style="display:none"><a href="#" onclick="show_map();return false;">&nbsp;</a></div>
168
			<div id="mapControlHide"><a href="#" onclick="hide_map();return false;">&nbsp;</a></div>
169
		</div>
170
    </td>
171
    <td valign="top">
172
		<table border="0" style="border: 1px solid #525d76;">
173
			<tr>
174
                        <!-- <td colspan="2" id="mainMapPane" style="background-color: white;" /> -->
175
                        <td colspan="2">
176
                          <div id="mainMapPane" style="background-color:white;" />
177
                          <div id="loading">
178
                           <p> Loading Map
179
                            <img src="../../../../spatial/mapbuilder/lib/skin/default/images/Loading.gif"/>
180
                           </p>
181
                         </div>
182
                        </td>
183

  
184
			</tr>
185
			<tr align="left">
186
				<td>
187

  
188
				<table border="0">
189
				  <tr>
190
					<!--<td align="center" id="mapScaleText"/>
191
							<td colspan="1"></td>
192
					<td align="center" id="cursorTrack" />-->
193
				  </tr>
194
						<tr> <td id="locatorMap" style="display:none"/> </tr>
195
						<tr> <td id="mainButtonBar" />  </tr>
196
						<tr> <td id="legend" valign="top"/> </tr> 
197
						<tr> <td colspan="3" id="featureList" /> </tr>
198
				</table>
199

  
200
				</td>
201
			</tr>
202
      
203
		</table>
204
		</td>
205
	</tr>
206
</table>
207
</div>
208

  
209
<div id="debug"></div>
210

  
211
</body>
212
</html>
213 0

  
lib/style/skins/knp/SaeonUpload.jspx
1
<?xml version="1.0" encoding="UTF-8"?>
2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
3
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
4
    <jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientViewHelper"/>
5
    <jsp:directive.page import="edu.ucsb.nceas.metacat.clientview.ClientView"/>
6
    
7
    <jsp:declaration>
8
        private ClientViewHelper            clientViewHelper;
9
    </jsp:declaration>
10
    
11
    <html xmlns="http://www.w3.org/1999/xhtml">
12
        <head>
13
            <script type="text/javascript">
14
                function allowUploadSubmit(formObj) {
15
                    var     result = true;
16

  
17
                    if (isEmpty(formObj.elements["metaFileName"])) {
18
                        result = false;
19
                        alert("Metadata file name is required");
20
                    }
21
                    return(result);
22
                }
23
                
24
                function isEmpty(aTextField) {
25
                    var value = trim(aTextField.value);
26
                    var result = ((value.length == 0) || (value == null));
27
                    return(result);
28
                }
29

  
30
		function trim(stringToTrim) {
31
			return(stringToTrim.replace(/^\s+|\s+$/g,""));
32
		}
33
            </script>
34
            
35
            <jsp:scriptlet>
36
                clientViewHelper = ClientViewHelper.clientViewHelperInstance(request);
37
            </jsp:scriptlet>
38
        </head>    
39
        <body>
40
            <jsp:useBean id="clientViewBean" scope="session" class="edu.ucsb.nceas.metacat.clientview.ClientView"/>
41
            <jsp:setProperty name="clientViewBean" property="*"/>
42
            <p>Data Package Upload</p>
43
            <p>
44
                <jsp:scriptlet>
45
                    clientViewHelper.clientRequest(request, response);
46
                    if (clientViewHelper.isLoggedIn()) {
47
                </jsp:scriptlet>
48
                <form name="uploadForm" method="post" action="SaeonUpload.jspx" enctype="multipart/form-data" onsubmit="return allowUploadSubmit(this)">
49
                    <input name="returnfield" type="hidden" value="distinfo/stdorder/digform/digtopt/onlinopt/computer/networka/networkr"/>
50
                    <input name="pathExpr" type="hidden" value="/metadata/distinfo/resdesc"/>
51
                    
52
                    <!-- Set the pathValue to the username (the scope) -->
53
                    <jsp:element name="input">
54
                        <jsp:attribute name="name">pathValue</jsp:attribute>
55
                        <jsp:attribute name="type">hidden</jsp:attribute>
56
                        <jsp:attribute name="value"><jsp:getProperty name="clientViewBean" property="username"/></jsp:attribute>
57
                    </jsp:element>
58
                    
59
                    <table bgcolor="WhiteSmoke">
60
                        <tr>
61
                            <td colspan="2">
62
                                <p class="regtext">Enter the Meta Data File (required) &#xa0;&#xa0;&#xa0;
63
                                    <input name="publicAccess" type="checkbox" checked=''/> Grant public read access
64
                                </p>
65
                            </td>
66
                        </tr>
67
                        <tr>
68
                            <td>
69
                                <input name="metaFileName" accept="xml" type="file" size="60" value="" />
70
                            </td>
71
                        </tr>
72
                        <!-- Data fields -->
73
                        <tr>
74
                            <td colspan="2">
75
                                <p class="regtext">Enter Data File 1 (optional)</p>
76
                            </td>
77
                        </tr>
78
                        <tr>
79
                            <td colspan="2">
80
                                <input name="dataFileName" type="file" size="60" />
81
                            </td>
82
                        </tr>
83
                        <tr>
84
                            <td colspan="2">
85
                                <p class="regtext">Enter Data File 2 (optional)</p>
86
                            </td>
87
                        </tr>
88
                        <tr>
89
                            <td colspan="2">
90
                                <input name="dataFileName" type="file" size="60" />
91
                            </td>
92
                        </tr>
93
                        <tr>
94
                            <td colspan="2">
95
                                <p class="regtext">Enter Data File 3 (optional)</p>
96
                            </td>
97
                        </tr>
98
                        <tr>
99
                            <td colspan="2">
100
                                <input name="dataFileName" type="file" size="60" />
101
                            </td>
102
                        </tr>
103
                        <tr>
104
                            <td colspan="2">
105
                                <p class="regtext">Enter Data File 4 (optional)</p>
106
                            </td>
107
                        </tr>
108
                        <tr>
109
                            <td colspan="2">
110
                                <input name="dataFileName" type="file" size="60" />
111
                            </td>
112
                        </tr>
113
                        <tr>
114
                            <td colspan="2">
115
                                <p class="regtext">Enter Data File 5 (optional)</p>
116
                            </td>
117
                        </tr>
118
                        <tr>
119
                            <td colspan="2">
120
                                <input name="dataFileName" type="file" size="60" />
121
                            </td>
122
                        </tr>
123
                        <tr>
124
                            <td align="left">
125
                                <span class="regtext"><jsp:expression>clientViewBean.getMessage(ClientView.UPLOAD_MESSAGE)</jsp:expression></span>
126
                            </td>
127
                            <td align="right">
128
                                <input name="action" value="Upload" type="submit" class="button_login"/>
129
                            </td>
130
                        </tr>
131
                    </table>
132
                </form>
133
                
134
                <jsp:scriptlet>
135
                    } else {
136
                </jsp:scriptlet>
137
                <span class="regtext">
138
                    You must be logged into your user account before uploading a data set.
139
                </span>
140
                <jsp:scriptlet>
141
                    }
142
                </jsp:scriptlet>
143
                <p class="regtext">
144
                    <form action="SaeonLogin.jspx">
145
                        <button name="action" type="submit" class="button_login">
146
                            <img alt="back" src="images/left_arrow.gif" align="middle"/>Back
147
                        </button>
148
                    </form>
149
                </p>
150
            </p>
151
        </body>
152
    </html>
153
</jsp:root>
154 0

  
lib/style/skins/knp/footer.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2

  
3
<html>
4
    <head>
5
        <title></title>
6
        <link rel="stylesheet" type="text/css" href="knp.css"/>
7
    </head>
8
    <body class="footerContent">
9
        This project is a cooperative effort of 
10
        <a href="http://www.sanparks.org/">Kruger National Park (KNP)</a> and the 
11
        <a href="http://www.nceas.ucsb.edu">National Center for Ecological Analysis and Synthesis (NCEAS)</a>.
12
        The Data Repository is based on software developed by the 
13
        <a href="http://knb.ecoinformatics.org">Knowledge Network for Biocomplexity (KNB)</a>,
14
        and houses metadata that are compliant with 
15
        <a href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata Language (EML)</a>.
16
        Other sites contributing to the KNB repository include:
17
        <ul>
18
            <li>
19
                <a href="http://knb.ecoinformatics.org/knb/obfs">Organization of Biological Field Stations registry</a>  
20
            </li>
21
            <li>
22
                <a href="http://knb.ecoinformatics.org/knb/style/skins/nrs">UC Natural Reserve System registry</a>  
23
            </li>
24
            <li>
25
                <a href="http://knb.ecoinformatics.org/knb/style/skins/nceas">NCEAS registry</a>  
26
            </li>
27
            <li>
28
                <a href="http://knb.ecoinformatics.org/knb/style/skins/specnet">SpecNet registry</a>  
29
            </li>
30
        </ul>
31
    </body>
32
</html>
33 0

  
lib/style/skins/knp/index.jsp
1
<%@ page    language="java" %>
2
<%
3
/*
4
 *  '$RCSfile$'
5
 *    Copyright: 2006 Regents of the University of California and the
6
 *               National Center for Ecological Analysis and Synthesis
7
 *
8
 *   '$Author$'
9
 *     '$Date$'
10
 * '$Revision$'
11
 *
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */
26
%>
27
<%@ include file="../../common/common-settings.jsp"%>
28
<%@ include file="../../common/configure-check.jsp"%>
29

  
30
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
31
<html>
32
    <head>
33
        <title>SANParks - Kruger National Park Data Repository</title>
34
        <link rel="stylesheet" href="<%=STYLE_SKINS_URL%>/default/default.css" type="text/css"/>
35
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/knp/knp.css"/>
36
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/knp/knp.js"></script>
37
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
38
    </head>
39
    <body>
40
        <script language="JavaScript">
41
            function getMapFrame() {
42
                return document.getElementById('mapFrame');
43
            }
44
            insertTemplateOpening("<%=CONTEXT_URL%>");
45
            insertLoginBox("<%=CONTEXT_URL%>");
46
            insertTemplateClosing("<%=CONTEXT_URL%>");
47
        </script>
48
    </body>
49
</html>
50 0

  
lib/style/skins/knp/knp-login.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Jivka Bojilova
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  * 
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file with information about login action
29
  * into an HTML format suitable for rendering with modern web browsers.
30
-->
31

  
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34
  <xsl:output method="html"/>
35
  <xsl:param name="qformat">knp</xsl:param>
36
  <xsl:template match="/">
37
   <html>
38
      <head>
39
        <link rel="stylesheet" type="text/css"
40
              href="{$contextURL}/style/skins/knp/knp.css" />
41
        <script language="Javascript" type="text/JavaScript"
42
                src="{$contextURL}/style/skins/knp/knp.js" />
43
        <script language="Javascript" type="text/JavaScript"
44
                src="{$contextURL}/style/common/branding.js" />
45
      </head>
46

  
47
      <script language="JavaScript">
48
          insertTemplateOpening("{$contextURL}");
49
          insertSearchBox("{$contextURL}");
50
      </script>
51
      <xsl:if test="count(login) &gt; 0">
52
 <script language="JavaScript">
53
           <![CDATA[
54
		function search(){
55
		location.href = "{$contextURL}/style/skins/knp";
56
        }]]>
57
        </script>
58
        <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',2000)">
59
          <p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the homepage</p>
60
        </body>
61

  
62
      </xsl:if>
63
      <xsl:if test="count(unauth_login) &gt; 0">
64
      	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
65
          <p class="text_plain"><xsl:value-of select="unauth_login/message" /></p>
66
    	</body>
67
      </xsl:if>
68
      <p class="text_plain">Return to the <a href="{$contextURL}/style/skins/knp" target="_top">homepage</a>.
69
      </p>
70
      <script language="JavaScript">
71
          insertTemplateClosing("{$contextURL}");
72
      </script>
73
    </html>
74
    </xsl:template>
75

  
76
</xsl:stylesheet>
77

  
78 0

  
lib/style/skins/knp/knp.js
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNP project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNP 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$'
12
  *      '$Date$'
13
  *  '$Revision$'
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
 * * * * * *  CONFIGURATION SETTINGS - EDIT THESE FOR YOUR ENVIRONMENT * * * * 
32
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
33

  
34
 
35
//  These settings allow you to include and display common content (eg a common 
36
//  header) on all your pages, in much the same way as a frameset allows you to 
37
//  do, but through the use of iframes and a table instead. You can include up 
38
//  to 4 external pages, each one within the header, footer, left or right areas
39
//
40
//  looks like this (if you're using a fixed width font to display these notes):
41
//    ___________________
42
//    |     header      |
43
//    |-----------------|
44
//    | |             | |
45
//    | |             | |
46
//    |L|   content   |R|
47
//    | |             | |
48
//    | |             | |
49
//    |-----------------|
50
//    |     footer      | 
51
//    -------------------
52
//
53
//  Each area may display another page on the local site, or a page on a 
54
//  different server, or may be set to display nothing (in which case an iframe 
55
//  will not be drawn, although the containing table cell will still need to be 
56
//  resized using the css style - see below) 
57
//
58
//  NOTES:
59
//
60
//  1) if you have any links in the included documents, the target attribute for 
61
//     these *MUST* be set to _top, otherwise the new document will be displayed 
62
//     inside the small iframe areas, instead of replacing the entire page!
63
//     - example: <a href="index.html" target="_top">HOME</a>
64
//   
65
//  2) you will need to set the correct iframe size, in order to accomodate 
66
//     each of these areas on the page. The default location for these size 
67
//     settings is in the default.css file - see the "IFRAME_XXXXXX_CLASS" 
68
//     variables (below) for the name of the style to edit
69
//
70
//  3) you will also need to set the correct table cell sizes and/or overall 
71
//     table size for similar reasons. The default location for these size 
72
//     settings is in the default.css file - see the "TEMPLATE_XXXXXX_CLASS" 
73
//     variables (below) for the name of the style to edit
74

  
75

  
76

  
77
////////////////////////////////////////////////////////////////////////////////
78
//  Edit these variables to define the content that will be loaded into the 
79
//  various iframes. Each may be a relative path to another page on the local 
80
//  site, or a full URL to a page on a remote server, or may be set to the empty 
81
//  string if no content is required at that position on the page (and in which  
82
//  case an iframe will not be drawn, although an empty table cell will still  
83
//  exist unless it is resized smaller) . 
84
//  ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
85
////////////////////////////////////////////////////////////////////////////////
86

  
87

  
88
//  Location of the header that will be displayed at the top of the page
89
var HEADER_URL = "style/skins/knp/header.jsp";
90

  
91
// Location of the search box that will be displayed above the  
92
//  results on the results page (optional)
93
var SEARCHBOX_URL = "";  //= "searchform.jsp"
94

  
95
//  Location of the header that will be displayed at the top of the page
96
var LEFTCOL_URL = "";
97
  
98
//  Location of the header that will be displayed at the top of the page
99
var RIGHTCOL_URL = "style/skins/knp/spatial/pma.html";
100
  
101
//  Location of the header that will be displayed at the top of the page
102
var FOOTER_URL = "style/skins/knp/footer.html";
103
  
104
var LOGINBOX_URL = "style/skins/knp/SaeonLogin.jspx";
105

  
106

  
107

  
108
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
109
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
110
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
111
/* * * * * * * * *  MAY CHANGE THE FOLLOWING, BUT SHOULDN'T NEED TO* * * * * */ 
112
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff