From 8235290172a25a300ecb5ba1414e871747517b11 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Wed, 25 Oct 2017 13:39:35 +0200
Subject: [PATCH] Bug 19528: Fix a few typos like corrosponding
Content-Type: text/plain; charset=utf-8

[1] Replace corrosponding => corresponding
[2] Replace containts => contains
[3] Replace item_level-itypes => item-level_itypes
[4] Replace Managment => Management
[5] Replace should returns => should return

Test plan:
Note that this patch only deals with POD lines or test descriptions.
So there is nothing to test, just read the patch.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 C4/Acquisition.pm                           | 2 +-
 C4/Biblio.pm                                | 4 ++--
 C4/Circulation.pm                           | 2 +-
 C4/Log.pm                                   | 2 +-
 C4/NewsChannels.pm                          | 2 +-
 C4/Serials.pm                               | 2 +-
 Koha/List/Patron.pm                         | 2 +-
 authorities/authorities.pl                  | 2 +-
 cataloguing/addbiblio.pl                    | 2 +-
 misc/release_notes/release_notes_3_14_0.txt | 2 +-
 t/db_dependent/ArticleRequests.t            | 6 +++---
 t/db_dependent/Holds.t                      | 6 +++---
 t/db_dependent/Items.t                      | 4 ++--
 13 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 441afb7..15a51dd 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -2437,7 +2437,7 @@ sub GetHistory {
 
   $results = GetRecentAcqui($days);
 
-C<$results> is a ref to a table which containts hashref
+C<$results> is a ref to a table which contains hashref
 
 =cut
 
diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index e3c1228..b259176 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -1053,7 +1053,7 @@ in tab 0-9. (used field)
 
   my $results = GetUsedMarcStructure($frameworkcode);
 
-C<$results> is a ref to an array which each case containts a ref
+C<$results> is a ref to an array which each case contains a ref
 to a hash which each keys is the columns from marc_subfield_structure
 
 C<$frameworkcode> is the framework code. 
@@ -2423,7 +2423,7 @@ sub _default_ind_to_space {
 =head2 TransformHtmlToMarc
 
     L<$record> = TransformHtmlToMarc(L<$cgi>)
-    L<$cgi> is the CGI object which containts the values for subfields
+    L<$cgi> is the CGI object which contains the values for subfields
     {
         'tag_010_indicator1_531951' ,
         'tag_010_indicator2_531951' ,
diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 9773f69..357c5f3 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -2496,7 +2496,7 @@ sub GetOpenIssue {
 this function get all issues from a biblionumber.
 
 Return:
-C<$issues> is a reference to array which each value is ref-to-hash. This ref-to-hash containts all column from
+C<$issues> is a reference to array which each value is ref-to-hash. This ref-to-hash contains all column from
 tables issues and the firstname,surname & cardnumber from borrowers.
 
 =cut
diff --git a/C4/Log.pm b/C4/Log.pm
index d8ea168..0a14dfe 100644
--- a/C4/Log.pm
+++ b/C4/Log.pm
@@ -230,7 +230,7 @@ sub displaylog {
 $logs = GetLogs($datefrom,$dateto,$user,\@modules,$action,$object,$info);
 
 Return:
-C<$logs> is a ref to a hash which containts all columns from action_logs
+C<$logs> is a ref to a hash which contains all columns from action_logs
 
 =cut
 
diff --git a/C4/NewsChannels.pm b/C4/NewsChannels.pm
index 40e70da..a01d279 100644
--- a/C4/NewsChannels.pm
+++ b/C4/NewsChannels.pm
@@ -182,7 +182,7 @@ sub get_opac_news {
 =head2 GetNewsToDisplay
 
     $news = &GetNewsToDisplay($lang,$branch);
-    C<$news> is a ref to an array which containts
+    C<$news> is a ref to an array which contains
     all news with expirationdate > today or expirationdate is null
     that is applicable for a given branch.
 
diff --git a/C4/Serials.pm b/C4/Serials.pm
index d79c0a5..45bae8c 100644
--- a/C4/Serials.pm
+++ b/C4/Serials.pm
@@ -265,7 +265,7 @@ sub AddItem2Serial {
 $subs = GetSubscription($subscriptionid)
 this function returns the subscription which has $subscriptionid as id.
 return :
-a hashref. This hash containts
+a hashref. This hash contains
 subscription, subscriptionhistory, aqbooksellers.name, biblio.title
 
 =cut
diff --git a/Koha/List/Patron.pm b/Koha/List/Patron.pm
index 1baa3b0..1847973 100644
--- a/Koha/List/Patron.pm
+++ b/Koha/List/Patron.pm
@@ -19,7 +19,7 @@ package Koha::List::Patron;
 
 =head1 NAME
 
-Koha::List::Patron - Managment of lists of patrons
+Koha::List::Patron - Management of lists of patrons
 
 =head1 FUNCTIONS
 
diff --git a/authorities/authorities.pl b/authorities/authorities.pl
index caeafcd..55d34d1 100755
--- a/authorities/authorities.pl
+++ b/authorities/authorities.pl
@@ -320,7 +320,7 @@ sub CreateKey {
 
 =item GetMandatoryFieldZ3950
 
-    This function return an hashref which containts all mandatory field
+    This function return an hashref which contains all mandatory field
     to search with z3950 server.
 
 =cut
diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl
index cfb112e..123c443 100755
--- a/cataloguing/addbiblio.pl
+++ b/cataloguing/addbiblio.pl
@@ -253,7 +253,7 @@ sub CreateKey {
 
 =head2 GetMandatoryFieldZ3950
 
-    This function return an hashref which containts all mandatory field
+    This function return an hashref which contains all mandatory field
     to search with z3950 server.
 
 =cut
diff --git a/misc/release_notes/release_notes_3_14_0.txt b/misc/release_notes/release_notes_3_14_0.txt
index 2f98503..36dcec6 100644
--- a/misc/release_notes/release_notes_3_14_0.txt
+++ b/misc/release_notes/release_notes_3_14_0.txt
@@ -561,7 +561,7 @@ Architecture, internals, and plumbing
 	10054	minor	When SingleBranchMode is enabled, allow superlibrarians to set logged in library
 	10143	minor	Fix FSF address in license headers
 	10650	minor	Export merge-record.inc javascript into a file
-	10711	minor	GetOfflineOperation in C4/Circulation.pm should returns $sth->fetchrow_hashref instead of $result
+	10711	minor	GetOfflineOperation in C4/Circulation.pm should return $sth->fetchrow_hashref instead of $result
 	10872	minor	C4::Items GetHiddenItems fix and optimization
 	7785	trivial	MySQL-specific syntax in C4::Members columns()
 	10080	trivial	Change system pref IndependantBranches to IndependentBranches
diff --git a/t/db_dependent/ArticleRequests.t b/t/db_dependent/ArticleRequests.t
index a9466a6..ae0c2a3 100755
--- a/t/db_dependent/ArticleRequests.t
+++ b/t/db_dependent/ArticleRequests.t
@@ -93,9 +93,9 @@ is( $article_request->status, Koha::ArticleRequest::Status::Canceled, '$ar->comp
 $article_request->status(Koha::ArticleRequest::Status::Pending);
 $article_request->store();
 
-is( $article_request->biblio->id,   $biblio->id, '$ar->biblio() gets corrosponding Koha::Biblio object' );
-is( $article_request->item->id,     $item->id,   '$ar->item() gets corrosponding Koha::Item object' );
-is( $article_request->borrower->id, $patron->id, '$ar->borrower() gets corrosponding Koha::Patron object' );
+is( $article_request->biblio->id,   $biblio->id, '$ar->biblio() gets corresponding Koha::Biblio object' );
+is( $article_request->item->id,     $item->id,   '$ar->item() gets corresponding Koha::Item object' );
+is( $article_request->borrower->id, $patron->id, '$ar->borrower() gets corresponding Koha::Patron object' );
 
 my $ar = $patron->article_requests();
 is( ref($ar),      'Koha::ArticleRequests', '$patron->article_requests returns Koha::ArticleRequests object' );
diff --git a/t/db_dependent/Holds.t b/t/db_dependent/Holds.t
index 06ef97e..4ec4780 100755
--- a/t/db_dependent/Holds.t
+++ b/t/db_dependent/Holds.t
@@ -362,18 +362,18 @@ $dbh->do(q{
 ($item_bibnum, $item_bibitemnum, $itemnumber) = AddItem(
     { homebranch => $branch_1, holdingbranch => $branch_1, itype => 'CANNOT' } , $bibnum);
 is(CanItemBeReserved($borrowernumbers[0], $itemnumber), 'notReservable',
-    "CanItemBeReserved should returns 'notReservable'");
+    "CanItemBeReserved should return 'notReservable'");
 
 ($item_bibnum, $item_bibitemnum, $itemnumber) = AddItem(
     { homebranch => $branch_2, holdingbranch => $branch_1, itype => 'CAN' } , $bibnum);
 is(CanItemBeReserved($borrowernumbers[0], $itemnumber),
     'cannotReserveFromOtherBranches',
-    "CanItemBeReserved should returns 'cannotReserveFromOtherBranches'");
+    "CanItemBeReserved should return 'cannotReserveFromOtherBranches'");
 
 ($item_bibnum, $item_bibitemnum, $itemnumber) = AddItem(
     { homebranch => $branch_1, holdingbranch => $branch_1, itype => 'CAN' } , $bibnum);
 is(CanItemBeReserved($borrowernumbers[0], $itemnumber), 'OK',
-    "CanItemBeReserved should returns 'OK'");
+    "CanItemBeReserved should return 'OK'");
 
 # Bug 12632
 t::lib::Mocks::mock_preference( 'item-level_itypes',     1 );
diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t
index f257f78..f9ab049 100755
--- a/t/db_dependent/Items.t
+++ b/t/db_dependent/Items.t
@@ -95,10 +95,10 @@ subtest 'General Add, Get and Del tests' => sub {
 
     t::lib::Mocks::mock_preference('item-level_itypes', '1');
     $getitem = GetItem($itemnumber);
-    is( $getitem->{itype}, $itemtype->{itemtype}, "Itemtype set correctly when using item_level-itypes" );
+    is( $getitem->{itype}, $itemtype->{itemtype}, "Itemtype set correctly when using item-level_itypes" );
     t::lib::Mocks::mock_preference('item-level_itypes', '0');
     $getitem = GetItem($itemnumber);
-    is( $getitem->{itype}, undef, "Itemtype set correctly when not using item_level-itypes" );
+    is( $getitem->{itype}, undef, "Itemtype set correctly when not using item-level_itypes" );
 
     $schema->storage->txn_rollback;
 };
-- 
2.1.4