r1380@llin: dpavlin | 2007-10-30 22:57:36 +0100
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 30 Oct 2007 21:57:36 +0000 (21:57 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 30 Oct 2007 21:57:36 +0000 (21:57 +0000)
 pod tweaks

git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@917 07558da8-63fa-0310-ba24-9fe276d99e06

lib/WebPAC/Output/JSON.pm
lib/WebPAC/Output/KinoSearch.pm

index 939d295..d412448 100644 (file)
@@ -6,7 +6,6 @@ use strict;
 use base qw/WebPAC::Common WebPAC::Output Class::Accessor/;
 __PACKAGE__->mk_accessors(qw(path));
 
-#use Encode qw/from_to/;
 use Data::Dump qw/dump/;
 use JSON;
 use File::Slurp;
@@ -31,7 +30,7 @@ Create JSON output for export into other sistems
 
 =head2 new
 
- my $output = new WebPAC::Output::JSON({
+ my $out = new WebPAC::Output::JSON({
        path => '/path/to/file.js',
  });
 
@@ -47,7 +46,7 @@ path to JSON file
 
 =head2 init
 
-  $output->init;
+  $out->init;
 
 =cut
 
@@ -67,7 +66,7 @@ sub init {
 
 Adds one entry to database.
 
-  $est->add( 42, $ds );
+  $out->add( 42, $ds );
 
 =cut
 
@@ -89,7 +88,7 @@ sub add {
 
 =head2 finish
 
- $output->finish;
+ $out->finish;
 
 =cut
 
index 1a87496..98a200d 100644 (file)
@@ -42,7 +42,7 @@ type C<search>.
 
 Open KinoSearch index
 
- my $est = new WebPAC::Output::KinoSearch({
+ my $out = new WebPAC::Output::KinoSearch({
        path => '/path/to/invindex',
        database => 'demo',
        encoding => 'iso-8859-2',
@@ -69,6 +69,10 @@ index.
 
 =back
 
+=head2 init
+
+  $out->init;
+
 =cut
 
 sub init {
@@ -111,7 +115,7 @@ sub init {
 
 Adds one entry
 
-  $est->add( 42, $ds );
+  $out->add( 42, $ds );
 
 =cut
 
@@ -139,7 +143,7 @@ sub add {
 
 Close index
 
- $index->finish;
+ $out->finish;
 
 =cut
 
@@ -152,20 +156,6 @@ sub finish {
 
 }
 
-=head2 convert
-
- my $utf8_string = $self->convert('string in codepage');
-
-=cut
-
-sub convert {
-       my $self = shift;
-
-       my $text = shift || return;
-       from_to($text, $self->{encoding}, 'UTF-8');
-       return $text;
-}
-
 =head1 AUTHOR
 
 Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>