[Solved] Person Credits - status biography icon wrong

Discuss using and your tips/tricks for BookCAT
Post Reply
User avatar
Alex Ivanovich
Posts: 307
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

[Solved] Person Credits - status biography icon wrong

Post by Alex Ivanovich » Wed Sep 30, 2015 2:24 pm

Hi Dave
in "Person Credits" icon that indicates that the biography and complete and wrong :roll:
I put some screenshots to do and figure out what the problem :|

thank you ;)

Icon explanation: :idea:

icon indicating that the biography and complete Image

icon indicating that the biography and missing Image

Personaggio= Author

Image

Image

Image

Image
Last edited by Alex Ivanovich on Sat Oct 03, 2015 7:20 pm, edited 1 time in total.

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

Re: Person Credits - status biography icon wrong

Post by Alex Ivanovich » Wed Sep 30, 2015 5:49 pm

LotsOCds wrote:Alex,

I noticed that in Person_Credits.xsl you added

Code: Select all

<?data lookuptable="person"?>
This is not needed. It causes BookCAT to generate the same person information twice. The template will run faster if you delete it.
I found the problem :|
but if I enter the code, the template loads more slowly :roll: (I think, I have not timed) :roll:


alternatives? :idea:

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

Re: Person Credits - status biography icon wrong

Post by LotsOCds » Sat Oct 03, 2015 6:27 pm

The problem is that the Biography information does not exist in the XML created when you generate Person_Credits. Adding data lookuptable=person causes all of the person information to be pulled into the XML. If you want to have the biography icons then you will need to add data lookuptable=person to the necessary templates.

I have attached a version of Common.xsl that deals more gracefully with the existence, or not, of the lookupdata. This way you will not get an incorrect icon showing up.
Attachments
Common.zip
(2.6 KiB) Downloaded 42 times
Cheers,
Dave

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

Re: Person Credits - status biography icon wrong

Post by Alex Ivanovich » Sat Oct 03, 2015 7:05 pm

Thanks Dave, ;)
It works now

But I had to put in the code Person_Credits :roll:

Code: Select all

<?data lookuptable="person"?>
right? :roll:

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

Re: Person Credits - status biography icon wrong

Post by LotsOCds » Sat Oct 03, 2015 7:18 pm

Yes.
Cheers,
Dave

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

Re: [Solved] Person Credits - status biography icon wrong

Post by Alex Ivanovich » Sat Oct 03, 2015 7:20 pm

Grazie ancora :D

Post Reply