Bug 19528: Fix a few typos like corrosponding
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 25 Oct 2017 11:39:35 +0000 (13:39 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 17:09:04 +0000 (14:09 -0300)
[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>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Patch amended by RM: The release notes should not be modified

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
12 files changed:
C4/Acquisition.pm
C4/Biblio.pm
C4/Circulation.pm
C4/Log.pm
C4/NewsChannels.pm
C4/Serials.pm
Koha/List/Patron.pm
authorities/authorities.pl
cataloguing/addbiblio.pl
t/db_dependent/ArticleRequests.t
t/db_dependent/Holds.t
t/db_dependent/Items.t

index 441afb7..15a51dd 100644 (file)
@@ -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
 
index e3c1228..b259176 100644 (file)
@@ -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' ,
index ae1157e..8bd8d85 100644 (file)
@@ -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
index d8ea168..0a14dfe 100644 (file)
--- 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
 
index 40e70da..a01d279 100644 (file)
@@ -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.
 
index d79c0a5..45bae8c 100644 (file)
@@ -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
index 1baa3b0..1847973 100644 (file)
@@ -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
 
index caeafcd..55d34d1 100755 (executable)
@@ -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
index cfb112e..123c443 100755 (executable)
@@ -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
index a9466a6..ae0c2a3 100755 (executable)
@@ -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' );
index 06ef97e..4ec4780 100755 (executable)
@@ -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 );
index f257f78..f9ab049 100755 (executable)
@@ -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;
 };