From ed0615ade976b2c94a71867664190c0be9630781 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Jun 2017 16:07:32 -0300 Subject: [PATCH] Bug 17600: (follow-up) Explicitly export the subroutines used - scripts manual adjustements --- acqui/addorderiso2709.pl | 2 +- admin/matching-rules.pl | 2 +- misc/cronjobs/share_usage_with_koha_community.pl | 2 +- opac/opac-search.pl | 2 +- tools/manage-marc-import.pl | 2 +- tools/stage-marc-import.pl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 1777a17d4c..f8e08c85b8 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -31,7 +31,7 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::ImportBatch qw( GetImportRecordsRange GetImportRecordMarc GetImportRecordMatches SetImportRecordStatus GetImportBatch GetImportBatchRangeDesc SetImportBatchStatus GetNumberOfNonZ3950ImportBatches GetImportBatchOverlayAction GetImportBatchNoMatchAction GetImportBatchItemAction ); -use C4::Matcher; +use C4::Matcher qw( GetMatcherList ); use C4::Search qw( FindDuplicate ); use C4::Acquisition qw( GetBasket populate_order_with_prices ); use C4::Biblio qw( GetMarcQuantity GetMarcFromKohaField AddBiblio BiblioAutoLink GetMarcPrice TransformHtmlToXml ); diff --git a/admin/matching-rules.pl b/admin/matching-rules.pl index 39274b4237..824ede1513 100755 --- a/admin/matching-rules.pl +++ b/admin/matching-rules.pl @@ -26,7 +26,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Koha; -use C4::Matcher qw/valid_normalization_routines/; +use C4::Matcher qw( valid_normalization_routines GetMatcherList ); my $script_name = "/cgi-bin/koha/admin/matching-rules.pl"; diff --git a/misc/cronjobs/share_usage_with_koha_community.pl b/misc/cronjobs/share_usage_with_koha_community.pl index d04c4c344e..3a1094c2db 100755 --- a/misc/cronjobs/share_usage_with_koha_community.pl +++ b/misc/cronjobs/share_usage_with_koha_community.pl @@ -6,7 +6,7 @@ use Pod::Usage; use Getopt::Long; use C4::Context; -use C4::UsageStats; +use C4::UsageStats qw( NeedUpdate BuildReport ReportToCommunity ); use C4::Log qw( logaction cronlogaction ); use POSIX qw(strftime); diff --git a/opac/opac-search.pl b/opac/opac-search.pl index c8f83d00db..215f1c09d7 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -49,7 +49,7 @@ use C4::Search qw( pazGetRecords searchResults ); use C4::Biblio qw( GetXmlBiblio GetMarcBiblio GetCOinSBiblio CountItemsIssued ); use C4::Koha qw( GetItemTypesCategorized getitemtypeinfo getitemtypeimagelocation GetAuthorisedValues ); use C4::Tags qw( get_tags get_tag ); -use C4::SocialData; +use C4::SocialData qw( get_data ); use C4::External::OverDrive qw( IsOverDriveEnabled ); use Koha::LibraryCategories; diff --git a/tools/manage-marc-import.pl b/tools/manage-marc-import.pl index b2da6e089d..5b3c678f5d 100755 --- a/tools/manage-marc-import.pl +++ b/tools/manage-marc-import.pl @@ -33,7 +33,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Biblio; use C4::ImportBatch qw( CleanBatch DeleteBatch GetImportBatch GetImportBatchOverlayAction GetImportBatchNoMatchAction GetImportBatchItemAction SetImportBatchOverlayAction SetImportBatchNoMatchAction SetImportBatchItemAction BatchFindDuplicates SetImportBatchMatcher GetItemNumbersFromImportBatch GetImportBatchRangeDesc GetNumberOfNonZ3950ImportBatches BatchCommitRecords BatchRevertRecords ); -use C4::Matcher; +use C4::Matcher qw( GetMatcherList ); use C4::BackgroundJob; use C4::Labels::Batch; use Koha::BiblioFrameworks; diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index 02e56c3751..3b894a5ff8 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -38,7 +38,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Biblio; use C4::ImportBatch qw( RecordsFromMARCXMLFile RecordsFromISO2709File BatchStageMarcRecords BatchFindDuplicates SetImportBatchMatcher SetImportBatchOverlayAction SetImportBatchNoMatchAction SetImportBatchItemAction ); -use C4::Matcher; +use C4::Matcher qw( GetMatcherList ); use Koha::UploadedFiles; use C4::BackgroundJob; use C4::MarcModificationTemplates qw( GetModificationTemplates ); -- 2.11.0