From ed0d659e2e560ae3adfbeb8c978c1b5bf5bb9910 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 25 Oct 2017 13:39:35 +0200 Subject: [PATCH] Bug 19528: Fix a few typos like corrosponding [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 Signed-off-by: Nick Clemens Patch amended by RM: The release notes should not be modified --- 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 +- t/db_dependent/ArticleRequests.t | 6 +++--- t/db_dependent/Holds.t | 6 +++--- t/db_dependent/Items.t | 4 ++-- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 441afb7d87..15a51dd81b 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 e3c122825c..b259176557 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 ae1157ecbd..8bd8d85946 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 d8ea1686da..0a14dfe7a8 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 40e70da886..a01d2798ec 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 d79c0a511a..45bae8c7ab 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 1baa3b0cd1..1847973bdd 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 caeafcddfd..55d34d1303 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 cfb112eebc..123c44393d 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/t/db_dependent/ArticleRequests.t b/t/db_dependent/ArticleRequests.t index a9466a6693..ae0c2a3caa 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 06ef97e21c..4ec4780810 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 f257f785ae..f9ab049fcf 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.11.0