Help with ArtistPerson Template

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
Roxie2401
Posts: 42
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 519 times
Last edited by Roxie2401 on Sat Oct 06, 2018 1:02 pm, edited 1 time in total.

Roxie2401
Posts: 42
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 25 times

User avatar
Alex Ivanovich
Posts: 313
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 499 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: 42
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: 313
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: 42
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 471 times

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

Re: Help with ArtistPerson Template

Post by Roxie2401 » Sat Nov 03, 2018 10:19 pm

I see the templates have been downloaded five times and a large number of views of this tread.

Any one come up with a solution or any idea what is causing the Format to not display correctly?

I'm at a total loss on this issue --- but I sure do like the Discography layout of this template and hate to abandon it.

Thanks

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

Re: Help with ArtistPerson Template

Post by Roxie2401 » Fri Jan 25, 2019 3:16 pm

Thought I would bump this up and see if anyone has more ideas.

I see that the templates have been downloaded 14 times since they were posted.

Anyone with suggestions on why the Format is not displaying correctly, I would appreciate the help very much. It is being "grouped" correctly and the format is correct - just additional data showing.

Thanks

User avatar
felldownawell
Posts: 12
Joined: Sat Aug 22, 2015 3:45 pm
Location: Chicago
Contact:

Re: Help with ArtistPerson Template

Post by felldownawell » Sat Feb 02, 2019 1:37 am

Change line 966 to:

Code: Select all

<xsl:value-of select="format/lookupdata/format"/>
Catraxx user since 2005

My Records

Turntable: Technics SL-1200 MK2
Cartridge: Shure M97xE
Preamp: Cambridge 540P
Tape Deck: Teac W-890R
Soundcard: Creative Sound Blaster ZxR
Recording: Adobe Audition CC 2018
Post-Production: iZotope RX 7

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

Re: Help with ArtistPerson Template

Post by Roxie2401 » Sat Feb 02, 2019 1:16 pm

WOW - Thank you so much! One line change and it works just fine.

Really appreciate everyone who looked at this and who offered suggestions, too.

This forum is great, as are all the CAT programs!!!

Post Reply