Before the end of 2017 the board will be down for a brief period of time for an upgrade.
Past experience says less than 30 minutes but I can't predict the future.
Also, there is a high probability that the forum will move to a different host, but that will not happen in 2017.
Thanks,
Doug

Help displaying Full Title in CATraxx standard templates

Discuss the powerful Explorer Templates used in the CAT programs
djrestlessmind
Posts: 7
Joined: Fri Sep 04, 2015 2:31 am

Help displaying Full Title in CATraxx standard templates

Postby djrestlessmind » Tue Apr 11, 2017 3:50 pm

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

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

Re: Help displaying Full Title in CATraxx standard templates

Postby Alex Ivanovich » Tue Apr 11, 2017 4:04 pm

hi djrestlessmind

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

joker
Posts: 7
Joined: Mon Apr 03, 2017 9:05 pm

Re: Help displaying Full Title in CATraxx standard templates

Postby joker » Tue Apr 11, 2017 4:12 pm

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"/>

djrestlessmind
Posts: 7
Joined: Fri Sep 04, 2015 2:31 am

Re: Help displaying Full Title in CATraxx standard templates

Postby djrestlessmind » Tue Apr 11, 2017 7:03 pm

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.

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

Re: Help displaying Full Title in CATraxx standard templates

Postby Alex Ivanovich » Wed Apr 12, 2017 9:31 am

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:

joker
Posts: 7
Joined: Mon Apr 03, 2017 9:05 pm

Re: Help displaying Full Title in CATraxx standard templates

Postby joker » Wed Apr 12, 2017 12:19 pm

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?

djrestlessmind
Posts: 7
Joined: Fri Sep 04, 2015 2:31 am

Re: Help displaying Full Title in CATraxx standard templates

Postby djrestlessmind » Wed Apr 12, 2017 1:32 pm

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 296 times

User avatar
LotsOCds
Posts: 169
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: Help displaying Full Title in CATraxx standard templates

Postby LotsOCds » Wed Apr 12, 2017 1:59 pm

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.
Cheers,
Dave

joker
Posts: 7
Joined: Mon Apr 03, 2017 9:05 pm

Re: Help displaying Full Title in CATraxx standard templates

Postby joker » Wed Apr 12, 2017 2:17 pm

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>

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

Re: Help displaying Full Title in CATraxx standard templates

Postby Alex Ivanovich » Wed Apr 12, 2017 2:55 pm

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 -->
Attachments
Screen Capture #037.png
Title+Version
Screen Capture #037.png (22.64 KiB) Viewed 286 times
Last edited by Alex Ivanovich on Wed Apr 12, 2017 4:01 pm, edited 4 times in total.


Return to “Explorer Templates”

Who is online

Users browsing this forum: No registered users and 1 guest