3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use WebPAC::Common; |
use WebPAC::Common 0.03; |
7 |
use base qw/WebPAC::Common/; |
use base qw/WebPAC::Common/; |
8 |
use Text::Iconv; |
use Text::Iconv; |
9 |
use Data::Dumper; |
use Data::Dumper; |
65 |
code_page => 'ISO-8859-2', |
code_page => 'ISO-8859-2', |
66 |
low_mem => 1, |
low_mem => 1, |
67 |
recode => 'char pairs', |
recode => 'char pairs', |
68 |
|
no_progress_bar => 1, |
69 |
); |
); |
70 |
|
|
71 |
C<module> is low-level file format module. See L<WebPAC::Input::Isis> and |
C<module> is low-level file format module. See L<WebPAC::Input::Isis> and |
77 |
|
|
78 |
Default is not to use C<low_mem> options (see L<MEMORY USAGE> below). |
Default is not to use C<low_mem> options (see L<MEMORY USAGE> below). |
79 |
|
|
80 |
|
C<recode> is optional string constisting of character or words pairs that |
81 |
|
should be replaced in input stream. |
82 |
|
|
83 |
|
C<no_progress_bar> disables progress bar output on C<STDOUT> |
84 |
|
|
85 |
This function will also call low-level C<init> if it exists with same |
This function will also call low-level C<init> if it exists with same |
86 |
parametars. |
parametars. |
87 |
|
|
279 |
# create lookup |
# create lookup |
280 |
$self->{'lookup'}->add( $rec ) if ($rec && $self->{'lookup'}); |
$self->{'lookup'}->add( $rec ) if ($rec && $self->{'lookup'}); |
281 |
|
|
282 |
$self->progress_bar($pos,$to_rec); |
$self->progress_bar($pos,$to_rec) unless ($self->{no_progress_bar}); |
283 |
|
|
284 |
} |
} |
285 |
|
|
325 |
return; |
return; |
326 |
} |
} |
327 |
|
|
328 |
$self->progress_bar($mfn,$self->{max_pos}); |
$self->progress_bar($mfn,$self->{max_pos}) unless ($self->{no_progress_bar}); |
329 |
|
|
330 |
my $rec; |
my $rec; |
331 |
|
|