=head1 VERSION
-Version 0.07
+Version 0.08
=cut
-our $VERSION = '0.07';
+our $VERSION = '0.08';
=head1 SYNOPSIS
passwd => 'admin',
database => 'demo',
encoding => 'iso-8859-2',
+ clean => 1,
);
Options are:
my $url = $self->{masterurl} . '/node/' . $self->{database};
$self->{url} = $url;
- $log->debug("opening index $self->{url}");
+ if ($self->{clean}) {
+ $log->debug("nodedel $self->{database}");
+ $self->master( action => 'nodedel', name => $self->{database} );
+ } else {
+ $log->debug("opening index $self->{url}");
+ }
my $nodes = $self->master( action => 'nodelist' );
@labels = grep(/^$args->{to}\t/, @labels);
my $label = shift @labels;
- $label = split(/\t/, $label)->[1] if ($label);
+ (undef,$label) = split(/\t/, $label) if ($label);
if (! $label) {
$log->warn("can't find label for $args->{to}, skipping link creaton");
use WebPAC::Store 0.03;
use WebPAC::Normalize::XML;
use WebPAC::Output::TT;
-use WebPAC::Output::Estraier 0.05;
+use WebPAC::Output::Estraier 0.08;
use YAML qw/LoadFile/;
use Getopt::Long;
use File::Path;
my $est_config = $config->{hyperestraier} || $log->logdie("can't find 'hyperestraier' part in confguration");
$est_config->{database} = $database;
+ $est_config->{clean} = $clean;
- my $est = new WebPAC::Output::Estraier(
- %{ $est_config },
- );
-
- if ($clean) {
- $log->warn("creating new empty index $database");
- $est->master( action => 'nodedel', name => $database );
- $est->master( action => 'nodeadd', name => $database, label => $database );
- }
+ my $est = new WebPAC::Output::Estraier( %{ $est_config } );
#
# now WebPAC::Store