Consistency: Static Page search results

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Consistency: Static Page search results

Post by Don Chambers »

Hopefully someone has more time than I do for this......

I've recently noticed something when searching. When searching for "question", and perhaps I get a single hit for 1 entry, and also 1 static page, I will see this:

For entries, I get: "Your search for question returned 1 results:"

The word "question" is enclosed in <span class="searchterm">. The result number 1 is enclosed in <span class="searchresults">.... and for emphasis, I have made those bold in this example (which I - and others - often do in stylesheets)

For static pages, I get this: "Found 1 static pages:". Note the search term is not mentioned, and the number 1 is not wrapped in <span class="searchresults">.....

This is really pathetic that I am looking this closely, but I wonder if these should be consistent.... meaning, give the staticpage_result_header the same text as exists for entries...... The text does not have to be identical, in fact, I think that static page results should continue to say "x static page(s)"... but perhaps it could also have the search term referenced, and place that, and the result count in the same span class? And instead of "found" it could be prefaced by the same "Your search for..."?

I know we have more pressing issues, but I thought this could be a nice fix for 1.4 while we are still in beta.
=Don=
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Re: Consistency: Static Page search results

Post by sonichouse »

Don Chambers wrote:I've recently noticed something when searching. When searching for "question", and perhaps I get a single hit for 1 entry, and also 1 static page, I will see this:

For entries, I get: "Your search for question returned 1 results:"
.....
For static pages, I get this: "Found 1 static pages:". Note the search term is not mentioned, and the number 1 is not wrapped in <span class="searchresults">.....
I am not convinced that the end user is really concerned whether the term is in a static page or an entry.

Would returning a combined result be better ?
Steve is occasionally blogging here
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Consistency: Static Page search results

Post by garvinhicking »

Hi!

This is solely related to the staticpage plugin, it has no dependencies on the 1.4 beta (so iit can be fixed independently from it).

For consistency, I also think that this could be added to the staticpage search output.
Would returning a combined result be better ?
Sadly the results cannot be combined, as they are two different result sets.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply