Revision 2686
Added by sgarg about 19 years ago
lib/style/skins/esa/header.htm | ||
---|---|---|
1 |
<html> |
|
2 |
<head> |
|
3 |
<title>header.gif</title> |
|
4 |
<meta http-equiv="Content-Type" content="text/html;"> |
|
5 |
<!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Thu Oct 20 11:29:07 GMT-0700 (Pacific Standard Time) 2005--> |
|
6 |
<script language="JavaScript"> |
|
7 |
<!-- |
|
8 |
function MM_findObj(n, d) { //v4.01 |
|
9 |
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { |
|
10 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} |
|
11 |
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; |
|
12 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); |
|
13 |
if(!x && d.getElementById) x=d.getElementById(n); return x; |
|
14 |
} |
|
15 |
function MM_swapImage() { //v3.0 |
|
16 |
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) |
|
17 |
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} |
|
18 |
} |
|
19 |
function MM_swapImgRestore() { //v3.0 |
|
20 |
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; |
|
21 |
} |
|
22 |
|
|
23 |
function MM_preloadImages() { //v3.0 |
|
24 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); |
|
25 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) |
|
26 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} |
|
27 |
} |
|
28 |
|
|
29 |
//--> |
|
30 |
</script> |
|
31 |
</head> |
|
32 |
<body bgcolor="#ffffff" onLoad="MM_preloadImages('ESAHeaderSlices/ESAHome2_f2.gif','ESAHeaderSlices/RollOvers/ESAHomeR.gif','ESAHeaderSlices/RollOvers/ESARegistryR.gif','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif','ESAHeaderSlices/RollOvers/ESASearchR.gif','ESAHeaderSlices/RollOvers/ESALoginR.gif');"> |
|
33 |
<table border="0" cellpadding="0" cellspacing="0" width="703"> |
|
34 |
<!-- fwtable fwsrc="ESAHeader.png" fwbase="header.gif" fwstyle="Dreamweaver" fwdocid = "1305060446" fwnested="0" --> |
|
35 |
<tr> |
|
36 |
<td><img src="ESAHeaderSlices/spacer.gif" width="19" height="1" border="0" alt=""></td> |
|
37 |
<td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td> |
|
38 |
<td><img src="ESAHeaderSlices/spacer.gif" width="78" height="1" border="0" alt=""></td> |
|
39 |
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td> |
|
40 |
<td><img src="ESAHeaderSlices/spacer.gif" width="154" height="1" border="0" alt=""></td> |
|
41 |
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td> |
|
42 |
<td><img src="ESAHeaderSlices/spacer.gif" width="57" height="1" border="0" alt=""></td> |
|
43 |
<td><img src="ESAHeaderSlices/spacer.gif" width="48" height="1" border="0" alt=""></td> |
|
44 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td> |
|
45 |
</tr> |
|
46 |
|
|
47 |
<tr> |
|
48 |
<td colspan="8"><img name="header_r1_c1" src="ESAHeaderSlices/header_r1_c1.gif" width="703" height="36" border="0" alt=""></td> |
|
49 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td> |
|
50 |
</tr> |
|
51 |
<tr> |
|
52 |
<td rowspan="4"><img name="header_r2_c1" src="ESAHeaderSlices/header_r2_c1.gif" width="19" height="91" border="0" alt=""></td> |
|
53 |
<td><a href="http://www.esa.org/"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" alt="ESA Home"></a></td> |
|
54 |
<td rowspan="2" colspan="6"><img name="header_r2_c3" src="ESAHeaderSlices/header_r2_c3.gif" width="541" height="67" border="0" alt=""></td> |
|
55 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td> |
|
56 |
</tr> |
|
57 |
<tr> |
|
58 |
<td rowspan="3"><img name="header_r3_c2" src="ESAHeaderSlices/header_r3_c2.gif" width="143" height="37" border="0" alt=""></td> |
|
59 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="13" border="0" alt=""></td> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<td><a href="http://www.esa.org/" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESAHome2','','ESAHeaderSlices/ESAHome2_f2.gif','ESAHome2','','ESAHeaderSlices/RollOvers/ESAHomeR.gif',1);"><img name="ESAHome2" src="ESAHeaderSlices/ESAHome2.gif" width="78" height="17" border="0" alt="ESA Home"></a></td> |
|
63 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegistry2','','ESAHeaderSlices/RollOvers/ESARegistryR.gif',1);"><img name="ESARegistry2" src="ESAHeaderSlices/ESARegistry2.gif" width="102" height="17" border="0" alt="Registry Home"></a></td> |
|
64 |
<td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegisterNewData','','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif',1);"><img name="ESARegisterNewData" src="ESAHeaderSlices/ESARegisterNewData.gif" width="154" height="17" border="0" alt="Register a New Data Set"></a></td> |
|
65 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESASearch','','ESAHeaderSlices/RollOvers/ESASearchR.gif',1);"><img name="ESASearch" src="ESAHeaderSlices/ESASearch.gif" width="102" height="17" border="0" alt="Search for Data"></a></td> |
|
66 |
<td><a href="#" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESALogin','','ESAHeaderSlices/RollOvers/ESALoginR.gif',1);"><img name="ESALogin" src="ESAHeaderSlices/ESALogin.gif" width="57" height="17" border="0" alt="Login"></a></td> |
|
67 |
<td rowspan="2"><img name="header_r4_c8" src="ESAHeaderSlices/header_r4_c8.gif" width="48" height="24" border="0" alt=""></td> |
|
68 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="17" border="0" alt=""></td> |
|
69 |
</tr> |
|
70 |
<tr> |
|
71 |
<td colspan="5"><img name="header_r5_c3" src="ESAHeaderSlices/header_r5_c3.gif" width="493" height="7" border="0" alt=""></td> |
|
72 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="7" border="0" alt=""></td> |
|
73 |
</tr> |
|
74 |
</table> |
|
75 |
</body> |
|
76 |
</html> |
|
77 | 0 |
lib/style/skins/esa/headerOld.html | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2003 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
'$Author$' |
|
6 |
'$Date$' |
|
7 |
'$Revision$' |
|
8 |
|
|
9 |
This program is free software; you can redistribute it and/or modify |
|
10 |
it under the terms of the GNU General Public License as published by |
|
11 |
the Free Software Foundation; either version 2 of the License, or |
|
12 |
(at your option) any later version. |
|
13 |
|
|
14 |
This program is distributed in the hope that it will be useful, |
|
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17 |
GNU General Public License for more details. |
|
18 |
|
|
19 |
You should have received a copy of the GNU General Public License |
|
20 |
along with this program; if not, write to the Free Software |
|
21 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
--> |
|
23 |
<!--____________________________max_width____________________________________--> |
|
24 |
|
|
25 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
26 |
<html> |
|
27 |
<head> |
|
28 |
<title>ESA Data Registry</title> |
|
29 |
<meta http-equiv="Content-Type" content="text/html;"> |
|
30 |
<link rel="stylesheet" type="text/css" |
|
31 |
href="@systemidserver@@style-skins-path@/esa/esa.css"></link> |
|
32 |
<script language="JavaScript"> |
|
33 |
<!-- |
|
34 |
function MM_findObj(n, d) { //v4.01 |
|
35 |
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { |
|
36 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} |
|
37 |
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; |
|
38 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); |
|
39 |
if(!x && d.getElementById) x=d.getElementById(n); return x; |
|
40 |
} |
|
41 |
function MM_swapImage() { //v3.0 |
|
42 |
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) |
|
43 |
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} |
|
44 |
} |
|
45 |
function MM_swapImgRestore() { //v3.0 |
|
46 |
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; |
|
47 |
} |
|
48 |
|
|
49 |
function MM_preloadImages() { //v3.0 |
|
50 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); |
|
51 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) |
|
52 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} |
|
53 |
} |
|
54 |
|
|
55 |
//--> |
|
56 |
</script> |
|
57 |
</head> |
|
58 |
<body bgcolor="#ffffff" onLoad="MM_preloadImages('ESAHeaderSlices/RollOvers/ESAHome.gif','ESAHeaderSlices/RollOvers/ESARegister.gif','ESAHeaderSlices/RollOvers/RegNew.gif','ESAHeaderSlices/RollOvers/Search.gif')"> |
|
59 |
<table border="0" cellpadding="0" cellspacing="0" width="724"> |
|
60 |
<tr> |
|
61 |
<td><img src="ESAHeaderSlices/spacer.gif" width="20" height="1" border="0" alt=""></td> |
|
62 |
<td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td> |
|
63 |
<td><img src="ESAHeaderSlices/spacer.gif" width="41" height="1" border="0" alt=""></td> |
|
64 |
<td><img src="ESAHeaderSlices/spacer.gif" width="77" height="1" border="0" alt=""></td> |
|
65 |
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td> |
|
66 |
<td><img src="ESAHeaderSlices/spacer.gif" width="152" height="1" border="0" alt=""></td> |
|
67 |
<td><img src="ESAHeaderSlices/spacer.gif" width="101" height="1" border="0" alt=""></td> |
|
68 |
<td><img src="ESAHeaderSlices/spacer.gif" width="88" height="1" border="0" alt=""></td> |
|
69 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td> |
|
70 |
</tr> |
|
71 |
|
|
72 |
<tr> |
|
73 |
<td colspan="8"><img name="ESAHeader3_r1_c1" src="ESAHeaderSlices/ESAHeader3_r1_c1.gif" width="724" height="36" border="0" alt=""></td> |
|
74 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td> |
|
75 |
</tr> |
|
76 |
<tr> |
|
77 |
<td rowspan="3"><img name="ESAHeader3_r2_c1" src="ESAHeaderSlices/ESAHeader3_r2_c1.gif" width="20" height="85" border="0" alt=""></td> |
|
78 |
<td><a href="http://www.esa.org/" target="_top"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" alt="ESA Home"></a></td> |
|
79 |
<td rowspan="2" colspan="6"><img name="ESAHeader3_r2_c3" src="ESAHeaderSlices/ESAHeader3_r2_c3.gif" width="561" height="69" border="0" alt=""></td> |
|
80 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td> |
|
81 |
</tr> |
|
82 |
<tr> |
|
83 |
<td rowspan="2"><img name="ESAHeader3_r3_c2" src="ESAHeaderSlices/ESAHeader3_r3_c2.gif" width="143" height="31" border="0" alt=""></td> |
|
84 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="15" border="0" alt=""></td> |
|
85 |
</tr> |
|
86 |
<tr> |
|
87 |
<td><img name="ESAHeader3_r4_c3" src="ESAHeaderSlices/ESAHeader3_r4_c3.gif" width="41" height="16" border="0" alt=""></td> |
|
88 |
<td><a href="http://www.esa.org/" onMouseOut="MM_swapImgRestore();" target="_top" onMouseOver="MM_swapImage('ESAHome','','ESAHeaderSlices/RollOvers/ESAHome.gif',1)"><img name="ESAHome" src="ESAHeaderSlices/ESAHome.gif" width="77" height="16" border="0" alt="ESA Home"></a></td> |
|
89 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegister','','ESAHeaderSlices/RollOvers/ESARegister.gif',1)"><img name="ESARegister" src="ESAHeaderSlices/ESARegister.gif" width="102" height="16" border="0" alt="ESA Register"></a></td> |
|
90 |
<td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('RegNew','','ESAHeaderSlices/RollOvers/RegNew.gif',1)"><img name="RegNew" src="ESAHeaderSlices/RegNew.gif" width="152" height="16" border="0" alt="Register a New Data Set"></a></td> |
|
91 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Search','','ESAHeaderSlices/RollOvers/Search.gif',1)"><img name="Search" src="ESAHeaderSlices/Search.gif" width="101" height="16" border="0" alt="Search for Data"></a></td> |
|
92 |
<td><img name="ESAHeader3_r4_c8" src="ESAHeaderSlices/ESAHeader3_r4_c8.gif" width="88" height="16" border="0" alt=""></td> |
|
93 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="16" border="0" alt=""></td> |
|
94 |
</tr> |
|
95 |
</table> |
|
96 |
</body> |
|
97 |
</html> |
|
98 | 0 |
lib/style/skins/esa/esa.css | ||
---|---|---|
346 | 346 |
display:none; |
347 | 347 |
} |
348 | 348 |
|
349 |
.show { |
|
350 |
display:empty; |
|
351 |
} |
|
352 |
|
|
349 | 353 |
.bordertop { |
350 | 354 |
border-top: solid black 1px; |
351 | 355 |
} |
lib/style/skins/esa/esa-login.xsl | ||
---|---|---|
32 | 32 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
33 | 33 |
|
34 | 34 |
<xsl:output method="html"/> |
35 |
<!-- <xsl:param name="sessid">default</xsl:param> |
|
36 |
--> <xsl:param name="qformat">default</xsl:param> |
|
37 |
<xsl:param name="enableediting">false</xsl:param> |
|
35 |
<xsl:param name="qformat">default</xsl:param> |
|
38 | 36 |
<xsl:template match="/"> |
39 | 37 |
<html> |
40 | 38 |
<head> |
... | ... | |
51 | 49 |
insertSearchBox(); |
52 | 50 |
</script> |
53 | 51 |
<xsl:if test="count(login) > 0"> |
52 |
<xsl:choose> |
|
53 |
<xsl:when test="count(login/isModerator) > 0"> |
|
54 | 54 |
<script language="JavaScript"> |
55 |
function search(){ |
|
56 |
window.location.href="/knb-pg/metacat?action=squery&qformat=esa&query=%3Cpathquery%20version=%221.2%22%3E%3Cquerytitle%3EModerator-Search%3C/querytitle%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.1%3C/returndoctype%3E%3Creturndoctype%3Eeml://ecoinformatics.org/eml-2.0.0%3C/returndoctype%3E%3Creturndoctype%3E-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN%3C/returndoctype%3E%3Creturndoctype%3E-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN%3C/returndoctype%3E%3Creturndoctype%3E-//NCEAS//resource//EN%3C/returndoctype%3E%3Creturndoctype%3E-//NCEAS//eml-dataset//EN%3C/returndoctype%3E%3Creturnfield%3Eoriginator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Eoriginator/individualName/givenName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/surName%3C/returnfield%3E%3Creturnfield%3Ecreator/individualName/givenName%3C/returnfield%3E%3Creturnfield%3Eoriginator/organizationName%3C/returnfield%3E%3Creturnfield%3Ecreator/organizationName%3C/returnfield%3E%3Creturnfield%3Edataset/title%3C/returnfield%3E%3Creturnfield%3Ekeyword%3C/returnfield%3E%3Cquerygroup%20operator=%22INTERSECT%22%3E%3Cqueryterm%20searchmode=%22not-contains%22%20casesensitive=%22false%22%3E%3Cvalue%3Epublic%3C/value%3E%3Cpathexpr%3Edataset/access/allow/principal%3C/pathexpr%3E%3C/queryterm%3E%3C/querygroup%3E%3C/pathquery%3E"; |
|
57 |
} |
|
55 |
<![CDATA[function search(){ |
|
56 |
var searchForm = document.getElementById("search-form"); |
|
57 |
var queryInput = document.createElement("input"); |
|
58 |
queryInput.setAttribute("type", "hidden"); |
|
59 |
queryInput.setAttribute("name", "query"); |
|
60 |
queryInput.setAttribute("value", "<pathquery version=\"1.2\"><querytitle>Moderator-Search</querytitle><returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype><returnfield>originator/individualName/surName</returnfield><returnfield>originator/individualName/givenName</returnfield><returnfield>creator/individualName/surName</returnfield><returnfield>creator/individualName/givenName</returnfield><returnfield>originator/organizationName</returnfield><returnfield>creator/organizationName</returnfield><returnfield>dataset/title</returnfield><returnfield>keyword</returnfield><querygroup operator=\"INTERSECT\"><queryterm searchmode=\"not-contains\" casesensitive=\"false\"><value>public</value><pathexpr>dataset/access/allow/principal</pathexpr></queryterm></querygroup></pathquery>"); |
|
61 |
searchForm.appendChild(queryInput); |
|
62 |
searchForm.submit(); |
|
63 |
}]]> |
|
58 | 64 |
</script> |
59 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',1000)"> |
|
60 |
<p class="text_plain"><xsl:value-of select="login/message" /></p> |
|
65 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',2000)"> |
|
66 |
<p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You are now logged in as moderator.</p> |
|
67 |
<form id="search-form" action="@servlet-path@" method="post"> |
|
68 |
<input type="hidden" name="action" value="squery"/> |
|
69 |
<input type="hidden" name="qformat" value="esa"/> |
|
70 |
<input type="hidden" name="enableediting" value="true"/> |
|
71 |
</form> |
|
61 | 72 |
</body> |
73 |
</xsl:when> |
|
74 |
<xsl:otherwise> |
|
75 |
<script language="JavaScript"> |
|
76 |
<![CDATA[ |
|
77 |
function search(){ |
|
78 |
location.href = "@style-skins-path@/esa"; |
|
79 |
}]]> |
|
80 |
</script> |
|
81 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',2000)"> |
|
82 |
<p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the homepage</p> |
|
83 |
</body> |
|
84 |
|
|
85 |
</xsl:otherwise> |
|
86 |
</xsl:choose> |
|
62 | 87 |
</xsl:if> |
63 | 88 |
<xsl:if test="count(unauth_login) > 0"> |
64 | 89 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
lib/style/skins/esa/esa-resultset.xsl | ||
---|---|---|
51 | 51 |
form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA["; |
52 | 52 |
form_ref.submit(); |
53 | 53 |
} |
54 |
|
|
55 | 54 |
]]> |
56 | 55 |
</script> |
57 | 56 |
</head> |
58 | 57 |
|
59 | 58 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
60 | 59 |
<script language="JavaScript"> |
60 |
<![CDATA[ |
|
61 | 61 |
insertTemplateOpening(); |
62 | 62 |
insertSearchBox(); |
63 |
]]> |
|
63 | 64 |
</script> |
64 | 65 |
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="0"> |
65 | 66 |
<tr> |
... | ... | |
177 | 178 |
</xsl:attribute> |
178 | 179 |
</input> |
179 | 180 |
<center> |
180 |
<input type="SUBMIT" value=" View " name="View">
|
|
181 |
<input type="SUBMIT" value=" Accept " name="Accept">
|
|
181 | 182 |
</input> |
182 | 183 |
</center> |
183 | 184 |
</form> |
184 |
<form action="@cgi-prefix@/register-dataset.cgi"
|
|
185 |
<form action="@servlet-path@"
|
|
185 | 186 |
method="POST"> |
186 |
<input type="hidden" name="stage" value="modify"/>
|
|
187 |
<input type="hidden" name="action" value="delete"/>
|
|
187 | 188 |
<input type="hidden" name="cfg" value="{$qformat}"/> |
188 | 189 |
<input type="hidden" name="sessionid" value="{$sessid}"/> |
189 | 190 |
<input type="hidden" name="docid"> |
... | ... | |
192 | 193 |
</xsl:attribute> |
193 | 194 |
</input> |
194 | 195 |
<center> |
195 |
<input type="SUBMIT" value=" Edit " name="Edit">
|
|
196 |
<input type="SUBMIT" value="Decline" name="Decline">
|
|
196 | 197 |
</input> |
197 | 198 |
</center> |
198 | 199 |
</form> |
... | ... | |
207 | 208 |
</xsl:attribute> |
208 | 209 |
</input> |
209 | 210 |
<center> |
210 |
<input type="SUBMIT" value="Delete" name="Delete">
|
|
211 |
<input type="SUBMIT" value=" Revise " name="Revise">
|
|
211 | 212 |
</input> |
212 | 213 |
</center> |
213 | 214 |
</form> |
lib/style/skins/esa/esa.cfg | ||
---|---|---|
12 | 12 |
responseTemplate = @responseForm@ |
13 | 13 |
entryFormTemplate = @entryForm@ |
14 | 14 |
guideTemplate = @guide@ |
15 |
loginFormTemplate = @loginForm@ |
|
15 | 16 |
confirmDataTemplate = @confirmData@ |
16 | 17 |
deleteDataTemplate = @deleteData@ |
17 | 18 |
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN |
... | ... | |
33 | 34 |
hasSpatial = 'true' |
34 | 35 |
hasKeyword = 'true' |
35 | 36 |
hasTemporal = 'true' |
37 |
contactEmailAddressRequired = 'true' |
|
38 |
publicReadable = 'false' |
|
39 |
# |
|
40 |
# Access will be given to the list of users mentioned below. |
|
41 |
# |
|
42 |
moderators = @moderators@ |
lib/style/skins/esa/index.html | ||
---|---|---|
162 | 162 |
<input type="hidden" name="literalLayout"> |
163 | 163 |
<input type="hidden" name="abstract/para" id="abstract"> |
164 | 164 |
<input name="qformat" value="esa" type="hidden"> |
165 |
<input name="enableediting" value="true" type="hidden"> |
|
166 | 165 |
<input name="returnfield" value="originator/individualName/surName" type="hidden"> |
167 | 166 |
<input name="returnfield" value="originator/individualName/givenName" type="hidden"> |
168 | 167 |
<input name="returnfield" value="creator/individualName/surName" type="hidden"> |
... | ... | |
206 | 205 |
</menu> |
207 | 206 |
<br><br> |
208 | 207 |
</li> |
209 |
<li><a href="@servlet-path@?action=query&operator=INTERSECT&anyfield=%25&qformat=esa&enableediting=true&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returnfield=dataset/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName">Browse data sets</a><br />
|
|
208 |
<li><a href="@servlet-path@?action=query&operator=INTERSECT&anyfield=%25&qformat=esa&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returnfield=dataset/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName">Browse data sets</a><br /> |
|
210 | 209 |
<menu> |
211 | 210 |
Browse all existing data sets by title. This operation can be slow as the |
212 | 211 |
number of entries in the registry grows. |
lib/style/skins/esa/header.html | ||
---|---|---|
22 | 22 |
--> |
23 | 23 |
<!--____________________________max_width____________________________________--> |
24 | 24 |
|
25 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
26 |
<html> |
|
27 |
<head> |
|
28 |
<title>ESA Data Registry</title> |
|
29 |
<meta http-equiv="Content-Type" content="text/html;"> |
|
30 | 25 |
<link rel="stylesheet" type="text/css" |
31 | 26 |
href="@systemidserver@@style-skins-path@/esa/esa.css"></link> |
32 | 27 |
<script language="JavaScript"> |
... | ... | |
52 | 47 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} |
53 | 48 |
} |
54 | 49 |
|
50 |
|
|
51 |
function loginStatus(){ |
|
52 |
var httpRequest=false; |
|
53 |
/*@cc_on @*/ |
|
54 |
/*@if (@_jscript_version >= 5) |
|
55 |
try { |
|
56 |
httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); |
|
57 |
} catch (e) { |
|
58 |
try { |
|
59 |
httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); |
|
60 |
} catch (E) { |
|
61 |
httpRequest = false; |
|
62 |
} |
|
63 |
} |
|
64 |
@end @*/ |
|
65 |
|
|
66 |
try{ |
|
67 |
if (!httpRequest && typeof XMLHttpRequest!='undefined') { |
|
68 |
httpRequest = new XMLHttpRequest(); |
|
69 |
} |
|
70 |
|
|
71 |
if(!httpRequest){ |
|
72 |
exit(0); |
|
73 |
} |
|
74 |
|
|
75 |
httpRequest.open("POST", "http://machination.msi.ucsb.edu/knb-pg/metacat?action=getloggedinuserinfo", true); |
|
76 |
httpRequest.setRequestHeader("Content-Type", "text/xml"); |
|
77 |
var stringToSend = "action=getloggedinuserinfo"; |
|
78 |
httpRequest.onreadystatechange=function() { |
|
79 |
if (httpRequest.readyState==4) { |
|
80 |
var response = httpRequest.responseText; |
|
81 |
var login_block = document.getElementById('login_block'); |
|
82 |
login_block.innerHTML=""; |
|
83 |
if(response.indexOf("public") > 0){ |
|
84 |
login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=loginform' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogin\",\"\",\"ESAHeaderSlices/RollOvers/ESALoginR.gif\",1);'><img name='ESALogin' src='ESAHeaderSlices/ESALogin.gif' width='57' height='17' border='0' alt='Login'></a>"; |
|
85 |
//var a = document.createElement('a'); |
|
86 |
//a.href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=loginform"; |
|
87 |
//var a_text = document.createTextNode('Login'); |
|
88 |
//a.appendChild(a_text); |
|
89 |
//a.setAttribute("target","_top"); |
|
90 |
//login_block.appendChild(a); |
|
91 |
} else { |
|
92 |
login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=logout' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogout\",\"\",\"ESAHeaderSlices/RollOvers/ESALogoutR.gif\",1);'><img name='ESALogout' src='ESAHeaderSlices/ESALogout.gif' width='57' height='17' border='0' alt='Login'></a>"; |
|
93 |
//var a = document.createElement('a'); |
|
94 |
//a.href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&stage=logout"; |
|
95 |
//var a_text = document.createTextNode('Logout'); |
|
96 |
//a.appendChild(a_text) |
|
97 |
//a.setAttribute("target","_top"); |
|
98 |
|
|
99 |
if(response.indexOf("isModerator") > 0){ |
|
100 |
document.getElementById("modLink").className="show"; |
|
101 |
} |
|
102 |
//login_block.appendChild(a); |
|
103 |
} |
|
104 |
} |
|
105 |
} |
|
106 |
httpRequest.send(stringToSend); |
|
107 |
} catch (e) { |
|
108 |
alert("caught an exception: " + e |
|
109 |
+ " \nresponse was: \n" + httpRequest.responseText); |
|
110 |
} |
|
111 |
} |
|
112 |
|
|
55 | 113 |
//--> |
56 | 114 |
</script> |
57 |
</head> |
|
58 |
<body bgcolor="#ffffff" onLoad="MM_preloadImages('ESAHeaderSlices/RollOvers/ESAHome.gif','ESAHeaderSlices/RollOvers/ESARegister.gif','ESAHeaderSlices/RollOvers/RegNew.gif','ESAHeaderSlices/RollOvers/Search.gif')"> |
|
59 |
<table border="0" cellpadding="0" cellspacing="0" width="724"> |
|
60 |
<tr> |
|
61 |
<td><img src="ESAHeaderSlices/spacer.gif" width="20" height="1" border="0" alt=""></td> |
|
115 |
<table border="0" cellpadding="0" cellspacing="0" width="703"> |
|
116 |
<td><img src="ESAHeaderSlices/spacer.gif" width="19" height="1" border="0" alt=""></td> |
|
62 | 117 |
<td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td> |
63 |
<td><img src="ESAHeaderSlices/spacer.gif" width="41" height="1" border="0" alt=""></td> |
|
64 |
<td><img src="ESAHeaderSlices/spacer.gif" width="77" height="1" border="0" alt=""></td> |
|
118 |
<td><img src="ESAHeaderSlices/spacer.gif" width="78" height="1" border="0" alt=""></td> |
|
65 | 119 |
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td> |
66 |
<td><img src="ESAHeaderSlices/spacer.gif" width="152" height="1" border="0" alt=""></td> |
|
67 |
<td><img src="ESAHeaderSlices/spacer.gif" width="101" height="1" border="0" alt=""></td> |
|
68 |
<td><img src="ESAHeaderSlices/spacer.gif" width="88" height="1" border="0" alt=""></td> |
|
120 |
<td><img src="ESAHeaderSlices/spacer.gif" width="154" height="1" border="0" alt=""></td> |
|
121 |
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td> |
|
122 |
<td><img src="ESAHeaderSlices/spacer.gif" width="57" height="1" border="0" alt=""></td> |
|
123 |
<td><img src="ESAHeaderSlices/spacer.gif" width="48" height="1" border="0" alt=""></td> |
|
69 | 124 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td> |
70 | 125 |
</tr> |
71 | 126 |
|
72 | 127 |
<tr> |
73 |
<td colspan="8"><img name="ESAHeader3_r1_c1" src="ESAHeaderSlices/ESAHeader3_r1_c1.gif" width="724" height="36" border="0" alt=""></td>
|
|
128 |
<td colspan="8"><img name="header_r1_c1" src="ESAHeaderSlices/header_r1_c1.gif" width="703" height="36" border="0" alt=""></td>
|
|
74 | 129 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td> |
75 | 130 |
</tr> |
76 | 131 |
<tr> |
77 |
<td rowspan="3"><img name="ESAHeader3_r2_c1" src="ESAHeaderSlices/ESAHeader3_r2_c1.gif" width="20" height="85" border="0" alt=""></td>
|
|
78 |
<td><a href="http://www.esa.org/" target="_top"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" alt="ESA Home"></a></td>
|
|
79 |
<td rowspan="2" colspan="6"><img name="ESAHeader3_r2_c3" src="ESAHeaderSlices/ESAHeader3_r2_c3.gif" width="561" height="69" border="0" alt=""></td>
|
|
132 |
<td rowspan="4"><img name="header_r2_c1" src="ESAHeaderSlices/header_r2_c1.gif" width="19" height="91" border="0" alt=""></td>
|
|
133 |
<td><a href="http://www.esa.org/"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" alt="ESA Home"></a></td> |
|
134 |
<td rowspan="2" colspan="6"><img name="header_r2_c3" src="ESAHeaderSlices/header_r2_c3.gif" width="541" height="67" border="0" alt=""></td>
|
|
80 | 135 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td> |
81 | 136 |
</tr> |
82 | 137 |
<tr> |
83 |
<td rowspan="2"><img name="ESAHeader3_r3_c2" src="ESAHeaderSlices/ESAHeader3_r3_c2.gif" width="143" height="31" border="0" alt=""></td>
|
|
84 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="15" border="0" alt=""></td>
|
|
138 |
<td rowspan="3"><img name="header_r3_c2" src="ESAHeaderSlices/header_r3_c2.gif" width="143" height="37" border="0" alt=""></td>
|
|
139 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="13" border="0" alt=""></td>
|
|
85 | 140 |
</tr> |
86 | 141 |
<tr> |
87 |
<td><img name="ESAHeader3_r4_c3" src="ESAHeaderSlices/ESAHeader3_r4_c3.gif" width="41" height="16" border="0" alt=""></td>
|
|
88 |
<td><a href="http://www.esa.org/" onMouseOut="MM_swapImgRestore();" target="_top" onMouseOver="MM_swapImage('ESAHome','','ESAHeaderSlices/RollOvers/ESAHome.gif',1)"><img name="ESAHome" src="ESAHeaderSlices/ESAHome.gif" width="77" height="16" border="0" alt="ESA Home"></a></td>
|
|
89 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegister','','ESAHeaderSlices/RollOvers/ESARegister.gif',1)"><img name="ESARegister" src="ESAHeaderSlices/ESARegister.gif" width="102" height="16" border="0" alt="ESA Register"></a></td>
|
|
90 |
<td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('RegNew','','ESAHeaderSlices/RollOvers/RegNew.gif',1)"><img name="RegNew" src="ESAHeaderSlices/RegNew.gif" width="152" height="16" border="0" alt="Register a New Data Set"></a></td>
|
|
91 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Search','','ESAHeaderSlices/RollOvers/Search.gif',1)"><img name="Search" src="ESAHeaderSlices/Search.gif" width="101" height="16" border="0" alt="Search for Data"></a></td>
|
|
92 |
<td><img name="ESAHeader3_r4_c8" src="ESAHeaderSlices/ESAHeader3_r4_c8.gif" width="88" height="16" border="0" alt=""></td>
|
|
93 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="16" border="0" alt=""></td>
|
|
142 |
<td><a href="http://www.esa.org/" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESAHome2','','ESAHeaderSlices/ESAHome2_f2.gif','ESAHome2','','ESAHeaderSlices/RollOvers/ESAHomeR.gif',1);"><img name="ESAHome2" src="ESAHeaderSlices/ESAHome2.gif" width="78" height="17" border="0" alt="ESA Home"></a></td>
|
|
143 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegistry2','','ESAHeaderSlices/RollOvers/ESARegistryR.gif',1);"><img name="ESARegistry2" src="ESAHeaderSlices/ESARegistry2.gif" width="102" height="17" border="0" alt="Registry Home"></a></td>
|
|
144 |
<td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegisterNewData','','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif',1);"><img name="ESARegisterNewData" src="ESAHeaderSlices/ESARegisterNewData.gif" width="154" height="17" border="0" alt="Register a New Data Set"></a></td>
|
|
145 |
<td><a href="@systemidserver@@style-skins-path@/esa/index.html#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESASearch','','ESAHeaderSlices/RollOvers/ESASearchR.gif',1);"><img name="ESASearch" src="ESAHeaderSlices/ESASearch.gif" width="102" height="17" border="0" alt="Search for Data"></a></td>
|
|
146 |
<td><div id="login_block"><a href="#" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESALogin','','ESAHeaderSlices/RollOvers/ESALoginR.gif',1);"><img name="ESALogin" src="ESAHeaderSlices/ESALogin.gif" width="57" height="17" border="0" alt="Login"></a></div></td>
|
|
147 |
<td rowspan="2"><img name="header_r4_c8" src="ESAHeaderSlices/header_r4_c8.gif" width="48" height="24" border="0" alt=""></td>
|
|
148 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="17" border="0" alt=""></td>
|
|
94 | 149 |
</tr> |
150 |
<tr> |
|
151 |
<td colspan="5"><img name="header_r5_c3" src="ESAHeaderSlices/header_r5_c3.gif" width="493" height="7" border="0" alt=""></td> |
|
152 |
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="7" border="0" alt=""></td> |
|
153 |
</tr> |
|
95 | 154 |
</table> |
96 |
</body> |
|
97 |
</html> |
|
155 |
|
|
156 |
<form id="modSearch" name="modSearch" action="@servlet-path@" method="post"> |
|
157 |
<input type="hidden" name="action" value="squery"/> |
|
158 |
<input type="hidden" name="qformat" value="esa"/> |
|
159 |
<input type="hidden" name="enableediting" value="true"/> |
|
160 |
<input type="hidden" name="query" value="<pathquery><querytitle>Moderator-Search</querytitle><returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype><returnfield>originator/individualName/surName</returnfield><returnfield>originator/individualName/givenName</returnfield><returnfield>creator/individualName/surName</returnfield><returnfield>creator/individualName/givenName</returnfield><returnfield>originator/organizationName</returnfield><returnfield>creator/organizationName</returnfield><returnfield>dataset/title</returnfield><returnfield>keyword</returnfield><querygroup operator='INTERSECT'><queryterm searchmode='not-contains' casesensitive='false'><value>public</value><pathexpr>dataset/access/allow/principal</pathexpr></queryterm></querygroup></pathquery>"/> |
|
161 |
<p><a id="modLink" class="hide" href='javascript:document.getElementById("modSearch").submit();' target="_top">View Undocumented Documents</a></p> |
|
162 |
</form> |
|
163 |
<script> |
|
164 |
MM_preloadImages('ESAHeaderSlices/ESAHome2_f2.gif','ESAHeaderSlices/RollOvers/ESAHomeR.gif','ESAHeaderSlices/RollOvers/ESARegistryR.gif','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif','ESAHeaderSlices/RollOvers/ESASearchR.gif','ESAHeaderSlices/RollOvers/ESALoginR.gif'); |
|
165 |
loginStatus(); |
|
166 |
</script> |
lib/style/skins/esa/searchform.html | ||
---|---|---|
5 | 5 |
<!--<input name="organizationName" value="Ecological Society of America" type="hidden">--> |
6 | 6 |
<input name="action" value="query" type="hidden"> |
7 | 7 |
<input name="qformat" value="esa" type="hidden"> |
8 |
<input name="enableediting" value="true" type="hidden"> |
|
9 | 8 |
<input name="operator" value="UNION" type="hidden"> |
10 | 9 |
<input name="returnfield" value="originator/individualName/surName" type="hidden"> |
11 | 10 |
<input name="returnfield" value="originator/individualName/givenName" type="hidden"> |
Also available in: Unified diff
New changes in the esa skin so that includes the moderator functionality and login/logout functionality