Page 1 of 1

CAT Audio Player XSL

Posted: Sun Jan 14, 2018 11:01 am
by Peerli
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

Re: CAT Audio Player XSL

Posted: Mon Jan 29, 2018 1:53 pm
by Alex Ivanovich
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:

Re: CAT Audio Player XSL

Posted: Tue Jan 30, 2018 9:01 pm
by Peerli
Cat_Audioplayer2.jpg
Cat_Audioplayer2.jpg (64.5 KiB) Viewed 1112 times
Cat_Audioplayer.jpg
Cat_Audioplayer.jpg (216.44 KiB) Viewed 1112 times
Thanks for your help.

Regards
Peer

Re: CAT Audio Player XSL

Posted: Wed Jan 31, 2018 8:02 am
by Alex Ivanovich
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>

Re: CAT Audio Player XSL

Posted: Thu Feb 01, 2018 3:36 pm
by Peerli
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

Re: CAT Audio Player XSL

Posted: Thu Feb 01, 2018 3:54 pm
by Alex Ivanovich
you're welcome :)

thanks my teacher (Dave) ;)

Re: CAT Audio Player XSL

Posted: Tue Feb 12, 2019 7:58 pm
by Cally
Hello to all catraxx-lovers,

is it possible to show in player-xsl the field track-memo?
I would like to place it instead of the "personal rating".

Thanks a lot
Martin

Re: CAT Audio Player XSL

Posted: Wed Feb 13, 2019 9:10 am
by gschoene
Hi Calli,
shure you can. Add this to your audio player xsl. It's just a modification of the lyrics section.

Code: Select all

            <!-- notes -->
            <tr>
              <td class="audioplayer_fieldname">
                <xsl:value-of select="/data/fld/track/notes/@name"/>
              </td>
            </tr>            
            <tr>         
              <td class="audioplayer_fieldvalue">
                <table cellpadding="0" cellspacing="0">
                <tr>
                <td>
                  <xsl:if test="/data/record/trackdata/notes!=''">
                  <xsl:call-template name="add-line-breaks">
                    <xsl:with-param name="string" select="/data/record/trackdata/notes"/> 
                  </xsl:call-template>                  
                  <br/>
                  </xsl:if>
                  <a href="CMD:EDITMEMO:track,notes,{/data/record/trackdata/trackid/@unformatted}"><img src="EditMemo.gif" class="audioplayer_editnotes_image" border="0"/></a>
                  </td></tr>
                </table>        
              </td>
            </tr>
Have fun.

Re: CAT Audio Player XSL

Posted: Wed Feb 13, 2019 9:17 pm
by Cally
Danke Günter,

werde es probieren und berichten...

Grüße, Martin