Project

General

Profile

« Previous | Next » 

Revision 4006

merge 1.8.1 to head

View differences:

esa-login.xsl
33 33

  
34 34
  <xsl:output method="html"/>
35 35
  <xsl:param name="qformat">default</xsl:param>
36
  <xsl:param name="contextURL"/>
36 37
  <xsl:template match="/">
37 38
   <html>
38 39
      <head>
......
44 45
                src="./style/common/branding.js" />
45 46
      </head>
46 47

  
47
      <script language="JavaScript">
48
          insertTemplateOpening("{$contextURL}");
49
          insertSearchBox("{$contextURL}");
50
      </script>
48
     <script language="JavaScript">
49
       <![CDATA[
50
          insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA[");
51
          insertSearchBox("]]><xsl:value-of select="$contextURL" /><![CDATA[");
52
         ]]>
53
     </script>
51 54
      <xsl:if test="count(login) &gt; 0">
52 55
      <xsl:choose>
53 56
      <xsl:when test="count(login/isModerator) &gt; 0">
54 57
           <script language="JavaScript">
55
	   <![CDATA[function search(){
58
           <![CDATA[
59
	   function search(){
56 60
		var searchForm = document.getElementById("search-form");
57 61
		var queryInput = document.createElement("input");
58 62
        	queryInput.setAttribute("type", "hidden");
......
60 64
        	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 65
		searchForm.appendChild(queryInput);	
62 66
		searchForm.submit();
63
	}]]>
67
    };
68
    ]]>
64 69
        </script>
65 70
      	<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',20)">
66 71
          <p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You are now logged in as moderator.</p>
......
69 74
		<input type="hidden" name="qformat" value="esa"/>
70 75
		<input type="hidden" name="enableediting" value="true"/>
71 76
		<input type="hidden" name="message" value="You are now logged in as moderator."/>
77
    <input type="submit" name="submit query"/>
72 78
	</form>
73 79
    	</body>
74 80
      </xsl:when>
......
94 100
      <p class="text_plain">Return to the <a href="./style/skins/esa/" target="_top">Registry home</a>.
95 101
      </p>
96 102
      <script language="JavaScript">
97
          insertTemplateClosing("{$contextURL}");
103
       <![CDATA[
104
          insertTemplateClosing("]]<xsl:value-of select="$contextURL" /><![CDATA[");
105
          ]]>
98 106
      </script>
107

  
99 108
    </html>
100 109
    </xsl:template>
101 110

  

Also available in: Unified diff