CAT Audio Player XSL

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
Peerli
Posts: 10
Joined: Sun Sep 06, 2015 3:54 pm

CAT Audio Player XSL

Post by Peerli » Sun Jan 14, 2018 11:01 am

Hallo.
Ich möchte gern beim Audio Player von CATraxx ein paar Änderung bzw. Ergänzungen einfügen, scheitere aber an der Ausführung.
I would like to insert a few changes or additions to the audio player of CATraxx, but fail because of the execution.

Ich möchte unterhalb des momentanen Titel das dazugehörige Release Year hinzufügen.
I would like to add the corresponding Release Year below the current title.

Code: Select all

<td valign="top" class="audioplayer_artist_title">
          <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td>
                <xsl:call-template name="format-artist">
                  <xsl:with-param name="artists" select="/data/record/trackdata/artists"/>
                  <xsl:with-param name="newwindow" select="'True'"/>
                  <xsl:with-param name="hyperlink" select="'True'"/>
                  <xsl:with-param name="templatefile" select="'IMAGECAROUSEL'"/>
                  <xsl:with-param name="favoriteplaylink" select="'True'"/>
                  <xsl:with-param name="favoriteplaylink_ratingvalue" select="'5'"/>
                </xsl:call-template>
              </td>
            </tr>
            <tr height="3">
              <td>
              </td>
            </tr>
            <tr>
              <td>
                <a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
                <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> 

	    <tr>
              <td>
                <a href="Track.xsl" target="_blank"><xsl:value-of select="/data/fld/track/released/@name"/></a><xsl:text> </xsl:text>
                <a href="TrackList._Released.xsl?Released={/data/fld/track/released/@name}: {released/@year}" target="_blank">
                  <<xsl:value-of select="released"/>
                </a>                
              </td>
            </tr>

          </table>
Wo liegt hier der Fehler?
Where is the error?

Regards
Peer

User avatar
Alex Ivanovich
Posts: 293
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CAT Audio Player XSL

Post by Alex Ivanovich » Mon Jan 29, 2018 1:53 pm

Hi Peerli,

you can enter some screenshots to better explain where you want to change :roll:
I do not use CATraxx (I use BookCAT) :|

maybe I can help you :roll:

Peerli
Posts: 10
Joined: Sun Sep 06, 2015 3:54 pm

Re: CAT Audio Player XSL

Post by Peerli » Tue Jan 30, 2018 9:01 pm

Cat_Audioplayer2.jpg
Cat_Audioplayer2.jpg (64.5 KiB) Viewed 506 times
Cat_Audioplayer.jpg
Cat_Audioplayer.jpg (216.44 KiB) Viewed 506 times
Thanks for your help.

Regards
Peer

User avatar
Alex Ivanovich
Posts: 293
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CAT Audio Player XSL

Post by Alex Ivanovich » Wed Jan 31, 2018 8:02 am

Hi Peerli,

this work ;)

open AudioPlayer.xsl
find this line

Code: Select all

<td>
                <a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
                <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>          
          </table>
insert after table

Code: Select all

 <xsl:text> </xsl:text>
		   <xsl:if test="/data/record/trackdata/released/@year!=''">
        <xsl:value-of select="/data/record/trackdata/released/@year"/>
      </xsl:if>
Attachments
CATraxx Audio Player - _Musica.mdb 2018-01-31 11.00.18.png
CATraxx Audio Player - _Musica.mdb 2018-01-31 11.00.18.png (76.26 KiB) Viewed 493 times

Peerli
Posts: 10
Joined: Sun Sep 06, 2015 3:54 pm

Re: CAT Audio Player XSL

Post by Peerli » Thu Feb 01, 2018 3:36 pm

Hi Alex.
Thanx.

Code: Select all

<tr>
              <td>
                <a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
                <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>
	    <tr>
		<td>
		<xsl:text> </xsl:text>
		   <xsl:if test="/data/record/trackdata/released/@year!=''">
        		<xsl:value-of select="/data/record/trackdata/released/@year"/>
      		</xsl:if>
		             
              </td>
            </tr> 
Regards
Peer

User avatar
Alex Ivanovich
Posts: 293
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: CAT Audio Player XSL

Post by Alex Ivanovich » Thu Feb 01, 2018 3:54 pm

you're welcome :)

thanks my teacher (Dave) ;)

Post Reply