Bug 16751: What is sitemaper?
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 16 Jun 2016 11:03:30 +0000 (13:03 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Jun 2016 13:19:06 +0000 (13:19 +0000)
s/sitemaper/sitemapper/

Test plan:
Run t/db_dependent/Sitemapper.t

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/sitemap.pl
t/db_dependent/Sitemapper.t

index 2a57706..80c01fd 100755 (executable)
@@ -52,13 +52,13 @@ unless ($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
index c53ac8e..a1ea4f8 100755 (executable)
@@ -73,13 +73,13 @@ my $data = [
 ];
 fixtures($data);
 # Create a sitemap for a catalog containg 2 biblios, with option 'long url'
-my $sitemaper = Koha::Sitemapper->new(
+my $sitemapper = Koha::Sitemapper->new(
     verbose => 0,
     url     => 'http://www.mylibrary.org',
     dir     => $dir,
     short   => 0,
 );
-$sitemaper->run();
+$sitemapper->run();
 
 my $file = "$dir/sitemapindex.xml";
 ok( -e "$dir/sitemapindex.xml", "File sitemapindex.xml created");
@@ -120,13 +120,13 @@ is( $file_content, $expected_content, "Its content is valid" );
 
 # Create a sitemap for a catalog containg 2 biblios, with option 'short url'.
 # Test that 2 files are created.
-$sitemaper = Koha::Sitemapper->new(
+$sitemapper = Koha::Sitemapper->new(
     verbose => 0,
     url     => 'http://www.mylibrary.org',
     dir     => $dir,
     short   => 1,
 );
-$sitemaper->run();
+$sitemapper->run();
 
 $file = "$dir/sitemap0001.xml";
 ok( -e $file, "File sitemap0001.xml with short URLs created");
@@ -154,13 +154,13 @@ is( $file_content, $expected_content, "Its content is valid" );
 $data = [];
 push @$data, [ $_, '2015-08-31', '2015-08-31'] for 3..75000;
 fixtures($data);
-$sitemaper = Koha::Sitemapper->new(
+$sitemapper = Koha::Sitemapper->new(
     verbose => 0,
     url     => 'http://www.mylibrary.org',
     dir     => $dir,
     short   => 1,
 );
-$sitemaper->run();
+$sitemapper->run();
 
 $file = "$dir/sitemapindex.xml";
 ok( -e "$dir/sitemapindex.xml", "File sitemapindex.xml for 75000 bibs created");