package BookPub::RDAS::Parser::ProductPrice::Apple::Search;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::RDAS::Parser::ProductPrice::Apple';

sub _customFieldConfig {
    {
        ResultCount => {
            required => 1,
            tag      => 'div',
            class    => 'resultList-header',

            filter => sub {
                my $res = shift;
                $res =~ /(\d+) result/;
                return $1;
            }
        },

        Status => {
            tag       => 'div',
            class     => 'resultList',
            container => 'BookPub::RDAS::Parser::ProductPrice::Apple::Item::SearchStatus',
        },

        URL => {
            required  => 1,
            tag       => 'td',
            class     => 'add-on-col-0',
            container => 'BookPub::RDAS::Parser::ProductSearch::Apple::URL',
        },
    };
}

1;
