Revision 2655
Added by sgarg almost 19 years ago
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"/>
|
|
36 |
<xsl:param name="qformat">default</xsl:param> |
|
35 |
<!-- <xsl:param name="sessid">default</xsl:param>
|
|
36 |
--> <xsl:param name="qformat">default</xsl:param>
|
|
37 | 37 |
<xsl:param name="enableediting">false</xsl:param> |
38 | 38 |
<xsl:template match="/"> |
39 | 39 |
<html> |
... | ... | |
46 | 46 |
src="@style-common-path@/branding.js" /> |
47 | 47 |
</head> |
48 | 48 |
|
49 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
|
50 | 49 |
<script language="JavaScript"> |
51 | 50 |
insertTemplateOpening(); |
52 | 51 |
insertSearchBox(); |
53 | 52 |
</script> |
54 | 53 |
<xsl:if test="count(login) > 0"> |
55 |
<script language="JavaScript"> |
|
56 |
<![CDATA[ |
|
57 |
window.location="@servlet-path@?action=squery&qformat=esa&query=<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>" |
|
58 |
]]> |
|
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"; |
|
59 | 57 |
</script> |
58 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',1000)"> |
|
59 |
<p class="text_plain"><xsl:value-of select="login/message" /></p> |
|
60 |
</body> |
|
60 | 61 |
</xsl:if> |
61 | 62 |
<xsl:if test="count(unauth_login) > 0"> |
63 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> |
|
62 | 64 |
<p class="text_plain"><xsl:value-of select="unauth_login/message" /></p> |
65 |
</body> |
|
63 | 66 |
</xsl:if> |
64 | 67 |
<p class="text_plain">Return to the <a href="@systemidserver@@style-skins-path@/esa/" target="_top">Registry home</a>. |
65 | 68 |
</p> |
66 | 69 |
<script language="JavaScript"> |
67 | 70 |
insertTemplateClosing(); |
68 | 71 |
</script> |
69 |
</body> |
|
70 | 72 |
</html> |
71 | 73 |
</xsl:template> |
72 | 74 |
|
Also available in: Unified diff
Changes in login.xsl and moderator.html so that once the moderator logs in, the resultset is displayed