- If track year is different than album year, shows the track year
- If track year is equal to album year, shows the album year
- If track year and album year are undefined (empty), shows "Unknown"
Code: Select all
New code for track/album/unknown year:
<!-- !SB -->
<!-- ======================================== -->
<!-- Album or track release year -->
<!-- ======================================== -->
<xsl:choose>
<!-- Album and track year unknown -->
<xsl:when test="/data/record/trackdata/released/@year='' and /data/record/albumdata/released/@year=''">
<xsl:text>Unknown year (Track & album)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- If album and track year are different, show track year... -->
<xsl:when test="/data/record/trackdata/released/@year!=/data/record/albumdata/released/@year and /data/record/trackdata/released/@year!=''">
<xsl:value-of select="/data/record/trackdata/released/@year"/>
<xsl:text> (Track)</xsl:text>
</xsl:when>
<!-- ...otherwise show album year... -->
<xsl:otherwise>
<xsl:value-of select="/data/record/albumdata/released/@year"/>
<xsl:text> (Album)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<!-- ======================================== -->
<!-- End of Addition -->
<!-- ======================================== -->
<!-- SB! -->
insert immediatly after:
<a href="TrackList_Songwriter.xsl?Title={/data/record/trackdata/title}@validate=yes,2,3@orderby=artist,title@xslparam:doctitle={/data/fld/track/title/@name}: {/data/record/trackdata/title}" target="_blank">
<img border="0" src="GoToPage.gif"/>
</a>
</td>
</tr>
it should be inserted immediatly after row 106 in the original template