Bugzilla – Attachment 52455 Details for
Bug 16751
Fix sitemaper typo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16751: What is sitemaper?
Bug-16751-What-is-sitemaper.patch (text/plain), 2.55 KB, created by
Marcel de Rooy
on 2016-06-16 11:10:05 UTC
(
hide
)
Description:
Bug 16751: What is sitemaper?
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-06-16 11:10:05 UTC
Size:
2.55 KB
patch
obsolete
>From df1fed9329ce844b8ecebcd020f5a2055d83f354 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 16 Jun 2016 13:03:30 +0200 >Subject: [PATCH] Bug 16751: What is sitemaper? >Content-Type: text/plain; charset=utf-8 > >s/sitemaper/sitemapper/ > >Test plan: >Run t/db_dependent/Sitemapper.t >--- > misc/cronjobs/sitemap.pl | 4 ++-- > t/db_dependent/Sitemapper.t | 12 ++++++------ > 2 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/misc/cronjobs/sitemap.pl b/misc/cronjobs/sitemap.pl >index 2a57706..80c01fd 100755 >--- a/misc/cronjobs/sitemap.pl >+++ b/misc/cronjobs/sitemap.pl >@@ -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 >diff --git a/t/db_dependent/Sitemapper.t b/t/db_dependent/Sitemapper.t >index c53ac8e..a1ea4f8 100755 >--- a/t/db_dependent/Sitemapper.t >+++ b/t/db_dependent/Sitemapper.t >@@ -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"); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16751
:
52455
|
52461
|
52516