Revision 3596
Added by walbridge over 16 years ago
nceas-login.xsl | ||
---|---|---|
42 | 42 |
src="@style-skins-path@/nceas/nceas.js" /> |
43 | 43 |
<script language="Javascript" type="text/JavaScript" |
44 | 44 |
src="@style-common-path@/branding.js" /> |
45 |
<script language="JavaScript"> |
|
46 |
<![CDATA[ |
|
47 |
function search(){ |
|
48 |
location.href = "@cgi-prefix@/register-dataset.cgi?cfg=nceas"; |
|
49 |
}]]> |
|
50 |
</script> |
|
45 | 51 |
</head> |
52 |
<body onload="timerId=setTimeout('search()',2000)"> |
|
53 |
<div id="main_wrapper"> |
|
46 | 54 |
|
47 |
<script language="JavaScript"> |
|
48 |
insertTemplateOpening(); |
|
49 |
insertSearchBox(); |
|
50 |
</script> |
|
55 |
<div id="header"> |
|
56 |
<p>Skip to <a href="#navigation">navigation</a>, <a href="#main_content">main |
|
57 |
content</a>, <a href="#secondary_content">secondary content</a> or to <a |
|
58 |
href="#search">search</a>.</p> <h1><span></span><a href="/">NCEAS</a></h1> |
|
59 |
</div> |
|
60 |
<div id="navigation"> |
|
61 |
<p></p> |
|
62 |
<ul id="main_nav"> |
|
63 |
<ul class="menu"> |
|
64 |
<li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li> |
|
65 |
<li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li> |
|
66 |
<li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li> |
|
67 |
</ul> |
|
68 |
</ul> |
|
69 |
</div> <!-- navigation --> |
|
70 |
|
|
71 |
<div id="content_wrapper"> |
|
72 |
<h1>NCEAS Data Repository</h1> |
|
73 |
|
|
51 | 74 |
<xsl:if test="count(login) > 0"> |
52 |
<xsl:choose> |
|
53 |
<xsl:when test="count(login/isModerator) > 0"> |
|
54 |
<script language="JavaScript"> |
|
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><queryterm searchmode=\"not-contains\" casesensitive=\"false\"><value>Revision Requested</value><pathexpr>additionalMetadata/moderatorComment</pathexpr></queryterm></querygroup></pathquery>"); |
|
61 |
searchForm.appendChild(queryInput); |
|
62 |
searchForm.submit(); |
|
63 |
}]]> |
|
64 |
</script> |
|
65 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',20)"> |
|
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="nceas"/> |
|
70 |
<input type="hidden" name="enableediting" value="true"/> |
|
71 |
<input type="hidden" name="message" value="You are now logged in as moderator."/> |
|
72 |
</form> |
|
73 |
</body> |
|
74 |
</xsl:when> |
|
75 |
<xsl:otherwise> |
|
76 |
<script language="JavaScript"> |
|
77 |
<![CDATA[ |
|
78 |
function search(){ |
|
79 |
location.href = "@cgi-prefix@/register-dataset.cgi?cfg=nceas"; |
|
80 |
}]]> |
|
81 |
</script> |
|
82 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',2000)"> |
|
83 |
<p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the data repoistory form.</p> |
|
84 |
</body> |
|
85 |
|
|
86 |
</xsl:otherwise> |
|
87 |
</xsl:choose> |
|
75 |
<p class="text_plain"> |
|
76 |
Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the data repoistory form. |
|
77 |
</p> |
|
88 | 78 |
</xsl:if> |
89 | 79 |
<xsl:if test="count(unauth_login) > 0"> |
90 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
|
91 |
<p class="text_plain"><xsl:value-of select="unauth_login/message" /></p>
|
|
92 |
</body>
|
|
80 |
<p class="text_plain">
|
|
81 |
<xsl:value-of select="unauth_login/message" />
|
|
82 |
</p>
|
|
93 | 83 |
</xsl:if> |
94 |
<p class="text_plain">Return to the <a href="@systemidserver@@style-skins-path@/nceas/" target="_top">Registry home</a>. |
|
95 |
</p> |
|
96 |
<script language="JavaScript"> |
|
97 |
insertTemplateClosing(); |
|
98 |
</script> |
|
84 |
<p class="text_plain"> |
|
85 |
Return to the <a href="@systemidserver@@style-skins-path@/nceas/">Registry home</a>. |
|
86 |
</p> |
|
87 |
</div> |
|
88 |
</div> |
|
89 |
</body> |
|
99 | 90 |
</html> |
100 | 91 |
</xsl:template> |
101 | 92 |
|
Also available in: Unified diff
Updated the NCEAS skin for various fixes: Rewrote the login XSLT to work correctly. Added a login status button to the page headers. Modified the header image to disable the global site search used on the NCEAS homepage. Removed former IFRAME cruft.