The problem with the display appears to be rooted in the script you're using for that view in Album List Panel. Post that script if you want help figuring out what's causing it.
There doesn't appear to be any problem with the script you posted. I tested it in Grouping and as a column and it displayed correctly. I couldn't test it in Album List Panel, obviously, as I would need the entire script.
I'm wondering how I can adjust the code so that it will display ten grey stars for an %album rating% of 0 rather than the x's. Here's the current code:
$puts(mychar,$char(9733)$char(8202))
$rgb(245,175,92,225,155,72)
$ifgreater(%album rating%,0,
$repeat($get(mychar),%album rating%)
$repeat($rgb(230,230,230,210,210,210)$get(mychar),$sub(10,%album rating%))
,
$repeat($rgb(230,230,230,210,210,210)$get(mychar),10)
)
That works because a nonexistent tag essentially evaluates to 0. However, there will no longer be any differentiation between unrated albums and albums rated "0". Two different conditions evaluating to 'unrated' might lead to unnecessarily complex scripts. I suggest removing the "0" ratings and allow your unrated albums to be truly unrated. You could use the following script instead:
$puts(mychar,$char(9733)$char(8202))
$rgb(245,175,92,225,155,72)
$if(%album rating%,
$repeat($get(mychar),%album rating%)
$repeat($rgb(230,230,230,210,210,210)$get(mychar),$sub(10,%album rating%))
,
$repeat($rgb(230,230,230,210,210,210)$get(mychar),10)
)
As far as the script for Album List Panel is concerned, as a first tier you could simply use:
$if2(%album rating%,0)|
And as far as querying for unrated albums in a search is concerned, you can use:
%album rating% MISSING