Project

General

Profile

« Previous | Next » 

Revision 8033

remove all table/tr/td/ use. clean up the data distribution area.

View differences:

lib/style/skins/metacatui/fgdc/fgdc-root.xsl
70 70
					<!-- show link? -->
71 71
					<a> 
72 72
						<xsl:attribute name="href">
73
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
73
							<xsl:value-of select="$viewURI"/><xsl:value-of select="$pid"/>
74 74
						</xsl:attribute> 
75
						(<xsl:value-of select="$docid"/>)
75
						(<xsl:value-of select="$pid"/>)
76 76
					</a>				        		
77 77
    			</div>
78 78
    			<div class="span2">
79
    			
80
    				<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
81
		               <input name="docid" type="hidden" value="{$docid}"/>
82
		               <input name="qformat" type="hidden" value="{$qformat}"/>
83
		               <input name="metadataDocId" type="hidden" value="{$docid}"/>
84
		               <input name="action" value="Download" type="hidden"/>
85
		               <button class="btn" type="submit">
86
		               		<i class="icon-arrow-down"></i> Download Package
87
		               </button>
88
		           </form>
89
           			<!--  
79 90
   					<a class="btn">
80 91
   						<xsl:attribute name="href">
81
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
92
							<xsl:value-of select="$packageURI"/><xsl:value-of select="$pid"/>
82 93
						</xsl:attribute>
83 94
   						<i class="icon-arrow-down"></i> Download Package
84 95
   					</a>
96
   					-->
85 97
    			</div>	
86 98
  
87 99
    		</div>
......
228 240
        <div class="control-group">
229 241
			<label class="control-label">Identifier</label>
230 242
	        <div class="controls controls-well">
231
	            <xsl:value-of select="$docid"/>
243
	            <xsl:value-of select="$pid"/>
232 244
	        </div>
233 245
        </div>
234 246
    </xsl:template>
......
287 299
        <div class="control-group">
288 300
			<label class="control-label">Publication Information</label>
289 301
	        <div class="controls controls-well">
290
	            <table class="subGroup subGroup_border">
291
	                <tr>
292
	                    <xsl:apply-templates select="pubplace"/>
293
	                </tr>
294
	                <tr>
295
	                    <xsl:apply-templates select="publish"/>
296
	                </tr>
297
	            </table>
302
	            <xsl:apply-templates select="pubplace"/>
303
	            <xsl:apply-templates select="publish"/>
298 304
	        </div>
299 305
        </div>
300 306
    </xsl:template>
......
302 308
    <xsl:template match="pubplace">
303 309
        <div class="control-group">
304 310
			<label class="control-label">Publication Place</label>
305
	        <div class="controls controls-well">
311
	        <div class="controls">
306 312
	            <xsl:value-of select="."/>
307 313
	        </div>
308 314
        </div>
......
311 317
    <xsl:template match="publish">
312 318
        <div class="control-group">
313 319
			<label class="control-label">Publisher</label>
314
	        <div class="controls controls-well">
320
	        <div class="controls">
315 321
	            <xsl:value-of select="."/>
316 322
	        </div>
317 323
        </div>
318 324
    </xsl:template>
319 325
    
320 326
    <xsl:template match="distinfo">
321
        <table width="100%" border="0" cellspacing="0" class="subGroup subGroup_border">
322
            <tr>
323
                <td colspan="5" align="center">
324
                    <h2>Data Package Information</h2>
325
                </td>
326
            </tr>
327
            <tr>
328
                <td class="tablehead">
329
                    File type
330
                </td>
331
                <td class="tablehead" colspan="2">
332
                    File name (Doc Id)
333
                </td>
334
                <xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
335
                    <td align="left" colspan="2" class="tablehead">
336
                        Actions...
337
                    </td>
338
                </xsl:if>
339
            </tr>
340
            <tr>
341
                <xsl:apply-templates select="resdesc"/>
342
            </tr>
327
    	<h4>Data Package Information</h4>
328
        <div class="form-horizontal">
329
            <xsl:apply-templates select="resdesc"/>
343 330
            <xsl:apply-templates select="stdorder/digform/digtopt/onlinopt/computer/networka"/>
344
        </table>
331
        </div>
345 332
    </xsl:template>
346 333
    
347 334
    <xsl:template match="resdesc">
348
        <td class="highlight" align="left" valign="top">Metadata</td>
349
        <td class="secondCol" align="left" valign="top">
350
        	<xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)
351
        	
352
        	<!-- update -->
353
		<xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
354
			<br/>
355
			<br/>
356
			<form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
357
                     enctype="multipart/form-data">
358
                   <input name="action" value="Update Metadata" type="hidden"/>
359
                   <input name="docid" type="hidden" value="{.}"/>
360
                   <input name="qformat" type="hidden" value="{$qformat}"/>
361
                   <input name="metadataDocId" type="hidden" value="{.}"/>
362
                   <input name="updateFile" type="file"/>
363
                   <input name="submit" value="Update" type="submit"/>
364
               </form>
365
		</xsl:if>
366
		
367
       </td>
368
       <!-- download -->
369
       <td class="secondCol" valign="bottom">
370
           <form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx">
371
               <input name="action" value="Download" type="submit"/>
372
               <input name="docid" type="hidden" value="{.}"/>
373
               <input name="qformat" type="hidden" value="{$qformat}"/>
374
               <input name="metadataDocId" type="hidden" value="{.}"/>
375
           </form>
376
       </td>
377
       
378
       <xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
379
       	<!-- delete -->
380
       	<td class="secondCol" valign="bottom">
381
           	<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
382
                     enctype="text/html">
383
                   <input name="action" value="Delete" type="submit"/>
384
                   <input name="docid" type="hidden" value="{.}"/>
385
                   <input name="qformat" type="hidden" value="{$qformat}"/>
386
                   <input name="metadataDocId" type="hidden" value="{.}"/>
387
               </form>
388
           </td>
389
           <!-- set access -->
390
       	<td class="secondCol" valign="bottom">
391
			<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx">
392
                   <input name="action" value="Set Access" type="submit"/>
393
                   <xsl:choose>
394
                       <xsl:when test="$publicRead = 'true'">
395
                           <input name="publicAccess" type="checkbox" checked=''/> Public read     
396
                       </xsl:when>
397
                       <xsl:otherwise>
398
                           <input name="publicAccess" type="checkbox"/> Public read                         
399
                       </xsl:otherwise>
400
                   </xsl:choose>
401
                   <input name="docid" type="hidden" value="{.}"/>
402
                   <input name="qformat" type="hidden" value="{$qformat}"/>
403
                   <input name="metadataDocId" type="hidden" value="{.}"/>
404
                   <input name="contentStandard" type="hidden" value="FGDC"/>
405
			</form>
406
		</td>
407
	</xsl:if>
335
        <div class="control-group">
336
			<label class="control-label">Metadata</label>
337
        	<div class="controls controls-well">
338
        		
339
				<!-- download -->
340
				<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" class="form-inline">
341
					<xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)
342
					<input name="action" value="Download" type="submit"/>
343
					<input name="docid" type="hidden" value="{.}"/>
344
					<input name="qformat" type="hidden" value="{$qformat}"/>
345
					<input name="metadataDocId" type="hidden" value="{.}"/>
346
				</form>
347

  
348
				<xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
349
	
350
					<!-- update -->
351
		       		<form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
352
	                     enctype="multipart/form-data" class="form-inline">
353
	                   <input name="action" value="Update Metadata" type="hidden"/>
354
	                   <input name="docid" type="hidden" value="{.}"/>
355
	                   <input name="qformat" type="hidden" value="{$qformat}"/>
356
	                   <input name="metadataDocId" type="hidden" value="{.}"/>
357
	                   <input name="updateFile" type="file"/>
358
	                   <input name="submit" value="Update" type="submit"/>
359
					</form>
360
				
361
					<!-- set access -->
362
					<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" class="form-inline">
363
		                   <xsl:choose>
364
		                       <xsl:when test="$publicRead = 'true'">
365
		                           <input name="publicAccess" type="checkbox" checked=''/> Public read     
366
		                       </xsl:when>
367
		                       <xsl:otherwise>
368
		                           <input name="publicAccess" type="checkbox"/> Public read                         
369
		                       </xsl:otherwise>
370
		                   </xsl:choose>
371
		                   <input name="docid" type="hidden" value="{.}"/>
372
		                   <input name="qformat" type="hidden" value="{$qformat}"/>
373
		                   <input name="metadataDocId" type="hidden" value="{.}"/>
374
		                   <input name="contentStandard" type="hidden" value="FGDC"/>
375
		                   <input name="action" value="Set Access" type="submit"/>		                   
376
					</form>
377
				
378
					<!-- delete -->
379
		           	<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
380
		                     enctype="text/html" class="form-inline">
381
		                   <input name="action" value="Delete" type="submit"/>
382
		                   <input name="docid" type="hidden" value="{.}"/>
383
		                   <input name="qformat" type="hidden" value="{$qformat}"/>
384
		                   <input name="metadataDocId" type="hidden" value="{.}"/>
385
					</form>
386
				</xsl:if>
387
			</div>
388
		</div>
408 389
   </xsl:template>
409 390
   
410 391
   <xsl:template match="networka">
411
       <tr>
412
           <xsl:apply-templates select="networkr"/>
413
       </tr>
392
   		<xsl:apply-templates select="networkr"/>
414 393
   </xsl:template>
415 394
   
416 395
   <xsl:template match="networkr">
417 396
	<xsl:if test="not(./ancestor::digform/digtinfo/formcont = '')">
418
       <td class="highlight" align="left" valign="top">Data</td>
419
       <td class="secondCol" align="left" valign="top">
420
           <xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."/>)
421
       	<!-- update -->
422
		<xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
423
			<br/>
424
			<br/>
425
               <form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
426
                     enctype="multipart/form-data">
427
                   <input name="action" value="Update Data" type="hidden"/>
428
                   <input name="docid" type="hidden" value="{.}"/>
429
                   <input name="qformat" type="hidden" value="{$qformat}"/>
430
                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
431
                   <input name="updateFile" type="file"/>
432
                   <input name="submit" value="Update" type="submit"/>                    
433
               </form>
434
		</xsl:if>                        
435
       </td>
436
       <!-- download -->
437
       <td class="secondCol" valign="bottom">
438
           <form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
439
               <input name="action" value="Download" type="submit"/>
440
               <input name="docid" type="hidden" value="{.}"/>
441
               <input name="qformat" type="hidden" value="{$qformat}"/>
442
               <input name="metadataDocId" type="hidden" value="{$docid}"/>
443
           </form>
444
       </td>
445
       <xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
446
       	<!-- delete -->
447
       	<td class="secondCol" valign="bottom">
448
       		<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
449
                     enctype="text/html">
450
                   <input name="action" value="Delete" type="submit"/>
451
                   <input name="docid" type="hidden" value="{.}"/>
452
                   <input name="qformat" type="hidden" value="{$qformat}"/>
453
                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
454
               </form>
455
       	</td>
456
       	<!-- set access -->
457
       	<td class="secondCol" valign="bottom"></td>
458
       	
459
		</xsl:if>
397
       <div class="control-group">
398
			<label class="control-label">Data</label>
399
       		<div class="controls controls-well">
400
		        <!-- download -->
401
	           <form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream" class="form-inline">
402
		        	<xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."/>)
403
					<input name="action" value="Download" type="submit"/>
404
					<input name="docid" type="hidden" value="{.}"/>
405
					<input name="qformat" type="hidden" value="{$qformat}"/>
406
					<input name="metadataDocId" type="hidden" value="{$docid}"/>
407
	           </form>
408
		       	<!-- update -->
409
				<xsl:if test="$enableFGDCediting = 'true' and not($sessionid = '')">
410
		               <form method="post" action="{$contextURL}/style/common/ClientViewHelper.jspx"
411
		                     enctype="multipart/form-data" class="form-inline">
412
		                   <input name="action" value="Update Data" type="hidden"/>
413
		                   <input name="docid" type="hidden" value="{.}"/>
414
		                   <input name="qformat" type="hidden" value="{$qformat}"/>
415
		                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
416
		                   <input name="updateFile" type="file"/>
417
		                   <input name="submit" value="Update" type="submit"/>                    
418
		               </form>
419
		               <!-- delete -->
420
						<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx"
421
		                     enctype="text/html" class="form-inline">
422
		                   <input name="action" value="Delete" type="submit"/>
423
		                   <input name="docid" type="hidden" value="{.}"/>
424
		                   <input name="qformat" type="hidden" value="{$qformat}"/>
425
		                   <input name="metadataDocId" type="hidden" value="{$docid}"/>
426
		               </form>	
427
				</xsl:if>                        
428
			</div>
429
		</div>	
460 430
	</xsl:if>
431
			
461 432
   </xsl:template>
462 433
   
463 434
   <xsl:template name="date_as_is">

Also available in: Unified diff