Revision 3400
Added by barteau over 17 years ago
lib/style/common/fgdc/fgdc_1.xsl | ||
---|---|---|
7 | 7 |
<xsl:template match="/metadata"> |
8 | 8 |
<html> |
9 | 9 |
<head> |
10 |
<link rel="stylesheet" type="text/css" href="./style/skins/knp/knp.css" media="all"/> |
|
11 |
<script language="JavaScript" type="text/JavaScript" src="./style/skins/knp/knp.js"/> |
|
12 |
<script language="JavaScript" type="text/JavaScript" src="./style/common/branding.js"/> |
|
10 | 13 |
<title>FGDC Identification and Metacat Data Package Information</title> |
11 | 14 |
</head> |
12 | 15 |
<body> |
13 |
<xsl:apply-templates select="idinfo"/> |
|
14 |
<xsl:apply-templates select="distinfo/resdesc[text()=$docid]/ancestor::distinfo"/> |
|
16 |
<script language="JavaScript"> |
|
17 |
function getMapFrame() { |
|
18 |
return document.getElementById('mapFrame'); |
|
19 |
} |
|
20 |
insertTemplateOpening(); |
|
21 |
</script> |
|
22 |
<div class="centerContentBorder"> |
|
23 |
<div class="templatecontentareaclass"> |
|
24 |
<xsl:apply-templates select="idinfo"/> |
|
25 |
<xsl:apply-templates |
|
26 |
select="distinfo/resdesc[text()=$docid]/ancestor::distinfo"/> |
|
27 |
</div> |
|
28 |
</div> |
|
29 |
<script language="JavaScript"> |
|
30 |
insertTemplateClosing(); |
|
31 |
</script> |
|
15 | 32 |
</body> |
16 | 33 |
</html> |
17 | 34 |
</xsl:template> |
18 | 35 |
|
19 | 36 |
<xsl:template match="idinfo"> |
20 |
<table width="700" border="0" cellspacing="10">
|
|
37 |
<table border="0" cellspacing="10"> |
|
21 | 38 |
<tr> |
22 | 39 |
<td colspan="2" align="center"> |
23 |
<b>FGDC Identification Information</b>
|
|
40 |
<span class="greenbold">FGDC Identification Information</span>
|
|
24 | 41 |
</td> |
25 | 42 |
</tr> |
26 | 43 |
<xsl:apply-templates select="citation"/> |
... | ... | |
37 | 54 |
<xsl:template match="citeinfo"> |
38 | 55 |
<tr> |
39 | 56 |
<td colspan="2"> |
40 |
<b>Citation Information </b>
|
|
57 |
<span class="greenbold">Citation Information </span>
|
|
41 | 58 |
</td> |
42 | 59 |
</tr> |
43 | 60 |
|
... | ... | |
67 | 84 |
<xsl:template match="descript"> |
68 | 85 |
<tr> |
69 | 86 |
<td colspan="2"> |
70 |
<b>Description</b>
|
|
87 |
<span class="greenbold">Description</span>
|
|
71 | 88 |
</td> |
72 | 89 |
</tr> |
73 | 90 |
<tr> |
... | ... | |
249 | 266 |
<table width="100%" border="0" cellspacing="10"> |
250 | 267 |
<tr> |
251 | 268 |
<td colspan="3" align="center"> |
252 |
<b>Metacat Data Package Information</b>
|
|
269 |
<span class="greenbold">Metacat Data Package Information</span>
|
|
253 | 270 |
</td> |
254 | 271 |
</tr> |
255 | 272 |
<tr> |
256 | 273 |
<td> |
257 |
<b>File type</b>
|
|
274 |
<span class="greenbold">File type</span>
|
|
258 | 275 |
</td> |
259 | 276 |
<td> |
260 |
<b>File name (Doc Id)</b>
|
|
277 |
<span class="greenbold">File name (Doc Id)</span>
|
|
261 | 278 |
</td> |
262 | 279 |
<xsl:if test="not($sessionid = 'null')"> |
263 | 280 |
<td align="center" colspan="3"> |
264 |
<b>Update with...</b>
|
|
281 |
<span class="greenbold">Update with...</span>
|
|
265 | 282 |
</td> |
266 | 283 |
</xsl:if> |
267 | 284 |
</tr> |
... | ... | |
277 | 294 |
<td align="left"> |
278 | 295 |
<xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)</td> |
279 | 296 |
<xsl:if test="not($sessionid = 'null')"> |
280 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
281 |
enctype="multipart/form-data"> |
|
282 |
<td align="right"> |
|
297 |
<td> |
|
298 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
299 |
enctype="text/html"> |
|
300 |
<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> |
|
315 |
</form> |
|
316 |
</td> |
|
317 |
<td> |
|
318 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
319 |
enctype="multipart/form-data"> |
|
283 | 320 |
<input name="action" value="Update Metadata" type="submit"/> |
284 | 321 |
<xsl:element name="input"> |
285 | 322 |
<xsl:attribute name="name">docid</xsl:attribute> |
286 | 323 |
<xsl:attribute name="type">hidden</xsl:attribute> |
287 |
<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> |
|
324 |
<xsl:attribute name="value"> |
|
325 |
<xsl:value-of select="."/> |
|
326 |
</xsl:attribute> |
|
288 | 327 |
</xsl:element> |
289 | 328 |
<xsl:element name="input"> |
290 | 329 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
291 | 330 |
<xsl:attribute name="type">hidden</xsl:attribute> |
292 |
<xsl:attribute name="value"><xsl:value-of select="$docid"/></xsl:attribute> |
|
331 |
<xsl:attribute name="value"> |
|
332 |
<xsl:value-of select="$docid"/> |
|
333 |
</xsl:attribute> |
|
293 | 334 |
</xsl:element> |
294 |
</td> |
|
295 |
<td> |
|
296 | 335 |
<input name="updateFile" type="file"/> |
297 |
</td>
|
|
298 |
</form>
|
|
336 |
</form>
|
|
337 |
</td>
|
|
299 | 338 |
</xsl:if> |
300 | 339 |
</xsl:template> |
301 | 340 |
|
... | ... | |
311 | 350 |
<xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="." |
312 | 351 |
/>) </td> |
313 | 352 |
<xsl:if test="not($sessionid = 'null')"> |
314 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
315 |
enctype="multipart/form-data"> |
|
316 |
<td align="right"> |
|
353 |
<td> |
|
354 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
355 |
enctype="text/html"> |
|
356 |
<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> |
|
371 |
</form> |
|
372 |
</td> |
|
373 |
<td> |
|
374 |
<form method="post" action="./style/common/fgdc/ClientViewHelper.jspx" |
|
375 |
enctype="multipart/form-data"> |
|
317 | 376 |
<input name="action" value="Update Data" type="submit"/> |
318 | 377 |
<xsl:element name="input"> |
319 | 378 |
<xsl:attribute name="name">docid</xsl:attribute> |
320 | 379 |
<xsl:attribute name="type">hidden</xsl:attribute> |
321 |
<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> |
|
380 |
<xsl:attribute name="value"> |
|
381 |
<xsl:value-of select="."/> |
|
382 |
</xsl:attribute> |
|
322 | 383 |
</xsl:element> |
323 | 384 |
<xsl:element name="input"> |
324 | 385 |
<xsl:attribute name="name">metadataDocId</xsl:attribute> |
325 | 386 |
<xsl:attribute name="type">hidden</xsl:attribute> |
326 |
<xsl:attribute name="value"><xsl:value-of select="$docid"/></xsl:attribute> |
|
387 |
<xsl:attribute name="value"> |
|
388 |
<xsl:value-of select="$docid"/> |
|
389 |
</xsl:attribute> |
|
327 | 390 |
</xsl:element> |
328 |
</td> |
|
329 |
<td> |
|
330 | 391 |
<input name="updateFile" type="file"/> |
331 |
</td>
|
|
332 |
</form>
|
|
392 |
</form>
|
|
393 |
</td>
|
|
333 | 394 |
</xsl:if> |
334 | 395 |
</xsl:template> |
335 | 396 |
|
Also available in: Unified diff
Added Delete buttons to the package update form. Also includes several html structural/aesthethic changes.