Lines 187-193
Link Here
|
187 |
</span> |
187 |
</span> |
188 |
</xsl:if> |
188 |
</xsl:if> |
189 |
</xsl:for-each> |
189 |
</xsl:for-each> |
|
|
190 |
</xsl:template> |
191 |
|
192 |
<xsl:template name="showRDAtag264"> |
193 |
<!-- Function showRDAtag264 shows selected information from tag 264 |
194 |
on the Publisher line (used by OPAC Detail and Results) |
195 |
Depending on how many tags you have, we will pick by preference |
196 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
197 |
The preferred tag is saved in the fav variable and passed to a |
198 |
helper named-template --> |
199 |
<xsl:choose> |
200 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]"> |
201 |
<!-- ind1==3 means latest change --> |
202 |
<!-- ind2==1 means Publisher --> |
203 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/> |
204 |
<xsl:call-template name="showRDAtag264helper"> |
205 |
<xsl:with-param name="field" select="$fav"/> |
206 |
</xsl:call-template> |
207 |
</xsl:when> |
208 |
|
209 |
<xsl:when test="marc:datafield[@tag=264 and @ind2=1]"> |
210 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/> |
211 |
<xsl:call-template name="showRDAtag264helper"> |
212 |
<xsl:with-param name="field" select="$fav"/> |
213 |
</xsl:call-template> |
214 |
</xsl:when> |
190 |
|
215 |
|
|
|
216 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
217 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/> |
218 |
<xsl:call-template name="showRDAtag264helper"> |
219 |
<xsl:with-param name="field" select="$fav"/> |
220 |
</xsl:call-template> |
221 |
</xsl:when> |
222 |
|
223 |
<xsl:otherwise> |
224 |
<xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/> |
225 |
<xsl:call-template name="showRDAtag264helper"> |
226 |
<xsl:with-param name="field" select="$fav"/> |
227 |
</xsl:call-template> |
228 |
</xsl:otherwise> |
229 |
</xsl:choose> |
230 |
</xsl:template> |
231 |
<xsl:template name="showRDAtag264helper"> |
232 |
<xsl:param name="field"/> |
233 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
234 |
<xsl:choose> |
235 |
<xsl:when test="$ind2='0'"> |
236 |
<span class="label">Producer: </span> |
237 |
</xsl:when> |
238 |
<xsl:when test="$ind2='1'"> |
239 |
<span class="label">Publisher: </span> |
240 |
</xsl:when> |
241 |
<xsl:when test="$ind2='2'"> |
242 |
<span class="label">Distributor: </span> |
243 |
</xsl:when> |
244 |
<xsl:when test="$ind2='3'"> |
245 |
<span class="label">Manufacturer: </span> |
246 |
</xsl:when> |
247 |
</xsl:choose> |
248 |
<xsl:value-of select="$field/marc:subfield[@code='a']"/> |
249 |
<xsl:text> </xsl:text> |
250 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
251 |
<xsl:text> </xsl:text> |
252 |
<xsl:value-of select="$field/marc:subfield[@code='c']"/> |
191 |
</xsl:template> |
253 |
</xsl:template> |
192 |
|
254 |
|
193 |
</xsl:stylesheet> |
255 |
</xsl:stylesheet> |
194 |
- |
|
|