1 |
2536
|
sgarg
|
<!--
|
2 |
2258
|
jones
|
'$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 |
2536
|
sgarg
|
|
19 |
2258
|
jones
|
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 |
2536
|
sgarg
|
<link rel="stylesheet" type="text/css"
|
26 |
2258
|
jones
|
href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
|
27 |
2536
|
sgarg
|
<script language="JavaScript">
|
28 |
|
|
<!--
|
29 |
|
|
function MM_findObj(n, d) { //v4.01
|
30 |
|
|
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
31 |
|
|
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
32 |
|
|
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
33 |
|
|
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
34 |
|
|
if(!x && d.getElementById) x=d.getElementById(n); return x;
|
35 |
2527
|
sgarg
|
}
|
36 |
2536
|
sgarg
|
function MM_swapImage() { //v3.0
|
37 |
|
|
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
|
38 |
|
|
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
|
39 |
|
|
}
|
40 |
|
|
function MM_swapImgRestore() { //v3.0
|
41 |
|
|
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
|
42 |
|
|
}
|
43 |
2527
|
sgarg
|
|
44 |
2536
|
sgarg
|
function MM_preloadImages() { //v3.0
|
45 |
|
|
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
46 |
|
|
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
47 |
|
|
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
48 |
2527
|
sgarg
|
}
|
49 |
2536
|
sgarg
|
|
50 |
2686
|
sgarg
|
|
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 |
2757
|
sgarg
|
httpRequest.open("POST", "@servlet-path@?action=getloggedinuserinfo", true);
|
76 |
2686
|
sgarg
|
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 |
|
|
} else {
|
86 |
|
|
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>";
|
87 |
2807
|
sgarg
|
|
88 |
|
|
if(response.indexOf("isModerator") > 0){
|
89 |
|
|
document.getElementById("modLink").className="showLink";
|
90 |
|
|
} else {
|
91 |
|
|
document.getElementById("userLink").className="showLink";
|
92 |
|
|
}
|
93 |
2686
|
sgarg
|
}
|
94 |
|
|
}
|
95 |
|
|
}
|
96 |
|
|
httpRequest.send(stringToSend);
|
97 |
|
|
} catch (e) {
|
98 |
|
|
alert("caught an exception: " + e
|
99 |
|
|
+ " \nresponse was: \n" + httpRequest.responseText);
|
100 |
|
|
}
|
101 |
|
|
}
|
102 |
|
|
|
103 |
2536
|
sgarg
|
//-->
|
104 |
2527
|
sgarg
|
</script>
|
105 |
2797
|
tyburczy
|
<body style="margin-left:0px;">
|
106 |
2686
|
sgarg
|
<table border="0" cellpadding="0" cellspacing="0" width="703">
|
107 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="19" height="1" border="0" alt=""></td>
|
108 |
2536
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td>
|
109 |
2686
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="78" height="1" border="0" alt=""></td>
|
110 |
2536
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td>
|
111 |
2686
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="154" height="1" border="0" alt=""></td>
|
112 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td>
|
113 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="57" height="1" border="0" alt=""></td>
|
114 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="48" height="1" border="0" alt=""></td>
|
115 |
2536
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td>
|
116 |
|
|
</tr>
|
117 |
2258
|
jones
|
|
118 |
2536
|
sgarg
|
<tr>
|
119 |
2686
|
sgarg
|
<td colspan="8"><img name="header_r1_c1" src="ESAHeaderSlices/header_r1_c1.gif" width="703" height="36" border="0" alt=""></td>
|
120 |
2536
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td>
|
121 |
2258
|
jones
|
</tr>
|
122 |
2536
|
sgarg
|
<tr>
|
123 |
2686
|
sgarg
|
<td rowspan="4"><img name="header_r2_c1" src="ESAHeaderSlices/header_r2_c1.gif" width="19" height="91" border="0" alt=""></td>
|
124 |
2757
|
sgarg
|
<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>
|
125 |
2686
|
sgarg
|
<td rowspan="2" colspan="6"><img name="header_r2_c3" src="ESAHeaderSlices/header_r2_c3.gif" width="541" height="67" border="0" alt=""></td>
|
126 |
2536
|
sgarg
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td>
|
127 |
2258
|
jones
|
</tr>
|
128 |
2536
|
sgarg
|
<tr>
|
129 |
2686
|
sgarg
|
<td rowspan="3"><img name="header_r3_c2" src="ESAHeaderSlices/header_r3_c2.gif" width="143" height="37" border="0" alt=""></td>
|
130 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="13" border="0" alt=""></td>
|
131 |
2258
|
jones
|
</tr>
|
132 |
2536
|
sgarg
|
<tr>
|
133 |
2686
|
sgarg
|
<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>
|
134 |
2785
|
sgarg
|
<td><a href="http://data.esa.org" 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>
|
135 |
2686
|
sgarg
|
<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>
|
136 |
2785
|
sgarg
|
<td><a href="http://data.esa.org#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>
|
137 |
2686
|
sgarg
|
<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>
|
138 |
|
|
<td rowspan="2"><img name="header_r4_c8" src="ESAHeaderSlices/header_r4_c8.gif" width="48" height="24" border="0" alt=""></td>
|
139 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="17" border="0" alt=""></td>
|
140 |
2536
|
sgarg
|
</tr>
|
141 |
2686
|
sgarg
|
<tr>
|
142 |
|
|
<td colspan="5"><img name="header_r5_c3" src="ESAHeaderSlices/header_r5_c3.gif" width="493" height="7" border="0" alt=""></td>
|
143 |
|
|
<td><img src="ESAHeaderSlices/spacer.gif" width="1" height="7" border="0" alt=""></td>
|
144 |
|
|
</tr>
|
145 |
2258
|
jones
|
</table>
|
146 |
2757
|
sgarg
|
<!--- TODO if user then have the link to view all the documents which have been inserted already. If not user then view all documents which have not been moderated yet -->
|
147 |
2782
|
sgarg
|
<form id="modSearch" name="modSearch" action="@servlet-path@" method="post" target="_top">
|
148 |
2686
|
sgarg
|
<input type="hidden" name="action" value="squery"/>
|
149 |
|
|
<input type="hidden" name="qformat" value="esa"/>
|
150 |
|
|
<input type="hidden" name="enableediting" value="true"/>
|
151 |
2807
|
sgarg
|
<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><queryterm searchmode='not-contains' casesensitive='false'><value>Revision Requested</value><pathexpr>additionalMetadata/moderatorComment</pathexpr></queryterm></querygroup></pathquery>"/>
|
152 |
2782
|
sgarg
|
<p><a id="modLink" class="hide" onClick="this.parentNode.parentNode.submit();">View documents pending moderation</a></p>
|
153 |
2686
|
sgarg
|
</form>
|
154 |
2807
|
sgarg
|
<form id="userSearch" name="userSearch" action="@servlet-path@" method="post" target="_top">
|
155 |
|
|
<input type="hidden" name="action" value="squery"/>
|
156 |
|
|
<input type="hidden" name="qformat" value="esa"/>
|
157 |
|
|
<input type="hidden" name="enableediting" value="true"/>
|
158 |
|
|
<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>"/>
|
159 |
|
|
<p><a id="userLink" class="hide" onClick="this.parentNode.parentNode.submit();">View documents pending approval</a></p>
|
160 |
|
|
</form>
|
161 |
2686
|
sgarg
|
<script>
|
162 |
|
|
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');
|
163 |
|
|
loginStatus();
|
164 |
|
|
</script>
|
165 |
2807
|
sgarg
|
</body>
|