Revision 3453
Added by barteau about 17 years ago
lib/style/common/fgdc/fgdc_1.xsl | ||
---|---|---|
3 | 3 |
<xsl:output indent="yes" method="html"/> |
4 | 4 |
<xsl:param name="docid"/> |
5 | 5 |
<xsl:param name="sessionid" select="public"/> |
6 |
<xsl:param name="qformat"/> |
|
6 | 7 |
|
7 | 8 |
<xsl:template match="/metadata"> |
8 | 9 |
<html> |
9 | 10 |
<head> |
10 |
<link rel="stylesheet" type="text/css" href="./style/skins/knp/knp.css" media="all"/>
|
|
11 |
<link rel="stylesheet" type="text/css" href="./style/skins/{$qformat}/{$qformat}.css" media="all"/>
|
|
11 | 12 |
<script language="JavaScript" type="text/JavaScript" src="./style/skins/knp/knp.js"/> |
12 | 13 |
<script language="JavaScript" type="text/JavaScript" src="./style/common/branding.js"/> |
13 | 14 |
<title>FGDC Identification and Metacat Data Package Information</title> |
14 | 15 |
</head> |
15 | 16 |
<body> |
16 | 17 |
<script language="JavaScript"> |
17 |
function getMapFrame() { |
|
18 |
return document.getElementById('mapFrame'); |
|
19 |
} |
|
20 | 18 |
insertTemplateOpening(); |
21 | 19 |
</script> |
22 | 20 |
<div class="centerContentBorder"> |
... | ... | |
295 | 293 |
<xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)</td> |
296 | 294 |
<xsl:if test="not($sessionid = 'null')"> |
297 | 295 |
<td> |
298 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
|
|
296 |
<form method="post" action="./style/common/ClientViewHelper.jspx" |
|
299 | 297 |
enctype="text/html"> |
300 | 298 |
<input name="action" value="Delete" type="submit"/> |
301 |
<xsl:element name="input"> |
|
302 |
<xsl:attribute name="name">docid</xsl:attribute> |
|
303 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
304 |
<xsl:attribute name="value"> |
|
305 |
<xsl:value-of select="."/> |
|
306 |
</xsl:attribute> |
|
307 |
</xsl:element> |
|
308 |
<xsl:element name="input"> |
|
309 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
|
310 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
311 |
<xsl:attribute name="value"> |
|
312 |
<xsl:value-of select="$docid"/> |
|
313 |
</xsl:attribute> |
|
314 |
</xsl:element> |
|
299 |
<input name="docid" type="hidden" value="{.}"/> |
|
300 |
<input name="qformat" type="hidden" value="{$qformat}"/> |
|
301 |
<input name="metadataDocId" type="hidden" value="{$docid}"/> |
|
315 | 302 |
</form> |
316 | 303 |
</td> |
317 | 304 |
<td> |
318 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
|
|
305 |
<form method="post" action="./style/common/ClientViewHelper.jspx" |
|
319 | 306 |
enctype="multipart/form-data"> |
320 | 307 |
<input name="action" value="Update Metadata" type="submit"/> |
321 |
<xsl:element name="input"> |
|
322 |
<xsl:attribute name="name">docid</xsl:attribute> |
|
323 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
324 |
<xsl:attribute name="value"> |
|
325 |
<xsl:value-of select="."/> |
|
326 |
</xsl:attribute> |
|
327 |
</xsl:element> |
|
328 |
<xsl:element name="input"> |
|
329 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
|
330 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
331 |
<xsl:attribute name="value"> |
|
332 |
<xsl:value-of select="$docid"/> |
|
333 |
</xsl:attribute> |
|
334 |
</xsl:element> |
|
308 |
<input name="docid" type="hidden" value="{.}"/> |
|
309 |
<input name="qformat" type="hidden" value="{$qformat}"/> |
|
310 |
<input name="metadataDocId" type="hidden" value="{$docid}"/> |
|
335 | 311 |
<input name="updateFile" type="file"/> |
336 | 312 |
</form> |
337 | 313 |
</td> |
... | ... | |
351 | 327 |
/>) </td> |
352 | 328 |
<xsl:if test="not($sessionid = 'null')"> |
353 | 329 |
<td> |
354 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
|
|
330 |
<form method="get" action="./style/common/ClientViewHelper.jspx"
|
|
355 | 331 |
enctype="text/html"> |
356 | 332 |
<input name="action" value="Delete" type="submit"/> |
357 |
<xsl:element name="input"> |
|
358 |
<xsl:attribute name="name">docid</xsl:attribute> |
|
359 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
360 |
<xsl:attribute name="value"> |
|
361 |
<xsl:value-of select="."/> |
|
362 |
</xsl:attribute> |
|
363 |
</xsl:element> |
|
364 |
<xsl:element name="input"> |
|
365 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
|
366 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
367 |
<xsl:attribute name="value"> |
|
368 |
<xsl:value-of select="$docid"/> |
|
369 |
</xsl:attribute> |
|
370 |
</xsl:element> |
|
333 |
<input name="docid" type="hidden" value="{.}"/> |
|
334 |
<input name="qformat" type="hidden" value="{$qformat}"/> |
|
335 |
<input name="metadataDocId" type="hidden" value="{$docid}"/> |
|
371 | 336 |
</form> |
372 | 337 |
</td> |
373 | 338 |
<td> |
374 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
|
|
339 |
<form method="post" action="./style/common/ClientViewHelper.jspx" |
|
375 | 340 |
enctype="multipart/form-data"> |
376 | 341 |
<input name="action" value="Update Data" type="submit"/> |
377 |
<xsl:element name="input"> |
|
378 |
<xsl:attribute name="name">docid</xsl:attribute> |
|
379 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
380 |
<xsl:attribute name="value"> |
|
381 |
<xsl:value-of select="."/> |
|
382 |
</xsl:attribute> |
|
383 |
</xsl:element> |
|
384 |
<xsl:element name="input"> |
|
385 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
|
386 |
<xsl:attribute name="type">hidden</xsl:attribute> |
|
387 |
<xsl:attribute name="value"> |
|
388 |
<xsl:value-of select="$docid"/> |
|
389 |
</xsl:attribute> |
|
390 |
</xsl:element> |
|
342 |
<input name="docid" type="hidden" value="{.}"/> |
|
343 |
<input name="qformat" type="hidden" value="{$qformat}"/> |
|
344 |
<input name="metadataDocId" type="hidden" value="{$docid}"/> |
|
391 | 345 |
<input name="updateFile" type="file"/> |
392 | 346 |
</form> |
393 | 347 |
</td> |
Also available in: Unified diff
Modified form action URL's. Removed call to map. Used shorter version of JSP syntax in forms.