Bug 3870 - Nokia770 skin doesn't show tooltip for unknown album artwork
: Nokia770 skin doesn't show tooltip for unknown album artwork
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Skins
: 6.5b1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Ben Klaas
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-05 02:52 UTC by Nigel Birch
Modified: 2008-09-15 14:39 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel Birch 2006-08-05 02:52:14 UTC
This is with SlimServer v6.5b1 (r8806 - Windows XP - EN - cp1252).

When browsing albums with the Nokia770 skin, albums without any artwork (with a question mark image) don't show a mouse-over tooltip with the album name, artist name, date, etc.  Since the skin (by design) doesn't have text descriptions for albums, one can't tell what the album is without clicking on the album.

I'm not sure if you even get tooltips on the 770 itself (no mouse cursor?  perhaps tabbing the focus to an page element gives a tooltip?), so this might be a pointless bug for using the Nokia770 skin on the 770 itself.  I've not got a 770 (yet!) so sorry if that's the case.

Thanks.
Comment 1 Chris Owens 2006-08-07 13:33:03 UTC
Ben, it this tooltip issue Nigel describes by-design or is it a bug?
Comment 2 Ben Klaas 2006-08-07 14:27:57 UTC
this only affected the cover thumb that was in the upper-left corner of each page.

should be fixed with 8/8 daily build.
Comment 3 Nigel Birch 2006-08-08 01:54:42 UTC
With r8856, I'm still seeing this with question mark thumbs in the middle of the page and at the bottom right.  I've not got any at the top left (I'm sure I had before - perhaps the pagination/sort order changed between the nightly builds) so I can't confirm that case.
Comment 4 Chris Owens 2006-08-18 11:48:22 UTC
Ben, is Nigel's remaining issue still part of this bug?
Comment 5 Nigel Birch 2006-08-19 06:19:06 UTC
With today's nightly (r9056), I'm not seeing any artwork at all (in any skin) after a fresh install and wipe/re-scan.  So, I can't test to see if the behaviour is still the same.
Comment 6 Nigel Birch 2006-08-19 15:34:09 UTC
Not sure that was about, the but a clear and re-scan fixed the no artwork problem.  With r9056 I'm still seeing the behaviour in my 2006-08-08 comment.
Comment 7 Chris Owens 2006-08-25 09:35:43 UTC
Nigel,

So tooltips are mostly working now, but you're still not seeing them for albums in specific locations on the screen?  The middle and the bottom right?
Comment 8 Nigel Birch 2006-08-26 00:49:30 UTC
Yes, the tooltips work for albums that have album artork.  However, for those that don't have album artwork (so show the question mark place holder) the tooltips don't show.

Ben says he fixed the case where the question mark album was at the top-left, but I don't have that appear at the top-left (so I can't confirm).  I do have question mark albums in the middle of the page on the left-hand side (half-way down) that are still not showing tooltips.  This is on r9165.
Comment 9 Ben Klaas 2006-08-28 08:20:49 UTC
Nigel, what browser are you using? I get mouseover album/artist information for both albums with cover art and without cover art. This works fine in both Firefox and Opera.

Moving this to FIXED/WORKSFORME. If you feel that is in error, please reopen as needed.
Comment 10 Nigel Birch 2006-08-28 10:01:04 UTC
I'm testing with Firefox v1.5.0.6, Opera v9.0.1 on Windows XP Service Pack 2.  I've completely removed SlimServer and installed r9195 and I still see the same (browser cached cleared too).  I'll email you the page source from Firefox - the HTML for albums without artwork is different to those that have it.
Comment 11 KDF 2006-08-28 10:22:18 UTC
source for the page shows:

<img src = "/Nokia770/html/images/cover.png" border = '0' width="100" style='STYLE="border: 1px solid white"'></a>

so, there will be no tooltips for a page using this source. the cover.png image is called up when there is no artwork detected (as opposed to being unable to retrieve the expected artwork, which returns the question mark image data for teh thumb.jpg request)

I can repro, so I'll dig further
Comment 12 Ben Klaas 2006-08-28 10:28:33 UTC
thanks, KDF. What I'm seeing on my slimserver for covers with no artwork is this:

<img STYLE="border: 1px solid black" src="/music/5743/thumb_100x100_f_000000.jpg" alt="8 Track Stomp by Chickasaw Mud Puppies" title="8 Track Stomp by Chickasaw Mud Puppies"></a>

In skin-speak, I'm returning true from [% IF item.coverThumb %], while Nigel and yourself are not. That I don't understand, but the fix here is probably making it so there is still and alt and or title attribute to the img tag in cases where item.coverThumb returns false. I'm having trouble finding where that is... EN/cmdwrappers?

Comment 13 KDF 2006-08-28 10:34:09 UTC
ok, looks like the problem is in browsedb_artwork.html:

		[% IF item.coverThumb %]
			<a [% PROCESS browseDbItemHRef %]>
			[% PROCESS thumbnailItemImg height="100" width="100" style='STYLE="border: 1px solid black"' %]</a>
		[% ELSE %]
			<a [% PROCESS browseDbItemHRef %]>
			<img src = "[% webroot %]html/images/cover.png" border = '0' width="100" style='STYLE="border: 1px solid white"'></a>
		[% END %]

in the ELSE case, there is no title or alt.  

consider replacing the cover.png href with dummyItemImg from hreftemplate, like so:
[% PROCESS dummyItemImg height="100" width="100" style='STYLE="border: 1px solid black"' %]</a>


That seems to do the trick for me.
Comment 14 Ben Klaas 2006-08-28 10:38:57 UTC
I checked it in. Thanks as always for the assistance, KDF.
Comment 15 Nigel Birch 2006-08-29 07:33:02 UTC
Sorry. :)

With r9232 (after un-install, delete, re-install, clear cache) I'm still seeing the problem.  The source shows:

<img src = "/Nokia770/html/images/cover.png" border = '0' width="100" style='STYLE="border: 1px solid white"'></a>

Any other info I can gather?
Comment 16 Ben Klaas 2006-08-29 07:40:50 UTC
generated from the same portion of the IF clause, my img tag has alt and title attributes.
<img STYLE="border: 1px solid black" src="/html/images/cover.png" height="100" alt="Antics by Interpol"  title="Antics by Interpol">

I'm thinking this may have something to do with differences in server settings between our slimservers. Will investigate further.
Comment 17 Ben Klaas 2006-08-29 07:49:05 UTC
Nigel, can you confirm that lines 6-12 of HTML/Nokia770/browsedb_artwork.html look like this, particularly line 11 and the [% PROCESS dummyItemImg... part?

                [% IF item.coverThumb %]
                        <a [% PROCESS browseDbItemHRef %]>
                        [% PROCESS thumbnailItemImg height="100" width="100" style='STYLE="border: 1px solid black"' %]</a>
                [% ELSE %]
                        <a [% PROCESS browseDbItemHRef %]>
                        [% PROCESS dummyItemImg height="100" width="100" style='STYLE="border: 1px solid black"' %]</a>
                [% END %]

dummyItemImg is generated from EN/hreftemplate:
[%# img tag for album thumbnail in browse artwork context %]
[% BLOCK dummyItemImg -%]
 [% artistlist = ''; IF item.artist; itemobj=item.itemobj; artistlist = PROCESS artistsAsText.html; END %]
 [%- "<img $style src=\"/html/images/cover.png\" height=\"";height or 100;"\"" %]
 [%-    " alt=\"";item.item | html; artistlist ; IF item.year; " ($item.year)"; END; "\"" %]
 [%- " title=\"";item.item | html; artistlist ; IF item.year; " ($item.year)"; END; "\">" -%]
[%- END %]

If you didn't have artist or album attributes stored for a particular album/track, dummyItemImg should still product empty quote attributes for alt and title (alt = "" title = ""), but your previous post to this bug doesn't support this.

Comment 18 Nigel Birch 2006-08-29 08:02:04 UTC
No, my line 11 is:

<img src = "[% webroot %]html/images/cover.png" border = '0' width="100" style='STYLE="border: 1px solid white"'></a>

Replacing that with your line fixes it.  Thanks.

SVN shows the same:

http://svn.slimdevices.com/branches/6.5/server/HTML/Nokia770/browsedb_artwork.html?rev=9178&view=markup

It looks like your change was added at r9213 to trunk but after 6.5 was branched.  I'm on the 6.5 nightly, not the trunk.  So it needs copying from trunk to 6.5.  Would that be it?
Comment 19 Ben Klaas 2006-08-29 08:07:47 UTC
bingo, that's it.

I'm not very good at keeping up with the dev forum, so I hadn't realized the 6.5 branch had happened.

KDF and/or slimdevs, what's the approved procedure for checking things back to the 6.5 branch? Do I have permission to checkin on that branch?



Comment 20 KDF 2006-08-29 08:16:54 UTC
cache?
Comment 21 KDF 2006-08-29 08:20:11 UTC
you probably have permission.   check out a copy of trunk, and check out a copy of 6.5
(svn co https://svn.slimdevices.com/repos/slim/branches/6.5/server)

if you make a diff from your trunk changes, then test the trunk changes, you can apply the patch to 6.5 and commit.
6.5 should only get tested fixes.  NO new features.
Comment 22 Ben Klaas 2006-08-29 08:29:06 UTC
can't get the svn commit to work on 6.5. it just returns me to a prompt with no error. Checkin doesn't happen...

bklaas@mediumspicy /usr/local/slimserver6.5/HTML/Nokia770 $ svn commit -m "bugfix for bug 3870" browsedb_artwork.html
bklaas@mediumspicy /usr/local/slimserver6.5/HTML/Nokia770 $ 
Comment 23 KDF 2006-08-29 09:19:48 UTC
probably have to email dan on svn issues.
I'll merge the change when I get home tonight if it isn't resolved.  it will make it into tomorrow's build for sure.
Comment 24 KDF 2006-08-29 09:44:34 UTC
did the checkout for 6.5 work?
do you get anything with 'svn status', or 'svn diff' ?
Comment 25 Ben Klaas 2006-08-29 09:46:14 UTC
checkout worked, but both svn diff and svn status give no response, same as the svn commit did.
Comment 26 KDF 2006-08-29 10:00:24 UTC
ok, silly question.  did you make the change to browse_artwork after the checkout?
Comment 27 Ben Klaas 2006-08-29 10:04:09 UTC
silly questions are intended for silly people, of which I count myself a charter member. I *swear* I made the change, but sure enough I didn't. Many apologies for the wild goose chase.

Change is made and checked into 6.5.
Comment 28 Nigel Birch 2006-08-30 05:57:43 UTC
Looks good.  Ben/KDF - thanks.