Project

General

Profile

« Previous | Next » 

Revision 7985

View differences:

lib/style/skins/metacatui/eml-2/eml-identifier.xsl
76 76
    
77 77
    <!-- for citation information -->
78 78
    <xsl:template name="datasetcitation">
79
        <tr>
80
        	<th>
81
        		Data Set Citation:
82
        	</th>
83
        </tr>
84
        <tr>
85
        	<td>
86
        		When using this data, please cite the data package:
87
        	</td>
88
        </tr>
89
        <tr>
90
        	<td class="citation">
91
	        	<xsl:for-each select="creator">
92
	        		<xsl:if test="position() &gt; 1">
93
	        			<xsl:if test="last() &gt; 2">, </xsl:if>
94
	        			<xsl:if test="position() = last()"> and</xsl:if>
95
	        			<xsl:text> </xsl:text>
96
	        		</xsl:if>
97
	        		<xsl:call-template name="creatorCitation" />
98
	        		<xsl:if test="position() = last()">.</xsl:if>
99
	        		<xsl:text> </xsl:text>    		
100
	        	</xsl:for-each>
101
	        	
102
	        	<xsl:value-of select="substring(string(pubDate),1,4)"/>
103
	        	<xsl:if test="substring(string(pubDate),1,4) != ''">.</xsl:if>
104
	        	
105
	        	<br/>
106
	        	<!-- title -->
107
				<b>
108
				<xsl:for-each select="./title">
109
		     		<xsl:call-template name="i18n">
110
		     			<xsl:with-param name="i18nElement" select="."/>
111
		     		</xsl:call-template>
112
		     	</xsl:for-each>				
113
				</b>
114
				<br/>
115
				<xsl:if test="boolean($registryname)">
116
					<xsl:value-of select="$registryname"/>: 
117
				</xsl:if>
79
    
80
    	<div class="well">
81
    		<div class="row-fluid">
82
    			<div class="span10">
83
    				<xsl:for-each select="creator">
84
		        		<xsl:if test="position() &gt; 1">
85
		        			<xsl:if test="last() &gt; 2">, </xsl:if>
86
		        			<xsl:if test="position() = last()"> and</xsl:if>
87
		        			<xsl:text> </xsl:text>
88
		        		</xsl:if>
89
		        		<xsl:call-template name="creatorCitation" />
90
		        		<xsl:if test="position() = last()">.</xsl:if>
91
		        		<xsl:text> </xsl:text>    		
92
		        	</xsl:for-each>
93
		        	
94
		        	<xsl:value-of select="substring(string(pubDate),1,4)"/>
95
		        	<xsl:if test="substring(string(pubDate),1,4) != ''">
96
		        		<xsl:text>. </xsl:text>    				     		
97
		        	</xsl:if>
98
		        	
99
		        	<!-- title -->
100
					<strong>
101
					<xsl:for-each select="./title">
102
			     		<xsl:call-template name="i18n">
103
			     			<xsl:with-param name="i18nElement" select="."/>
104
			     		</xsl:call-template>
105
		        		<xsl:text> </xsl:text>    				     		
106
			     	</xsl:for-each>				
107
					</strong>
108
					
109
					<!-- show link? -->
110
					<xsl:if test="$withHTMLLinks = '1'">
111
						<a> 
112
							<xsl:attribute name="href">
113
								<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
114
							</xsl:attribute> 
115
							(<xsl:value-of select="../@packageId"/>)
116
						</a>				        		
117
					</xsl:if>
118
    			</div>
119
    			<div class="span2">
120
   					<a class="btn">
121
   						<xsl:attribute name="href">
122
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
123
						</xsl:attribute>
124
   						<i class="icon-arrow-down"></i> Download Package
125
   					</a>
126
    			</div>	
127
  
128
    		</div>
118 129
				
119
                <span class="lsid">
120
				    <xsl:choose>
121
					    <xsl:when test="boolean($lsidauthority)">
122
						    <xsl:call-template name="lsid"/>
123
					    </xsl:when>
124
					    <xsl:otherwise>
125
						    <xsl:value-of select="../@packageId"/>
126
					    </xsl:otherwise>
127
				    </xsl:choose>
128
                </span>
129
				
130
				<!-- show link? -->
131
				<xsl:if test="$withHTMLLinks = '1'">
132
		        	<xsl:choose>
133
		        		<xsl:when test="boolean($registryurl)">
134
		        			(<a> <xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/></xsl:attribute> <xsl:value-of select="$registryurl"/>/metacat/<xsl:value-of select="../@packageId"/>/<xsl:value-of select="$qformat"/></a>)
135
		        		</xsl:when>
136
		        		<xsl:otherwise>
137
		        			(<a> <xsl:attribute name="href"><xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/></xsl:attribute> <xsl:value-of select="$contextURL"/>/metacat/<xsl:value-of select="../@packageId"/>/<xsl:value-of select="$qformat"/></a>)				
138
		        		</xsl:otherwise>
139
		        	</xsl:choose>
140
					<br />
141
				</xsl:if>	
142
        </td>
143
     </tr>
130
		</div>
131

  
144 132
   </xsl:template>
145 133
   
146 134
   <!--************** creates lsid dataset id **************-->

Also available in: Unified diff