MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Can minivend go directly to flypage when the search returns only one item?



******    message to minivend-users from "David Ekholm" <info@minivend.com>     ******

>******    message to minivend-users from Dan Busarow <dan@dpcsys.com>
******
>
>On Tue, 16 Feb 1999, David Ekholm wrote:
>> Thanks, Birgitt, for your suggestion.  I agree, if I only want to search
by
>> ISBN, then what you suggested will work.  But I also want to be able to
>> search using title and author keywords.  If a particular book exists in
more
>> than one format, the result of the search should be a list - paperback,
>> hardcover, large print, etc.  However, if the book only exists in one
>> format, then I don't need to see a list containing one book.  It would be
>> better if I'm zapped right to the flypage for that book.  As I said, that
is
>> what Amazon does, and it actually makes a lot of sense for any product,
it
>> doesn't just apply to books.
>
>Don't have the code for you but I'd put both the normal results
>code and the flypage code into a single page wrapped with an
>if that test the value of mv_search_match_count
>
>Dan


Thanks, Dan, but I already tried that.  To repeat my original post (in case
you deleted it) :

[snip]

I've tried to put my flypage code in the results page as in:

[if value mv_search_match_count < 2]

[search-list] (flypage stuff) [/search-list]

[else]

[search-list] (result page stuff) [/search-list]

[/else][/if]

This works OK for a few items, but is really slow if > 20 items are returned
by the search.  I guess that minivend must go through the entire
[search-list] (flypage stuff) [/search-list] routine even though I want the
[if] tag to bypass this when there is more than 1 item.  The [if] tag
apparently just prevents the result from getting to the browser.

I've thought about trying the new [fly-list] tag, but I can't figure out how
to get the item code into it without going through the [search-list] tag.

I could also write a Perl routine to do it all, but that (for me) would be a
lot of work and I would feel very foolish if there is an easier way to do it
within minivend.  So I thought I'd ask the list first.

[/snip]


I confess, what I would really like is a search option that would jump to
the flypage if one item is returned.  I was hoping that it already existed
and I just couldn't find it in the docs.


David Ekholm
A Compleat Mystery Bookshop        Phone: 603-430-7553
7 Commercial Alley                 Fax: 603-430-9387
Portsmouth, NH 03801               Web: http://www.compleatmystery.com







-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: