||g;
$html =~ s|$1|gs;
$html =~ s|]*>Tytuł | \s*]*>([^<]*)| | $1|gs;
$html =~ s| | ]*>Adres wyd. | \s*| | |gs;
}
else
{
$html =~ s|?strong>||gi;
$html =~ s|?i>||gi;
$html =~ s|?br>||gi;
$html =~ s| | ]*>Tytuł | \s*\s*]*>([^<]*)| | $1|gs;
$html =~ s| | ]*>Strefa serii | \s*\s*]*>([^<]*)| | $1|gs;
$html =~ s| | ]*>Adres wydawniczy | \s*| | |gs;
$html =~ s| | ]*>Opis fizyczny | \s*| | |gs;
$html =~ s| | ]*>Oznaczenie wydania | \s*| | |gs;
$html =~ s| | ]*>ISBN | \s*| | |gs;
}
return $html;
}
sub getSearchUrl
{
my ($self, $word) = @_;
my $bubu;
if ($self->{searchField} eq 'isbn')
{
$bubu = "7";
$self->{searchISBN} = $word;
}
else
{
$bubu = "4";
$self->{searchISBN} = "";
}
$searchURL = "http://www.nukat.edu.pl/cgi-bin/gw_43_3/chameleon?host=193.0.118.2%2b1111%2bDEFAULT&search=KEYWORD&function=INITREQ&conf=.%2fchameleon.conf&lng=pl&u1=".$bubu."&t1=".$word;
return $searchURL;
}
sub getItemUrl
{
my ($self, $url) = @_;
return $url if $url;
return 'http://www.nukat.edu.pl/';
}
sub getName
{
return "NUKat";
}
sub getCharset
{
my $self = shift;
return "UTF-8";
#return "ISO-8859-2";
}
sub getAuthor
{
return 'WG';
}
sub getLang
{
return 'PL';
}
sub getSearchFieldsArray
{
return ['isbn', 'title'];
}
}
1;
|