Help with ArtistPerson Template

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
Roxie2401
Posts: 39
Joined: Sun Dec 27, 2015 11:23 pm

Help with ArtistPerson Template

Post by Roxie2401 » Fri Sep 21, 2018 2:58 pm

I have been attempting to modify a Discography section in the ArtistPerson template and have everything working except for displaying the Album Format correctly. I think this may be somehow related to a section where we are grouping the albums by FormatGroup.

I know on line 996 <xsl:value-of select="format"/> I can change format to other entries (status, catalognumber, etc.) and they show correctly. Only format gives me incorrect display (correct format, but additional data).

Attached is the full ArtistPerson template (which has borrowed many sections from others). Also, if I insert Dave's ArtistPersonDiscography template, which has similar code (but not the FormatGroup), the data reads correctly.

Note: I removed the attachment - it was calling other templates from Common.xsl, etc. and would not run on other's systems. See posting below for a download with those sections disabled to help with troubleshooting this issue.

I'm stuck - any help would be appreciated. Thanks!
Clipboard01.jpg
Clipboard01.jpg (46.64 KiB) Viewed 142 times
Last edited by Roxie2401 on Sat Oct 06, 2018 1:02 pm, edited 1 time in total.

Roxie2401
Posts: 39
Joined: Sun Dec 27, 2015 11:23 pm

Re: Help with ArtistPerson Template

Post by Roxie2401 » Wed Sep 26, 2018 3:00 pm

For anyone who may be able to help, I have attached a new ArtistPerson_Tom_Modified.xsl as well as the correct Style Sheet (style-Tom) so you can actually see what I am seeing.

The original ArtistPerson_Tom.xsl was calling other templates, etc. that would make it difficult to run on another system.

Maybe having those areas inactive (commented out) and displaying with the proper style sheet will help in working on the "format" issue in the Discography table.

The attached zip file contains both the ArtistPerson_Tom_Modified and the style-tom templates.

Hope someone can figure this out.

Thanks very much!
ArtistPerson_Tom_Modified.zip
(7.23 KiB) Downloaded 3 times

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

Re: Help with ArtistPerson Template

Post by Alex Ivanovich » Thu Sep 27, 2018 12:13 pm

ArtistPerson.PNG
ArtistPerson.xsl modified
ArtistPerson.PNG (108.32 KiB) Viewed 122 times
Hi Roxie2401 :)

I have this modified by me to display the "Format" :)

(Original by Dave)
what do you think about it :roll:

code to display "Format"

Code: Select all

<!-- codice by Alex Ivanovich -->
	  <td style="font-size:small">
        <B>Format</B>
      </td>
<!-- codice by Alex Ivanovich -->

Code: Select all

<!-- codice by Alex Ivanovich -->
	<td class="list_table_format" style="font-size:x-small;">
      <xsl:value-of select="format"/>
<!-- codice by Alex Ivanovich -->

Roxie2401
Posts: 39
Joined: Sun Dec 27, 2015 11:23 pm

Re: Help with ArtistPerson Template

Post by Roxie2401 » Thu Sep 27, 2018 2:01 pm

Alex,

I understand what you did - but I would really like to keep the items "grouped" by format, using "FormatGroup."

I know that the grouping is probably causing the issue with how the format data is being displayed. It is being read correctly, i.e., CD, Reel-to-Reel, LP, etc.

If you have time, take a look at the modified files I attached recently (ArtistPerson_Tom_Modified & the style-Tom).

Maybe Dave will see this and figure out how to keep the "Grouping" and "Format"

Thanks so much for your work on this!

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

Re: Help with ArtistPerson Template

Post by Alex Ivanovich » Fri Sep 28, 2018 8:30 am

it would take Dave's help, he is very experienced :)
I taught him many things ;)
unfortunately and a lot that does not write in this forum :|
Dave returns...Please :|

Roxie2401
Posts: 39
Joined: Sun Dec 27, 2015 11:23 pm

Re: Help with ArtistPerson Template

Post by Roxie2401 » Fri Sep 28, 2018 1:39 pm

Alex, Thanks for the help.

I'm not a progammer but to me it looks like my ArtistPerson_Tom_Modified is not only populating the actual "Format" but also all the data from the Format table -- Format, FormatID, Format, Sortby, and Format Group." See attached - lookup view Format.

Reel-to-Reel 20 Yes Reel-to-Reel Reel-to-Reel Reel-to-Reel 0

I, like you, hope Dave or others will see this and maybe give some guidance on the template.

Clipboard03.jpg
Clipboard03.jpg (94.94 KiB) Viewed 94 times

Post Reply