Project

General

Profile

« Previous | Next » 

Revision 9194

Changed the FGDC MetacatUI theme translation so that it displays nicely in MetacatUI and works correctly

View differences:

lib/style/skins/metacatui/fgdc/fgdc-root.xsl
6 6
    <xsl:param name="enableFGDCediting"/>
7 7
        
8 8
    <xsl:template name="metadata">
9
        <article id="Metadata">
10
	    	<div class="container">
11
	    		<div class="row-fluid">
9
        <article id="Metadata" class="container">
12 10
				    <xsl:apply-templates select="metadata/idinfo"/>
13 11
			        <br/>
14 12
			        <xsl:apply-templates
15 13
			            select="metadata/distinfo/resdesc[starts-with(text(),$docid)]/ancestor::distinfo"/>
16
	        	</div>
17
	        </div>
18 14
	    </article>
19 15
        
20 16
    </xsl:template>
......
40 36
    <!-- for citation information -->
41 37
    <xsl:template name="fgdcBlockCitation">
42 38
    
43
    	<div class="well">
44
    		<div class="row-fluid">
45
    			<div class="span10">
39
    	<cite class="citation">
40
    			<span class="author">
46 41
    				<xsl:for-each select="origin">
47 42
		        		<xsl:if test="position() &gt; 1">
48 43
		        			<xsl:if test="last() &gt; 2">, </xsl:if>
......
53 48
		        		<xsl:if test="position() = last()">.</xsl:if>
54 49
		        		<xsl:text> </xsl:text>    		
55 50
		        	</xsl:for-each>
56
		        	
51
		      </span>   	
52
    			<span class="pubdate">
57 53
		        	<xsl:value-of select="substring(string(pubdate),1,4)"/>
58 54
		        	<xsl:if test="substring(string(pubdate),1,4) != ''">
59 55
		        		<xsl:text>. </xsl:text>    				     		
60 56
		        	</xsl:if>
61
		        	
57
		        </span>
58
		        <span class="title">		        	
62 59
		        	<!-- title -->
63 60
					<strong>
64 61
						<xsl:for-each select="./title">
......
66 63
			        		<xsl:text> </xsl:text>    				     		
67 64
				     	</xsl:for-each>				
68 65
					</strong>
69
					
66
				</span>
67
				<span class="id">					
70 68
					<!-- show link? -->
71
					<a> 
72
						<xsl:attribute name="href">
73
							<xsl:value-of select="$viewURI"/><xsl:value-of select="$pid"/>
74
						</xsl:attribute> 
75
						(<xsl:value-of select="$pid"/>)
76
					</a>				        		
77
    			</div>
78
    			<div class="span2">
69
						ID: <xsl:value-of select="$pid"/>
70
				</span>			        		
71
    			<div>
79 72
    			
80 73
    				<form method="get" action="{$contextURL}/style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
81 74
		               <input name="docid" type="hidden" value="{$docid}"/>
82 75
		               <input name="qformat" type="hidden" value="{$qformat}"/>
83 76
		               <input name="metadataDocId" type="hidden" value="{$docid}"/>
84 77
		               <input name="action" value="Download" type="hidden"/>
85
		               <button class="btn" type="submit">
78
		               <button class="btn" type="submit" id="downloadPackage">
86 79
		               		<i class="icon-arrow-down"></i> Download Package
87 80
		               </button>
88 81
		           </form>
......
95 88
   					</a>
96 89
   					-->
97 90
    			</div>	
98
  
99
    		</div>
100
				
101
		</div>
91
 				
92
		</cite>
102 93

  
103 94
   </xsl:template>
104 95
    
......
178 169
    </xsl:template>
179 170
    
180 171
    <xsl:template match="bounding">
181
        <div class="control-group">
172
        <div class="control-group boundingCoordinates geographicCoverage" data-content="boundingCoordinates">
182 173
			<label class="control-label">Bounding Coordinates</label>
183 174
        	<div class="controls controls-well">
184
	            <div class="control-group">
175
        	
176
        	  	<xsl:variable name="west"><xsl:value-of select="westbc"/></xsl:variable>
177
        	  	<xsl:variable name="east"><xsl:value-of select="eastbc"/></xsl:variable>
178
        	  	<xsl:variable name="north"><xsl:value-of select="northbc"/></xsl:variable>
179
        	  	<xsl:variable name="south"><xsl:value-of select="southbc"/></xsl:variable>
180

  
181
	            <div class="control-group westBoundingCoordinate" data-content="westBoundingCoordinate" data-value="{$west}">
185 182
					<label class="control-label">West</label>
186 183
	                <div class="controls">
187
                       	<xsl:value-of select="westbc"/>
184
                       	<xsl:value-of select="$west"/>
188 185
	                </div>
189 186
				</div> 
190
	            <div class="control-group">
187
	            <div class="control-group eastBoundingCoordinate" data-content="eastBoundingCoordinate" data-value="{$east}">
191 188
					<label class="control-label">East</label>
192 189
                    <div class="controls">
193
                        <xsl:value-of select="eastbc"/>
190
                        <xsl:value-of select="$east"/>
194 191
                    </div>
195 192
				</div>
196
				<div class="control-group">
193
				<div class="control-group northBoundingCoordinate" data-content="northBoundingCoordinate" data-value="{$north}">
197 194
					<label class="control-label">North</label>
198 195
                    <div class="controls">
199
                        <xsl:value-of select="northbc"/>
196
                        <xsl:value-of select="$north"/>
200 197
                    </div>
201 198
               	</div>
202
	            <div class="control-group">
199
	            <div class="control-group southBoundingCoordinate" data-content="southBoundingCoordinate" data-value="{$south}">
203 200
					<label class="control-label">South</label>
204 201
                    <div class="controls">
205
                        <xsl:value-of select="southbc"/>
202
                        <xsl:value-of select="$south"/>
206 203
                    </div>
207 204
	            </div>
208 205
	        </div> 

Also available in: Unified diff