Lines 1-6
Link Here
|
1 |
<?xml version='1.0'?> |
1 |
<?xml version='1.0'?> |
2 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
2 |
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> |
3 |
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
3 |
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc"> |
4 |
<xsl:template name="datafield"> |
4 |
<xsl:template name="datafield"> |
5 |
<xsl:param name="tag"/> |
5 |
<xsl:param name="tag"/> |
6 |
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param> |
6 |
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param> |
Lines 209-276
Link Here
|
209 |
</xsl:template> |
209 |
</xsl:template> |
210 |
|
210 |
|
211 |
<xsl:template name="showRDAtag264"> |
211 |
<xsl:template name="showRDAtag264"> |
212 |
<!-- Function showRDAtag264 shows selected information from tag 264 |
212 |
<!-- Function showRDAtag264 shows selected information from tag 264 |
213 |
on the Publisher line (used by OPAC Detail and Results) |
213 |
on the Publisher line (used by OPAC Detail and Results) |
214 |
Depending on how many tags you have, we will pick by preference |
214 |
Depending on how many tags you have, we will pick by preference |
215 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
215 |
Publisher-latest or Publisher or 'Other'-latest or 'Other' |
216 |
The preferred tag is saved in the fav variable and passed to a |
216 |
The preferred tag is saved in the fav variable and passed to a |
217 |
helper named-template --> |
217 |
helper named-template --> |
|
|
218 |
<!-- Amended to show all 264 fields (filtered by ind1=3 if ind1=3 is present in the record) --> |
218 |
<xsl:choose> |
219 |
<xsl:choose> |
219 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3 and @ind2=1]"> |
|
|
220 |
<!-- ind1==3 means latest change --> |
221 |
<!-- ind2==1 means Publisher --> |
222 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3 and @ind2=1][1]"/> |
223 |
<xsl:call-template name="showRDAtag264helper"> |
224 |
<xsl:with-param name="field" select="$fav"/> |
225 |
</xsl:call-template> |
226 |
</xsl:when> |
227 |
|
228 |
<xsl:when test="marc:datafield[@tag=264 and @ind2=1]"> |
229 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind2=1][last()]"/> |
230 |
<xsl:call-template name="showRDAtag264helper"> |
231 |
<xsl:with-param name="field" select="$fav"/> |
232 |
</xsl:call-template> |
233 |
</xsl:when> |
234 |
|
235 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
220 |
<xsl:when test="marc:datafield[@tag=264 and @ind1=3]"> |
236 |
<xsl:variable name="fav" select="marc:datafield[@tag=264 and @ind1=3][1]"/> |
221 |
<xsl:for-each select="marc:datafield[@tag=264 and @ind1=3]"> |
237 |
<xsl:call-template name="showRDAtag264helper"> |
222 |
<xsl:call-template name="showRDAtag264helper"> |
238 |
<xsl:with-param name="field" select="$fav"/> |
223 |
<xsl:with-param name="field" select="."/> |
239 |
</xsl:call-template> |
224 |
</xsl:call-template> |
|
|
225 |
</xsl:for-each> |
240 |
</xsl:when> |
226 |
</xsl:when> |
241 |
|
|
|
242 |
<xsl:otherwise> |
227 |
<xsl:otherwise> |
243 |
<xsl:variable name="fav" select="marc:datafield[@tag=264][last()]"/> |
228 |
<xsl:for-each select="marc:datafield[@tag=264]"> |
244 |
<xsl:call-template name="showRDAtag264helper"> |
229 |
<xsl:call-template name="showRDAtag264helper"> |
245 |
<xsl:with-param name="field" select="$fav"/> |
230 |
<xsl:with-param name="field" select="."/> |
246 |
</xsl:call-template> |
231 |
</xsl:call-template> |
|
|
232 |
</xsl:for-each> |
247 |
</xsl:otherwise> |
233 |
</xsl:otherwise> |
248 |
</xsl:choose> |
234 |
</xsl:choose> |
249 |
</xsl:template> |
235 |
</xsl:template> |
250 |
<xsl:template name="showRDAtag264helper"> |
236 |
<xsl:template name="showRDAtag264helper"> |
251 |
<xsl:param name="field"/> |
237 |
<xsl:param name="field"/> |
252 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
238 |
<xsl:variable name="ind2" select="$field/@ind2"/> |
253 |
<xsl:choose> |
239 |
<span class="results_summary"> |
254 |
<xsl:when test="$ind2='0'"> |
240 |
<xsl:choose> |
255 |
<span class="label">Producer: </span> |
241 |
<xsl:when test="$ind2='0'"> |
256 |
</xsl:when> |
242 |
<span class="label">Producer: </span> |
257 |
<xsl:when test="$ind2='1'"> |
243 |
</xsl:when> |
258 |
<span class="label">Publisher: </span> |
244 |
<xsl:when test="$ind2='1'"> |
259 |
</xsl:when> |
245 |
<span class="label">Publisher: </span> |
260 |
<xsl:when test="$ind2='2'"> |
246 |
</xsl:when> |
261 |
<span class="label">Distributor: </span> |
247 |
<xsl:when test="$ind2='2'"> |
262 |
</xsl:when> |
248 |
<span class="label">Distributor: </span> |
263 |
<xsl:when test="$ind2='3'"> |
249 |
</xsl:when> |
264 |
<span class="label">Manufacturer: </span> |
250 |
<xsl:when test="$ind2='3'"> |
265 |
</xsl:when> |
251 |
<span class="label">Manufacturer: </span> |
266 |
</xsl:choose> |
252 |
</xsl:when> |
267 |
<xsl:value-of select="$field/marc:subfield[@code='a']"/> |
253 |
<xsl:when test="$ind2='4'"> |
268 |
<xsl:text> </xsl:text> |
254 |
<span class="label">Copyright Date: </span> |
269 |
<xsl:value-of select="$field/marc:subfield[@code='b']"/> |
255 |
</xsl:when> |
270 |
<xsl:text> </xsl:text> |
256 |
</xsl:choose> |
271 |
<xsl:value-of select="$field/marc:subfield[@code='c']"/> |
257 |
<xsl:call-template name="subfieldSelect"> |
|
|
258 |
<xsl:with-param name="codes">abc</xsl:with-param> |
259 |
</xsl:call-template> |
260 |
</span> |
272 |
</xsl:template> |
261 |
</xsl:template> |
273 |
|
|
|
274 |
</xsl:stylesheet> |
262 |
</xsl:stylesheet> |
275 |
|
263 |
|
276 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
264 |
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp. |
277 |
- |
|
|