Revision 5762
Added by ben leinfelder almost 14 years ago
resultset.xsl | ||
---|---|---|
109 | 109 |
<div> |
110 | 110 |
<xsl:attribute name="class"> |
111 | 111 |
<xsl:choose> |
112 |
<xsl:when test="position() mod 2 = 1">rowodd accordian</xsl:when>
|
|
113 |
<xsl:when test="position() mod 2 = 0">roweven accordian</xsl:when>
|
|
112 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when> |
|
113 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when> |
|
114 | 114 |
</xsl:choose> |
115 | 115 |
</xsl:attribute> |
116 | 116 |
|
117 |
<a> |
|
118 |
<xsl:attribute name="href"> |
|
119 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/> |
|
120 |
</xsl:attribute> |
|
121 |
<b> |
|
122 |
<xsl:value-of select="./param[@name='dataset/title']"/> |
|
123 |
</b> |
|
124 |
</a> |
|
117 |
<!-- citation --> |
|
118 |
<xsl:call-template name="citation"/> |
|
125 | 119 |
|
126 |
(<xsl:value-of select="./docid" />)
|
|
120 |
<a href="#" class="accordian">Show/Hide</a>
|
|
127 | 121 |
|
128 | 122 |
</div> |
129 | 123 |
|
... | ... | |
139 | 133 |
<table class="onehundred_percent"> |
140 | 134 |
<tr> |
141 | 135 |
<td> |
142 |
<!-- citation --> |
|
143 |
<xsl:call-template name="citation"/> |
|
144 |
</td> |
|
145 |
</tr> |
|
146 |
<tr> |
|
147 |
<td> |
|
148 | 136 |
<!-- keywords --> |
149 | 137 |
<xsl:call-template name="keywords"/> |
150 | 138 |
</td> |
... | ... | |
172 | 160 |
|
173 | 161 |
</xsl:template> |
174 | 162 |
|
175 |
<xsl:template name="citation"> |
|
163 |
<xsl:template name="citationContainer">
|
|
176 | 164 |
<table class="subGroup subGroup_border onehundred_percent"> |
177 | 165 |
<tr> |
178 | 166 |
<td class="rowodd" width="{$labelWidth}"> |
179 | 167 |
Citation: |
180 | 168 |
</td> |
181 | 169 |
<td class="roweven"> |
182 |
<!-- the author --> |
|
183 |
<xsl:choose> |
|
184 |
<xsl:when test="count(./param[@name='creator/individualName/surName']) > 0"> |
|
185 |
<xsl:for-each select="./param[@name='creator/individualName/surName']"> |
|
186 |
<xsl:value-of select="." /> |
|
187 |
<xsl:if test="position() != last()">, </xsl:if> |
|
188 |
</xsl:for-each> |
|
189 |
</xsl:when> |
|
190 |
<xsl:otherwise> |
|
191 |
<xsl:for-each select="./param[@name='creator/organizationName']"> |
|
192 |
<xsl:value-of select="." /> |
|
193 |
<xsl:if test="position() != last()">, </xsl:if> |
|
194 |
</xsl:for-each> |
|
195 |
</xsl:otherwise> |
|
196 |
</xsl:choose> |
|
197 |
<xsl:text>. </xsl:text> |
|
198 |
<!-- the pubdate --> |
|
199 |
<xsl:value-of select="substring(string(./param[@name='dataset/pubDate']),1,4)"/> |
|
200 |
<xsl:if test="substring(string(./param[@name='dataset/pubDate']),1,4) != ''">. </xsl:if> |
|
201 |
<!-- the title --> |
|
202 |
<xsl:value-of select="./param[@name='dataset/title']"/> |
|
203 |
<xsl:text>. </xsl:text> |
|
204 |
<!-- the id --> |
|
205 |
<xsl:value-of select="./docid"/> |
|
206 |
<xsl:text>. </xsl:text> |
|
207 |
<br/> |
|
208 |
<!-- the link --> |
|
209 |
(<a> |
|
210 |
<xsl:attribute name="href"> |
|
211 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/> |
|
212 |
</xsl:attribute> |
|
213 |
<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" /> |
|
214 |
</a>) |
|
170 |
<xsl:call-template name="citation"/> |
|
215 | 171 |
</td> |
216 | 172 |
</tr> |
217 | 173 |
</table> |
218 | 174 |
</xsl:template> |
219 | 175 |
|
176 |
<xsl:template name="citation"> |
|
177 |
<!-- the author --> |
|
178 |
<xsl:choose> |
|
179 |
<xsl:when test="count(./param[@name='creator/individualName/surName']) > 0"> |
|
180 |
<xsl:for-each select="./param[@name='creator/individualName/surName']"> |
|
181 |
<xsl:value-of select="." /> |
|
182 |
<xsl:if test="position() != last()">, </xsl:if> |
|
183 |
</xsl:for-each> |
|
184 |
</xsl:when> |
|
185 |
<xsl:otherwise> |
|
186 |
<xsl:for-each select="./param[@name='creator/organizationName']"> |
|
187 |
<xsl:value-of select="." /> |
|
188 |
<xsl:if test="position() != last()">, </xsl:if> |
|
189 |
</xsl:for-each> |
|
190 |
</xsl:otherwise> |
|
191 |
</xsl:choose> |
|
192 |
<xsl:text>. </xsl:text> |
|
193 |
<!-- the pubdate --> |
|
194 |
<xsl:value-of select="substring(string(./param[@name='dataset/pubDate']),1,4)"/> |
|
195 |
<xsl:if test="substring(string(./param[@name='dataset/pubDate']),1,4) != ''">. </xsl:if> |
|
196 |
<!-- the title --> |
|
197 |
<b> |
|
198 |
<xsl:value-of select="./param[@name='dataset/title']"/> |
|
199 |
</b> |
|
200 |
<xsl:text>. </xsl:text> |
|
201 |
<!-- the id --> |
|
202 |
<xsl:value-of select="./docid"/> |
|
203 |
<xsl:text>. </xsl:text> |
|
204 |
<br/> |
|
205 |
<!-- the link --> |
|
206 |
(<a> |
|
207 |
<xsl:attribute name="href"> |
|
208 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/> |
|
209 |
</xsl:attribute> |
|
210 |
<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" /> |
|
211 |
</a>) |
|
212 |
</xsl:template> |
|
213 |
|
|
220 | 214 |
<xsl:template name="keywords"> |
221 | 215 |
<!-- render the keywords --> |
222 | 216 |
<table class="subGroup subGroup_border onehundred_percent"> |
Also available in: Unified diff
use citation as the search result accordian item