Project

General

Profile

« Previous | Next » 

Revision 5985

restyle the resultset after applying new eml css
use more robust form-submission js for the datapackage links

View differences:

lib/style/skins/esa/esa.css
77 77
}
78 78
h3 {
79 79
	color: #096B79;	
80
}	
80
}
81
a:link, a:visited {
82
	color:#096B79;
83
	font-size:12px;
84
	font-weight:bold;
85
	text-decoration:underline;
86
}
87

  
88

  
81 89
b {
82 90
font-weight: bold;
83 91
}
......
289 297
}
290 298

  
291 299
.searchresultsdivider {
292
    background-color: #dddddd;   
300
    background-color: #dddddd;
301
    height: 1px;
293 302
}
294 303

  
295 304
/**
lib/style/skins/esa/esa-resultset.xsl
49 49
                src="{$contextURL}/style/common/branding.js" />
50 50
        <script language="JavaScript">
51 51
          <![CDATA[
52
          function submitform(action,form_ref) {
52
          function submitform(action,form_id) {
53
          	var form_ref = document.getElementById(form_id);
53 54
              form_ref.action.value=action;
54 55
              form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
55 56
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
56 57
              form_ref.submit();
57 58
          }
58
          function submitCGIform(form_ref) {
59
          function submitCGIform(form_id) {
60
          	var form_ref = document.getElementById(form_id);
59 61
              form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
60 62
              form_ref.cfg.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
61 63
              form_ref.submit();
......
112 114
                 <xsl:attribute name="name">
113 115
                   <xsl:value-of select="translate(./docid, '()-.', '____')" />
114 116
                 </xsl:attribute>
115

  
117
                 <xsl:attribute name="id">
118
                   <xsl:value-of select="translate(./docid, '()-.', '____')" />
119
                 </xsl:attribute>
120
                 
116 121
                 <input type="hidden" name="cfg" />
117 122
                 <input type="hidden" name="sessionid" />
118 123
	 	 <input type="hidden" name="enableediting" value="{$enableediting}"/>
......
123 128
                   </xsl:attribute>
124 129
                 </input>
125 130
                 <a>
126
                   <xsl:attribute name="href">javascript:submitCGIform(document.<xsl:value-of select="translate(./docid, '()-.', '____')"/>)</xsl:attribute>
131
                   <xsl:attribute name="href">javascript:submitCGIform("<xsl:value-of select="translate(./docid, '()-.', '____')"/>")</xsl:attribute>
127 132
                   <xsl:text>&#187;&#160;</xsl:text>
128 133
                   <xsl:choose>
129 134
                     <xsl:when test="./param[@name='dataset/title']!=''">
......
145 150
                 <xsl:attribute name="name">
146 151
                   <xsl:value-of select="translate(./docid, '()-.', '____')" />
147 152
                 </xsl:attribute>
153
                 <xsl:attribute name="id">
154
                   <xsl:value-of select="translate(./docid, '()-.', '____')" />
155
                 </xsl:attribute>
148 156

  
149 157
                 <input type="hidden" name="qformat" />
150 158
                 <input type="hidden" name="sessionid" />
......
165 173
                   </input>
166 174
                 </xsl:for-each>
167 175
                 <a>
168
                   <xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '()-.', '____')"/>)</xsl:attribute>
176
                   <xsl:attribute name="href">javascript:submitform("read", "<xsl:value-of select="translate(./docid, '()-.', '____')"/>")</xsl:attribute>
169 177
                   <xsl:text>&#187;&#160;</xsl:text>
170 178
                   <xsl:choose>
171 179
                     <xsl:when test="./param[@name='dataset/title']!=''">

Also available in: Unified diff