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>» </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>» </xsl:text>
|
170 |
178 |
<xsl:choose>
|
171 |
179 |
<xsl:when test="./param[@name='dataset/title']!=''">
|
restyle the resultset after applying new eml css
use more robust form-submission js for the datapackage links