NAME

WWW::Search::Scraper::FieldTranslation - Canonical form for Scraper FieldTranslations

SYNOPSIS

use WWW::Search::Scraper::FieldTranslation;

$FieldTranslation = new WWW::Search::Scraper::FieldTranslation( $requestType, $engineType );

DESCRIPTION

METHODS

debug

The debug method sets the debug tracing level to the value of its first parameter.

TRANSLATIONS

PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER
PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER
PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER
PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER PLACEHOLDER
The Scraper modules that do table driven field translations (from canonical FieldTranslations to native FieldTranslations) will have
files included in their package representing the translation table in Storable format. The names of these files are
<ScraperModuleName>.<FieldTranslationType>.<canonicalFieldName>. E.G., Brainpower.pm owns a translation table for the 'locations'
field of the canonical FieldTranslation::Job module; it is named C<Brainpower.Job.locations> . 

The Scraper module will locate the translation file, when required, by searching the @INC path-search until it is found (the same path-search Perl uses to locate Perl modules.)

set<fieldName>Translation()

The methods set<fieldName>Translations() can be used to help maintain these translation files. For instance, setLocationsTranslation('canonical', 'native') will establish a translation from 'canonical' to 'native' for the 'locations' FieldTranslation field.

setLocationsTranslation('CA-San Jose', 5);       # CA-San Jose => '5'
setLocationsTranslation('CA-San Jose', [5,6]);   # CA-San Jose => '5' + '6'

If you have used this method to upgrade your translations, then a new upgrade of WWW::Search::Scraper will probably over-write your tranlation file(s), so watch out for that! Back up your translation files before upgrading WWW::Search::Scraper!

AUTHOR

WWW::Search::Scraper::FieldTranslation is written and maintained by Glenn Wood, http://search.cpan.org/search?mode=author&query=GLENNWOOD.

COPYRIGHT

Copyright (c) 2001 Glenn Wood All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.