Bug 21683: Remove accountlines.accountno
[koha.git] / misc / cronjobs / sitemap.pl
index 0d61531..80c01fd 100755 (executable)
@@ -49,17 +49,16 @@ unless ($url) {
         say "OPACBaseURL syspref isn't defined. You can use --url parameter.";
         exit;
     }
-    $url = 'http://' . $url;
 }
 $url =~ s/\/*$//g;
 
-my $sitemaper = Koha::Sitemapper->new(
+my $sitemapper = Koha::Sitemapper->new(
     verbose => $verbose,
     url     => $url,
     dir     => $dir,
     short   => $short,
 );
-$sitemaper->run();
+$sitemapper->run();
 
 
 =head1 USAGE
@@ -73,7 +72,8 @@ $sitemaper->run();
 =head1 SYNOPSIS
 
   sitemap.pl --verbose
-  sitemap.pl --noshort --url /home/koha/mylibrary/www
+  sitemap.pl --noshort --dir /home/koha/mylibrary/www
+  sitemap.pl --url opac.myDNSname.org
 
 =head1 DESCRIPTION