package BookPub::RDAS::Request::ProductSearch::BarnesNoble;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::RDAS::Request::ProductSearch';

use BookPub::RDAS::Parser::ProductSearch::BarnesNoble;

sub userAgent { 'iPhone 3.0' }

sub _getParserObject {
    my $self = shift;
    return new BookPub::RDAS::Parser::ProductSearch::BarnesNoble(@_);
}
sub _getResponseObject { }

sub Author {
    my $self   = shift            || return;
    my $parser = $self->{_parser} || return;

    return $parser->Author;
}

sub URL {
    my $self = shift;
    my $parser = $self->{_parser} || return;

    return if ( $parser->Availablity() && $parser->Availablity =~ /not available/i );

    return $self->SUPER::URL();
}

1;
