Project

General

Profile

« Previous | Next » 

Revision 5737

separate template for citation; padding for EML details

View differences:

lib/style/skins/semtools/resultset.xsl
135 135
					
136 136
						<tr>
137 137
							<td colspan="2">
138
								<table class="subGroup subGroup_border onehundred_percent">
139
									<tr>
140
										<td class="rowodd">
141
											Citation:
142
										</td>
143
										<td class="roweven">
144
											<!-- the author -->
145
											<xsl:choose>
146
												<xsl:when test="count(./param[@name='creator/individualName/surName']) > 0">
147
													<xsl:for-each select="./param[@name='creator/individualName/surName']">
148
														<xsl:value-of select="." />
149
														<xsl:if test="position() != last()">, </xsl:if>
150
													</xsl:for-each>
151
												</xsl:when>
152
												<xsl:otherwise>
153
													<xsl:for-each select="./param[@name='creator/organizationName']">
154
														<xsl:value-of select="." />
155
														<xsl:if test="position() != last()">, </xsl:if>
156
													</xsl:for-each>
157
												</xsl:otherwise>
158
											</xsl:choose>
159
											<xsl:text>. </xsl:text>
160
											<!-- the pubdate -->
161
											<xsl:value-of select="substring(string(./param[@name='dataset/pubDate']),1,4)"/>
162
	        								<xsl:if test="substring(string(./param[@name='dataset/pubDate']),1,4) != ''">. </xsl:if>
163
											<!-- the link -->
164
											<a>
165
												<xsl:attribute name="href">
166
													<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
167
												</xsl:attribute>
168
												<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" />										
169
											</a>
170
										</td>
171
									</tr>		
172
								</table>
138
								<!-- citation -->
139
								<xsl:call-template name="citation"/>								
173 140
							</td>
174 141
						</tr>
175 142
						
......
185 152
								</xsl:for-each>
186 153
							</td>
187 154
							
188
							<!-- EML section -->
155
							<!-- EML section (div for padding) -->
189 156
							<td>
190
								<xsl:call-template name="emlDetails"/>
157
								<div class="subGroup">
158
									<xsl:call-template name="emlDetails"/>
159
								</div>	
191 160
							</td>
192 161
							
193 162
						</tr>
......
202 171
			
203 172
	</xsl:template>
204 173
	
174
	<xsl:template name="citation">
175
		<table class="subGroup subGroup_border onehundred_percent">
176
			<tr>
177
				<td class="rowodd">
178
					Citation:
179
				</td>
180
				<td class="roweven">
181
					<!-- the author -->
182
					<xsl:choose>
183
						<xsl:when test="count(./param[@name='creator/individualName/surName']) > 0">
184
							<xsl:for-each select="./param[@name='creator/individualName/surName']">
185
								<xsl:value-of select="." />
186
								<xsl:if test="position() != last()">, </xsl:if>
187
							</xsl:for-each>
188
						</xsl:when>
189
						<xsl:otherwise>
190
							<xsl:for-each select="./param[@name='creator/organizationName']">
191
								<xsl:value-of select="." />
192
								<xsl:if test="position() != last()">, </xsl:if>
193
							</xsl:for-each>
194
						</xsl:otherwise>
195
					</xsl:choose>
196
					<xsl:text>. </xsl:text>
197
					<!-- the pubdate -->
198
					<xsl:value-of select="substring(string(./param[@name='dataset/pubDate']),1,4)"/>
199
   								<xsl:if test="substring(string(./param[@name='dataset/pubDate']),1,4) != ''">. </xsl:if>
200
					<!-- the link -->
201
					<a>
202
						<xsl:attribute name="href">
203
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
204
						</xsl:attribute>
205
						<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" />										
206
					</a>
207
				</td>
208
			</tr>		
209
		</table>
210
	</xsl:template>
211
	
205 212
	<xsl:template name="emlDetails">
206 213
		<!-- render the DP details -->
207 214
		<table class="subGroup subGroup_border onehundred_percent">

Also available in: Unified diff