Page 1 of 2

Help displaying Full Title in CATraxx standard templates

Posted: Tue Apr 11, 2017 3:50 pm
by djrestlessmind
Hi everyone,

Can someone please assist me in editing the following standard templates to display Full Title instead of Title?

Thanks in advance!

DJRM

TrackList.xsl
TrackList_Covers.xsl
TrackList_SongwriterRoles.xsl
TrackList_ConductorRoles.xsl
TrackList_ProductionRoles.xsl
TrackList_BandMemberInstruments.xsl
TrackList_GuestMusicianInstruments.xsl

Re: Help displaying Full Title in CATraxx standard templates

Posted: Tue Apr 11, 2017 4:04 pm
by Alex Ivanovich
hi djrestlessmind

what does it mean? :?
you can put some screenshots of what would you get? :roll:

Re: Help displaying Full Title in CATraxx standard templates

Posted: Tue Apr 11, 2017 4:12 pm
by joker
djrestlessmind wrote:Hi everyone,

Can someone please assist me in editing the following standard templates to display Full Title instead of Title?

Thanks in advance!

DJRM

TrackList.xsl
TrackList_Covers.xsl
TrackList_SongwriterRoles.xsl
TrackList_ConductorRoles.xsl
TrackList_ProductionRoles.xsl
TrackList_BandMemberInstruments.xsl
TrackList_GuestMusicianInstruments.xsl



Just replace <xsl:value-of select="title"/> with <xsl:value-of select="fulltitle"/>

Re: Help displaying Full Title in CATraxx standard templates

Posted: Tue Apr 11, 2017 7:03 pm
by djrestlessmind
joker wrote:
Just replace <xsl:value-of select="title"/> with <xsl:value-of select="fulltitle"/>


Hmmm... In TrackList.xsl, on line 201, I replaced

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="title"/></a>

with

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>

and it didn't seem to work.

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 9:31 am
by Alex Ivanovich
I still do not understand, what do you see? :?
the title is fully displayed (at least in my database) :roll:
post a screenshot to make me understand :idea:

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 12:19 pm
by joker
djrestlessmind wrote:
joker wrote:
Just replace <xsl:value-of select="title"/> with <xsl:value-of select="fulltitle"/>


Hmmm... In TrackList.xsl, on line 201, I replaced

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="title"/></a>

with

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>

and it didn't seem to work.

As I understood you, fulltitle means "Title"- and "Version"-field should be displayed together. Like this:

"Title [Version]" means "Love Me Do [2. Version]"? If you replace the title with fulltitle you have this result.

Or want you something different?

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 1:32 pm
by djrestlessmind
joker wrote:As I understood you, fulltitle means "Title"- and "Version"-field should be displayed together. Like this:

"Title [Version]" means "Love Me Do [2. Version]"? If you replace the title with fulltitle you have this result.

Or want you something different?


Yes, joker, you are correct. I've included a screenshot for those who asked for it. I will try editing the templates again.

Thank you.

Snap5.png
Snap5.png (187.45 KiB) Viewed 294 times

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 1:59 pm
by LotsOCds
djrestlessmind wrote:
joker wrote:
Just replace <xsl:value-of select="title"/> with <xsl:value-of select="fulltitle"/>


Hmmm... In TrackList.xsl, on line 201, I replaced

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="title"/></a>

with

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>

and it didn't seem to work.

The problem is in the context of line 201 where you changed "title" to "fulltitle".

Code: Select all

    <xsl:choose>
      <xsl:when test="//data/recordset/sortorder/sortorderitem[1]/field/@dbfld='Title'">
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="titlesort"/></a>
      </xsl:when>
      <xsl:otherwise>
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>
      </xsl:otherwise>
    </xsl:choose>     

What is being displayed is the "titlesort" value. That is because the track list is initially sorted on the Title. If you click on the Artist column header to resort the list you should then see the "fulltitle" values in the Title column.

Change "titlesort" to "fulltitle" in line 198 and you should get the "fulltitle" all the time.

Hope that helps.

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 2:17 pm
by joker
LotsOCds wrote:
djrestlessmind wrote:
joker wrote:
Just replace <xsl:value-of select="title"/> with <xsl:value-of select="fulltitle"/>


Hmmm... In TrackList.xsl, on line 201, I replaced

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="title"/></a>

with

<a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>

and it didn't seem to work.

The problem is in the context of line 201 where you changed "title" to "fulltitle".

Code: Select all

    <xsl:choose>
      <xsl:when test="//data/recordset/sortorder/sortorderitem[1]/field/@dbfld='Title'">
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="titlesort"/></a>
      </xsl:when>
      <xsl:otherwise>
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="fulltitle"/></a>
      </xsl:otherwise>
    </xsl:choose>     

What is being displayed is the "titlesort" value. That is because the track list is initially sorted on the Title. If you click on the Artist column header to resort the list you should then see the "fulltitle" values in the Title column.

Change "titlesort" to "fulltitle" in line 198 and you should get the "fulltitle" all the time.

Hope that helps.


So simple!

I was ready to post this up, but you Dave had the better solution.

<xsl:choose>
<xsl:when test="//data/recordset/sortorder/sortorderitem[1]/field/@dbfld='Version'">
<a href="Track.xsl?ID={../@id}"><xsl:value-of select="version"/></a>
</xsl:when>
<xsl:otherwise>
<a href="Track.xsl?ID={../@id}"> [<xsl:value-of select="version"/>]</a>
</xsl:otherwise>
</xsl:choose>

Re: Help displaying Full Title in CATraxx standard templates

Posted: Wed Apr 12, 2017 2:55 pm
by Alex Ivanovich
also this work :)

Code: Select all

<td class="list_table_fieldvalue">
    <xsl:choose>
      <xsl:when test="//data/recordset/sortorder/sortorderitem[1]/field/@dbfld='Title'">
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="titlesort"/></a>
      </xsl:when>
      <xsl:otherwise>
        <a href="Track.xsl?ID={../@id}"><xsl:value-of select="title"/></a>
      </xsl:otherwise>
    </xsl:choose> 
    <xsl:text>  </xsl:text><xsl:if test="version!=''"><xsl:value-of select="version"/></xsl:if> <!-- Title+Version -->