@@ -, +, @@ --- about.pl | 21 ++++----- acqui/acqui-home.pl | 0 acqui/add_user_search.pl | 0 acqui/addorder.pl | 13 ++++-- acqui/addorderiso2709.pl | 18 +++++--- acqui/ajax-getauthvaluedropbox.pl | 2 +- acqui/basket.pl | 7 +-- acqui/basketgroup.pl | 22 ++++++++-- acqui/basketheader.pl | 2 +- acqui/booksellers.pl | 1 - acqui/cancelorder.pl | 2 +- acqui/check_budget_total.pl | 0 acqui/check_uniqueness.pl | 4 +- acqui/duplicate_orders.pl | 2 +- acqui/edi_ean.pl | 3 +- acqui/edifactmsgs.pl | 3 +- acqui/edimsg.pl | 2 +- acqui/finishreceive.pl | 3 +- acqui/histsearch.pl | 3 +- acqui/invoice-files.pl | 2 +- acqui/invoice.pl | 2 +- acqui/invoices.pl | 2 +- acqui/lateorders-export.pl | 2 +- acqui/lateorders.pl | 5 +-- acqui/modordernotes.pl | 0 acqui/neworderempty.pl | 14 ++++-- acqui/newordersubscription.pl | 0 acqui/newordersuggestion.pl | 1 - acqui/ordered.pl | 0 acqui/orderreceive.pl | 2 - acqui/parcel.pl | 4 -- acqui/parcels.pl | 2 +- acqui/showorder.pl | 0 acqui/spent.pl | 0 acqui/supplier.pl | 3 +- acqui/transferorder.pl | 0 acqui/uncertainprice.pl | 1 - acqui/updatesupplier.pl | 2 - acqui/z3950_search.pl | 1 - admin/add_user_search.pl | 0 admin/additional-fields.pl | 3 +- admin/admin-home.pl | 0 admin/adveditorshortcuts.pl | 2 - admin/aqbudgetperiods.pl | 4 +- admin/aqbudgets.pl | 2 - admin/aqcontract.pl | 10 ++++- admin/aqplan.pl | 7 ++- admin/audio_alerts.pl | 2 +- admin/auth_subfields_structure.pl | 1 - admin/auth_tag_structure.pl | 1 - admin/authorised_values.pl | 4 +- admin/authtypes.pl | 0 admin/background_jobs.pl | 2 - admin/biblio_framework.pl | 0 admin/branch_transfer_limits.pl | 1 - admin/branches.pl | 3 +- admin/cash_registers.pl | 4 +- admin/categories.pl | 2 +- admin/check_budget_parent.pl | 0 admin/check_parent_total.pl | 0 admin/checkmarc.pl | 1 - admin/cities.pl | 0 admin/classsources.pl | 1 - admin/clone-rules.pl | 1 - admin/columns_settings.pl | 2 +- admin/credit_types.pl | 2 +- admin/currency.pl | 0 admin/debit_types.pl | 2 +- admin/desks.pl | 0 admin/didyoumean.pl | 4 +- admin/edi_accounts.pl | 2 +- admin/edi_ean_accounts.pl | 2 +- admin/import_export_framework.pl | 2 +- admin/item_circulation_alerts.pl | 4 +- admin/items_search_field.pl | 2 +- admin/items_search_fields.pl | 2 +- admin/itemtypes.pl | 1 - admin/koha2marclinks.pl | 1 - admin/library_groups.pl | 0 admin/localization.pl | 0 admin/marc_subfields_structure.pl | 0 admin/marctagstructure.pl | 1 - admin/matching-rules.pl | 1 - admin/oai_set_mappings.pl | 3 +- admin/oai_sets.pl | 3 +- admin/overdrive.pl | 0 admin/patron-attr-types.pl | 3 +- admin/preferences.pl | 12 +++-- admin/searchengine/elasticsearch/mappings.pl | 10 ++--- admin/share_content.pl | 2 +- admin/smart-rules.pl | 3 +- admin/sms_providers.pl | 2 +- admin/smtp_servers.pl | 4 +- admin/sru_modmapping.pl | 2 +- admin/systempreferences.pl | 6 +-- admin/transfer_limits.pl | 1 - admin/transport-cost-matrix.pl | 2 - admin/usage_statistics.pl | 2 +- admin/z3950servers.pl | 0 api/v1/app.pl | 2 +- authorities/auth_finder.pl | 1 - authorities/authorities-home.pl | 3 +- authorities/authorities.pl | 3 +- authorities/blinddetail-biblio-search.pl | 2 - authorities/detail-biblio-search.pl | 2 - authorities/detail.pl | 3 +- authorities/export.pl | 0 authorities/merge.pl | 1 - authorities/merge_ajax.pl | 2 +- authorities/ysearch.pl | 2 +- basket/basket.pl | 11 ++++- basket/downloadcart.pl | 5 +-- basket/sendbasket.pl | 17 ++++--- catalogue/ISBDdetail.pl | 6 +-- catalogue/MARCdetail.pl | 17 ++++--- catalogue/detail.pl | 22 ++++++---- catalogue/export.pl | 2 +- catalogue/getitem-ajax.pl | 4 +- catalogue/image.pl | 0 catalogue/imageviewer.pl | 1 - catalogue/issuehistory.pl | 1 - catalogue/item-export.pl | 2 +- catalogue/itemsearch.pl | 5 +-- catalogue/labeledMARCdetail.pl | 11 +++-- catalogue/moredetail.pl | 5 +-- catalogue/search-history.pl | 0 catalogue/search.pl | 9 ++-- catalogue/showmarc.pl | 3 +- catalogue/stockrotation.pl | 2 +- catalogue/updateitem.pl | 2 - cataloguing/addbiblio.pl | 27 ++++++++---- cataloguing/addbooks.pl | 4 +- cataloguing/additem.pl | 28 ++++++++---- cataloguing/editor.pl | 4 +- cataloguing/linkitem.pl | 4 +- cataloguing/merge.pl | 14 ++++-- cataloguing/merge_ajax.pl | 2 +- cataloguing/moveitem.pl | 4 -- cataloguing/plugin_launcher.pl | 0 cataloguing/value_builder/EXAMPLE.pl | 0 cataloguing/value_builder/barcode.pl | 4 +- cataloguing/value_builder/barcode_manual.pl | 2 +- cataloguing/value_builder/callnumber-KU.pl | 0 cataloguing/value_builder/callnumber.pl | 0 cataloguing/value_builder/cn_browser.pl | 1 - cataloguing/value_builder/dateaccessioned.pl | 2 +- cataloguing/value_builder/macles.pl | 0 cataloguing/value_builder/marc21_field_005.pl | 0 cataloguing/value_builder/marc21_field_006.pl | 2 +- cataloguing/value_builder/marc21_field_007.pl | 0 cataloguing/value_builder/marc21_field_008.pl | 2 +- .../marc21_field_008_authorities.pl | 0 .../marc21_field_008_classifications.pl | 0 .../value_builder/marc21_field_245h.pl | 0 .../value_builder/marc21_field_260b.pl | 0 cataloguing/value_builder/marc21_leader.pl | 0 .../marc21_leader_authorities.pl | 0 .../value_builder/marc21_linking_section.pl | 2 - cataloguing/value_builder/marc21_orgcode.pl | 0 .../value_builder/normarc_field_007.pl | 0 .../value_builder/normarc_field_008.pl | 0 cataloguing/value_builder/normarc_leader.pl | 0 cataloguing/value_builder/stocknumber.pl | 0 cataloguing/value_builder/stocknumberAV.pl | 0 cataloguing/value_builder/stocknumberam123.pl | 0 .../value_builder/unimarc_field_010.pl | 0 .../value_builder/unimarc_field_100.pl | 2 +- .../unimarc_field_100_authorities.pl | 0 .../value_builder/unimarc_field_105.pl | 0 .../value_builder/unimarc_field_106.pl | 0 .../value_builder/unimarc_field_110.pl | 0 .../value_builder/unimarc_field_115a.pl | 0 .../value_builder/unimarc_field_115b.pl | 0 .../value_builder/unimarc_field_116.pl | 0 .../value_builder/unimarc_field_117.pl | 0 .../value_builder/unimarc_field_120.pl | 0 .../value_builder/unimarc_field_121a.pl | 0 .../value_builder/unimarc_field_121b.pl | 0 .../value_builder/unimarc_field_122.pl | 0 .../value_builder/unimarc_field_123a.pl | 0 .../value_builder/unimarc_field_123d.pl | 0 .../value_builder/unimarc_field_123e.pl | 0 .../value_builder/unimarc_field_123f.pl | 0 .../value_builder/unimarc_field_123g.pl | 0 .../value_builder/unimarc_field_123i.pl | 0 .../value_builder/unimarc_field_123j.pl | 0 .../value_builder/unimarc_field_124.pl | 0 .../value_builder/unimarc_field_124a.pl | 0 .../value_builder/unimarc_field_124b.pl | 0 .../value_builder/unimarc_field_124c.pl | 0 .../value_builder/unimarc_field_124d.pl | 0 .../value_builder/unimarc_field_124e.pl | 0 .../value_builder/unimarc_field_124f.pl | 0 .../value_builder/unimarc_field_124g.pl | 0 .../value_builder/unimarc_field_125.pl | 0 .../value_builder/unimarc_field_125a.pl | 0 .../value_builder/unimarc_field_125b.pl | 0 .../value_builder/unimarc_field_126.pl | 0 .../value_builder/unimarc_field_126a.pl | 0 .../value_builder/unimarc_field_126b.pl | 0 .../value_builder/unimarc_field_127.pl | 0 .../value_builder/unimarc_field_128a.pl | 0 .../value_builder/unimarc_field_128b.pl | 0 .../value_builder/unimarc_field_128c.pl | 0 .../value_builder/unimarc_field_130.pl | 0 .../value_builder/unimarc_field_135a.pl | 0 .../value_builder/unimarc_field_140.pl | 0 .../value_builder/unimarc_field_141.pl | 0 .../value_builder/unimarc_field_210c.pl | 1 - .../value_builder/unimarc_field_210c_bis.pl | 0 .../value_builder/unimarc_field_225a.pl | 0 .../value_builder/unimarc_field_225a_bis.pl | 0 .../value_builder/unimarc_field_4XX.pl | 2 - .../value_builder/unimarc_field_686a.pl | 0 .../value_builder/unimarc_field_700-4.pl | 0 cataloguing/value_builder/unimarc_leader.pl | 0 cataloguing/value_builder/upload.pl | 0 cataloguing/ysearch.pl | 2 +- cataloguing/z3950_auth_search.pl | 1 - cataloguing/z3950_search.pl | 1 - changelanguage.pl | 0 circ/add_message.pl | 0 circ/article-request-slip.pl | 2 +- circ/article-requests.pl | 0 circ/bookcount.pl | 2 - circ/branchoverdues.pl | 4 +- circ/branchtransfers.pl | 3 -- circ/checkout-notes.pl | 0 circ/circulation-home.pl | 0 circ/circulation.pl | 14 ++---- circ/del_message.pl | 0 circ/hold-transfer-slip.pl | 0 circ/offline-mf.pl | 0 circ/offline.pl | 0 circ/on-site_checkouts.pl | 1 - circ/overdue.pl | 4 +- circ/pendingreserves.pl | 8 ++-- circ/renew.pl | 3 +- circ/request-article.pl | 0 circ/reserveratios.pl | 3 +- circ/returns.pl | 6 +-- circ/set-library.pl | 1 - circ/transfer-slip.pl | 0 circ/transfers_to_send.pl | 2 +- circ/transferstoreceive.pl | 10 +---- circ/view_holdsqueue.pl | 2 - circ/waitingreserves.pl | 12 ++--- circ/ysearch.pl | 2 +- clubs/club-enrollments.pl | 2 +- clubs/clubs-add-modify.pl | 4 +- clubs/clubs.pl | 2 +- clubs/patron-clubs-tab.pl | 2 +- clubs/patron-enroll.pl | 2 +- clubs/templates-add-modify.pl | 4 +- course_reserves/add_items.pl | 1 - course_reserves/batch_add_items.pl | 0 course_reserves/batch_rm_items.pl | 0 course_reserves/course-details.pl | 1 - course_reserves/course-reserves.pl | 0 course_reserves/course.pl | 0 course_reserves/mod_course.pl | 0 docs/CAS/CASProxy/examples/koha_webservice.pl | 0 docs/CAS/CASProxy/examples/proxy_cas.pl | 0 .../CASProxy/examples/proxy_cas_callback.pl | 2 +- docs/CAS/CASProxy/examples/proxy_cas_data.pl | 5 +-- errors/400.pl | 2 +- errors/401.pl | 2 +- errors/402.pl | 2 +- errors/403.pl | 2 +- errors/404.pl | 2 +- errors/500.pl | 2 +- help.pl | 0 ill/ill-requests.pl | 8 ++-- installer/data/mysql/backfill_statistics.pl | 5 +-- ...fix_unclosed_nonaccruing_fines_bug17135.pl | 6 +-- installer/data/mysql/labels_upgrade.pl | 0 installer/data/mysql/patroncards_upgrade.pl | 0 installer/data/mysql/update22to30.pl | 4 +- installer/data/mysql/updatedatabase.pl | 19 ++++---- installer/externalmodules.pl | 0 .../html-template-to-template-toolkit.pl | 8 ++-- installer/install.pl | 4 +- installer/onboarding.pl | 2 +- koha_perl_deps.pl | 7 ++- kohaversion.pl | 0 labels/label-create-csv.pl | 3 +- labels/label-create-pdf.pl | 2 +- labels/label-create-xml.pl | 4 +- labels/label-edit-batch.pl | 2 +- labels/label-edit-layout.pl | 9 +++- labels/label-edit-profile.pl | 2 +- labels/label-edit-range.pl | 0 labels/label-edit-template.pl | 2 +- labels/label-home.pl | 0 labels/label-item-search.pl | 9 ++-- labels/label-manage.pl | 9 +++- labels/label-print.pl | 7 ++- labels/spinelabel-home.pl | 0 labels/spinelabel-print.pl | 0 mainpage.pl | 3 +- members/accountline-details.pl | 0 members/apikeys.pl | 2 +- members/boraccount.pl | 4 +- members/cancel-charge.pl | 2 +- members/default_messageprefs.pl | 0 members/deletemem.pl | 3 +- members/discharge.pl | 5 +-- members/discharges.pl | 2 +- members/files.pl | 1 - members/guarantor_search.pl | 0 members/holdshistory.pl | 0 members/housebound.pl | 4 +- members/ill-requests.pl | 0 members/mancredit.pl | 1 - members/maninvoice.pl | 3 +- members/member-flags.pl | 0 members/member-password.pl | 4 +- members/member.pl | 3 +- members/memberentry.pl | 8 ++-- members/members-home.pl | 2 +- members/members-update-do.pl | 0 members/members-update.pl | 0 members/merge-patrons.pl | 2 +- members/mod_debarment.pl | 4 +- members/moremember.pl | 5 +-- members/notices.pl | 2 +- members/patronimage.pl | 0 members/pay.pl | 9 +--- members/paycollect.pl | 7 +-- members/print_overdues.pl | 2 +- members/printfeercpt.pl | 2 +- members/printinvoice.pl | 2 +- members/printslip.pl | 2 - members/purchase-suggestions.pl | 0 members/readingrec.pl | 4 +- members/routing-lists.pl | 0 members/setstatus.pl | 1 - members/statistics.pl | 6 ++- members/summary-print.pl | 5 +-- members/update-child.pl | 0 misc/add_date_fields_to_marc_records.pl | 9 ++-- misc/admin/set_password.pl | 8 ++-- misc/background_jobs_worker.pl | 4 +- misc/batchCompareMARCvsFrameworks.pl | 8 ++-- misc/batchDeleteUnusedSubfields.pl | 8 ++-- misc/batchImportMARCWithBiblionumbers.pl | 10 ++--- misc/batchRebuildBiblioTables.pl | 18 +++++--- misc/batchRebuildItemsTables.pl | 12 ++--- misc/batchRepairMissingBiblionumbers.pl | 5 +-- misc/batchdeletebiblios.pl | 5 +-- misc/bin/clear_cache.pl | 0 misc/bin/connexion_import_daemon.pl | 14 +++--- misc/check_sysprefs.pl | 2 +- misc/commit_file.pl | 5 +-- misc/cronjobs/advance_notices.pl | 12 ++--- misc/cronjobs/archive_purchase_suggestions.pl | 4 +- misc/cronjobs/automatic_checkin.pl | 2 +- .../automatic_item_modification_by_age.pl | 10 ++--- misc/cronjobs/automatic_renewals.pl | 8 ++-- misc/cronjobs/batch_anonymise.pl | 13 ++---- misc/cronjobs/build_browser_and_cloud.pl | 10 ++--- misc/cronjobs/cart_to_shelf.pl | 7 ++- misc/cronjobs/check-url-quick.pl | 8 ++-- misc/cronjobs/cleanup_database.pl | 9 ++-- misc/cronjobs/cloud-kw.pl | 12 ++--- misc/cronjobs/create_koc_db.pl | 6 +-- misc/cronjobs/delete_items.pl | 5 +-- misc/cronjobs/delete_patrons.pl | 8 ++-- misc/cronjobs/delete_records_via_leader.pl | 8 ++-- misc/cronjobs/edi_cron.pl | 0 misc/cronjobs/fines.pl | 12 ++--- misc/cronjobs/gather_print_notices.pl | 17 ++++--- misc/cronjobs/holds/auto_unsuspend_holds.pl | 5 +-- misc/cronjobs/holds/build_holds_queue.pl | 5 +-- misc/cronjobs/holds/cancel_expired_holds.pl | 9 ++-- misc/cronjobs/holds/cancel_unfilled_holds.pl | 10 ++--- misc/cronjobs/holds/holds_reminder.pl | 14 +++--- misc/cronjobs/import_webservice_batch.pl | 6 +-- misc/cronjobs/longoverdue.pl | 10 ++--- misc/cronjobs/membership_expiry.pl | 12 +++-- misc/cronjobs/merge_authorities.pl | 6 +-- .../notice_unprocessed_suggestions.pl | 4 +- misc/cronjobs/overdue_notices.pl | 19 ++++---- misc/cronjobs/patron_emailer.pl | 9 ++-- misc/cronjobs/plugins_nightly.pl | 4 +- misc/cronjobs/process_message_queue.pl | 9 ++-- misc/cronjobs/purge_suggestions.pl | 8 ++-- misc/cronjobs/reconcile_balances.pl | 11 +++-- misc/cronjobs/remove_temporary_edifiles.pl | 0 misc/cronjobs/rss/rss.pl | 3 +- misc/cronjobs/runreport.pl | 15 +++---- misc/cronjobs/serialsUpdate.pl | 13 +++--- .../share_usage_with_koha_community.pl | 8 ++-- misc/cronjobs/sitemap.pl | 7 ++- .../social_data/get_report_social_data.pl | 0 .../social_data/update_social_data.pl | 0 misc/cronjobs/staticfines.pl | 16 +++---- misc/cronjobs/stockrotation.pl | 0 .../thirdparty/TalkingTech_itiva_inbound.pl | 7 ++- .../thirdparty/TalkingTech_itiva_outbound.pl | 12 +++-- misc/cronjobs/update_patrons_category.pl | 9 ++-- misc/cronjobs/update_totalissues.pl | 15 +++---- misc/cronjobs/writeoff_debts.pl | 6 +-- misc/devel/add_missing_filters.pl | 6 +-- misc/devel/coverage.pl | 6 +-- misc/devel/create_superlibrarian.pl | 4 +- misc/devel/get_prepared_letter.pl | 6 +-- misc/devel/install_plugins.pl | 4 +- misc/devel/update_dbix_class_files.pl | 4 +- misc/export_borrowers.pl | 0 misc/export_records.pl | 6 +-- misc/exportauth.pl | 4 +- misc/import_patrons.pl | 6 +-- misc/kohalib.pl | 0 misc/link_bibs_to_authorities.pl | 21 +++++---- misc/load_testing/benchmark_circulation.pl | 6 +-- misc/load_testing/benchmark_staff.pl | 10 ++--- misc/load_testing/benchmark_webservices.pl | 5 +-- misc/load_yaml.pl | 2 +- .../UNIMARC_fix_collectiontitle.pl | 4 +- ...MARC_sync_date_created_with_marc_biblio.pl | 5 +-- misc/maintenance/auth_show_hidden_data.pl | 4 +- .../borrowers-force-messaging-defaults.pl | 7 ++- misc/maintenance/check_syspref_cache.pl | 4 +- misc/maintenance/cmp_sysprefs.pl | 4 +- misc/maintenance/compare_es_to_db.pl | 0 misc/maintenance/fix_accountlines_date.pl | 8 ++-- .../fix_accountlines_rmdupfines_bug8253.pl | 8 ++-- misc/maintenance/fix_mysql_constraints.pl | 9 ++-- misc/maintenance/fix_tags_weight.pl | 6 +-- misc/maintenance/generate_MARC21Languages.pl | 8 ++-- .../process_record_through_filter.pl | 1 - .../remove_items_from_biblioitems.pl | 4 +- misc/maintenance/sanitize_records.pl | 9 ++-- .../search_for_data_inconsistencies.pl | 2 +- misc/maintenance/touch_all_biblios.pl | 7 ++- misc/maintenance/touch_all_items.pl | 8 ++-- misc/maintenance/update_authorities.pl | 6 +-- .../22_to_30/convert_to_utf8.pl | 3 +- .../22_to_30/export_Authorities.pl | 6 +-- .../22_to_30/export_Authorities_xml.pl | 6 +-- .../22_to_30/missing090field.pl | 6 +-- .../22_to_30/move_marc_to_authheader.pl | 5 +-- .../22_to_30/move_marc_to_biblioitems.pl | 6 +-- .../22_to_30/rebuild_leader.pl | 6 +-- .../22_to_30/rebuild_unimarc_100.pl | 6 +-- misc/migration_tools/buildCOUNTRY.pl | 5 +-- misc/migration_tools/buildEDITORS.pl | 6 +-- misc/migration_tools/buildLANG.pl | 5 +-- misc/migration_tools/build_oai_sets.pl | 18 +++++--- misc/migration_tools/bulkmarcimport.pl | 35 ++++++++------- .../migration_tools/checkNonIndexedBiblios.pl | 6 +-- misc/migration_tools/create_analytical_rel.pl | 6 +-- misc/migration_tools/ifla/update.pl | 10 ++--- misc/migration_tools/import_lexile.pl | 5 +-- misc/migration_tools/koha-svc.pl | 4 +- misc/migration_tools/rebuild_zebra.pl | 12 ++--- .../remove_unused_authorities.pl | 2 +- .../switch_marc21_series_info.pl | 7 ++- misc/migration_tools/upgradeitems.pl | 2 +- misc/mod_zebraqueue.pl | 4 +- misc/perlmodule_ls.pl | 0 misc/perlmodule_rm.pl | 0 misc/recreateIssueStatistics.pl | 4 +- misc/sax_parser_print.pl | 0 misc/sax_parser_test.pl | 4 +- .../export_elasticsearch_mappings.pl | 8 ++-- misc/search_tools/rebuild_elasticsearch.pl | 7 ++- misc/sip_cli_emulator.pl | 8 ++-- misc/stage_file.pl | 7 ++- misc/translator/tmpl_process3.pl | 5 +-- misc/translator/xgettext.pl | 5 +-- misc/z3950_responder.pl | 5 +-- offline_circ/download.pl | 3 +- offline_circ/enqueue_koc.pl | 4 -- offline_circ/list.pl | 2 - offline_circ/process.pl | 0 offline_circ/process_koc.pl | 7 +-- offline_circ/service.pl | 2 +- opac/clubs/clubs-tab.pl | 2 +- opac/clubs/enroll.pl | 2 +- opac/errors/400.pl | 2 +- opac/errors/401.pl | 2 +- opac/errors/402.pl | 2 +- opac/errors/403.pl | 2 +- opac/errors/404.pl | 2 +- opac/errors/500.pl | 2 +- opac/external/overdrive/auth.pl | 5 +-- opac/ilsdi.pl | 6 +-- opac/maintenance.pl | 0 opac/oai.pl | 0 opac/opac-ISBDdetail.pl | 16 +++++-- opac/opac-MARCdetail.pl | 19 +++++--- opac/opac-account-pay-return.pl | 2 +- opac/opac-account-pay.pl | 5 +-- opac/opac-account.pl | 0 opac/opac-addbybiblionumber.pl | 1 - opac/opac-alert-subscribe.pl | 2 - opac/opac-article-request-cancel.pl | 0 opac/opac-authorities-home.pl | 2 +- opac/opac-authoritiesdetail.pl | 3 +- opac/opac-basket.pl | 12 ++++- opac/opac-blocked.pl | 0 opac/opac-browse.pl | 2 +- opac/opac-browser.pl | 1 - opac/opac-changelanguage.pl | 0 opac/opac-course-details.pl | 1 - opac/opac-course-reserves.pl | 0 opac/opac-detail.pl | 44 ++++++++++++++----- opac/opac-discharge.pl | 4 +- opac/opac-downloadcart.pl | 7 ++- opac/opac-downloadshelf.pl | 6 +-- opac/opac-export.pl | 9 +++- opac/opac-holdshistory.pl | 0 opac/opac-ics.pl | 5 +-- opac/opac-idref.pl | 9 ++-- opac/opac-illrequests.pl | 1 - opac/opac-image.pl | 0 opac/opac-imageviewer.pl | 1 - opac/opac-issue-note.pl | 5 +-- opac/opac-library.pl | 0 opac/opac-main.pl | 3 +- opac/opac-memberentry.pl | 6 +-- opac/opac-messaging.pl | 1 - opac/opac-modrequest-suspend.pl | 0 opac/opac-modrequest.pl | 0 opac/opac-mymessages.pl | 3 +- opac/opac-news-rss.pl | 5 +-- opac/opac-overdrive-search.pl | 0 opac/opac-passwd.pl | 2 +- opac/opac-password-recovery.pl | 18 +++++--- opac/opac-patron-consent.pl | 2 +- opac/opac-patron-image.pl | 0 opac/opac-privacy.pl | 0 opac/opac-ratings-ajax.pl | 2 +- opac/opac-ratings.pl | 0 opac/opac-readingrecord.pl | 11 +++-- opac/opac-recordedbooks-search.pl | 0 opac/opac-registration-verify.pl | 2 +- opac/opac-renew.pl | 2 - opac/opac-reportproblem.pl | 8 ++-- opac/opac-request-article.pl | 0 opac/opac-reserve.pl | 11 +++-- opac/opac-restrictedpage.pl | 2 +- opac/opac-retrieve-file.pl | 3 +- opac/opac-review.pl | 4 +- opac/opac-routing-lists.pl | 0 opac/opac-search-history.pl | 4 -- opac/opac-search.pl | 20 ++++----- opac/opac-sendbasket.pl | 17 ++++--- opac/opac-sendshelf.pl | 17 ++++--- opac/opac-serial-issues.pl | 2 - opac/opac-shareshelf.pl | 3 +- opac/opac-shelves.pl | 11 +++-- opac/opac-showmarc.pl | 3 +- opac/opac-showreviews.pl | 11 +++-- opac/opac-suggestions.pl | 4 +- opac/opac-tags.pl | 12 +++-- opac/opac-tags_subject.pl | 1 - opac/opac-topissues.pl | 3 -- opac/opac-user.pl | 18 ++++---- opac/sci/sci-main.pl | 2 +- opac/sco/help.pl | 0 opac/sco/printslip.pl | 1 - opac/sco/sco-main.pl | 3 -- opac/sco/sco-patron-image.pl | 0 opac/svc/shelfbrowser.pl | 0 opac/tracklinks.pl | 4 +- patron_lists/add-modify.pl | 2 +- patron_lists/delete.pl | 2 +- patron_lists/list.pl | 8 +++- patron_lists/lists.pl | 2 +- patron_lists/patrons.pl | 2 +- patroncards/add_user_search.pl | 0 patroncards/create-pdf.pl | 14 +++--- patroncards/edit-batch.pl | 4 +- patroncards/edit-layout.pl | 13 ++++-- patroncards/edit-profile.pl | 2 +- patroncards/edit-template.pl | 4 +- patroncards/home.pl | 0 patroncards/image-manage.pl | 7 ++- patroncards/manage.pl | 12 +++-- patroncards/print.pl | 3 +- plugins/plugins-enable.pl | 0 plugins/plugins-home.pl | 4 +- plugins/plugins-uninstall.pl | 2 - plugins/plugins-upload.pl | 3 +- plugins/run.pl | 0 pos/pay.pl | 2 +- pos/printreceipt.pl | 3 +- pos/register.pl | 4 +- pos/registers.pl | 2 +- reports/acquisitions_stats.pl | 4 +- reports/bor_issues_top.pl | 5 +-- reports/borrowers_out.pl | 3 +- reports/borrowers_stats.pl | 8 +--- reports/cash_register_stats.pl | 7 ++- reports/cat_issues_top.pl | 2 +- reports/catalogue_out.pl | 2 +- reports/catalogue_stats.pl | 4 +- reports/dictionary.pl | 3 +- reports/guided_reports.pl | 10 ++--- reports/issues_avg_stats.pl | 5 +-- reports/issues_stats.pl | 3 +- reports/itemslost.pl | 5 +-- reports/manager.pl | 0 reports/orders_by_fund.pl | 4 +- reports/reports-home.pl | 0 reports/reserves_stats.pl | 4 +- reports/serials_stats.pl | 1 - reserve/modrequest.pl | 0 reserve/modrequest_suspendall.pl | 0 reserve/placerequest.pl | 3 -- reserve/request.pl | 12 +++-- reviews/reviewswaiting.pl | 1 - rotating_collections/addItems.pl | 1 - rotating_collections/editCollections.pl | 0 rotating_collections/rotatingCollections.pl | 0 rotating_collections/transferCollection.pl | 0 serials/acqui-search-result.pl | 3 +- serials/acqui-search.pl | 0 serials/add_user_search.pl | 0 serials/checkexpiration.pl | 2 +- serials/claims.pl | 3 +- serials/create-numberpattern.pl | 6 ++- serials/lateissues-export.pl | 2 +- serials/reorder_members.pl | 0 serials/routing-preview.pl | 6 +-- serials/routing.pl | 3 +- serials/serials-collection.pl | 4 +- serials/serials-edit.pl | 11 +++-- serials/serials-home.pl | 0 serials/serials-search.pl | 3 +- serials/showpredictionpattern.pl | 4 +- serials/subscription-add.pl | 6 +-- serials/subscription-batchedit.pl | 2 +- serials/subscription-bib-search.pl | 0 serials/subscription-detail.pl | 6 +-- serials/subscription-frequencies.pl | 0 serials/subscription-frequency.pl | 2 +- serials/subscription-history.pl | 3 +- serials/subscription-numberpattern.pl | 2 +- serials/subscription-numberpatterns.pl | 12 ++++- serials/subscription-renew.pl | 4 +- serials/viewalerts.pl | 0 services/itemrecorddisplay.pl | 0 suggestion/add_user_search.pl | 0 suggestion/suggestion.pl | 2 +- svc/cataloguing/automatic_linker.pl | 6 +-- t/Koha/sleep.pl | 1 - t/Koha/wait.pl | 1 - t/db_dependent/LDAP/test_ldap_add.pl | 0 t/db_dependent/zebra_config.pl | 10 ++--- t/etc/schema.pl | 0 tags/list.pl | 3 +- tags/review.pl | 16 ++++--- tools/access_files.pl | 9 ++-- tools/ajax-inventory.pl | 0 tools/automatic_item_modification_by_age.pl | 5 +-- tools/background-job-progress.pl | 1 - tools/batchMod.pl | 19 +++++--- tools/batch_delete_records.pl | 4 +- tools/batch_extend_due_dates.pl | 2 +- tools/batch_record_modification.pl | 11 ++--- tools/batch_records_ajax.pl | 3 +- tools/cleanborrowers.pl | 3 +- tools/copy-holidays.pl | 0 tools/csv-profiles.pl | 3 +- tools/exceptionHolidays.pl | 2 +- tools/export.pl | 4 +- tools/holidays.pl | 2 +- tools/import_borrowers.pl | 6 +-- tools/inventory.pl | 5 +-- tools/koha-news.pl | 13 ++++-- tools/letter.pl | 4 +- tools/manage-marc-import.pl | 1 - tools/marc_modification_templates.pl | 12 ++++- tools/modborrowers.pl | 5 +-- tools/newHolidays.pl | 2 +- tools/overduerules.pl | 3 +- tools/picture-upload.pl | 5 +-- tools/problem-reports.pl | 0 tools/quotes-upload.pl | 1 - tools/quotes.pl | 2 +- tools/scheduler.pl | 4 +- tools/showdiffmarc.pl | 0 tools/stage-marc-import.pl | 3 +- tools/stockrotation.pl | 2 +- tools/tools-home.pl | 0 tools/upload-cover-image.pl | 6 +-- tools/upload-file.pl | 6 +-- tools/upload.pl | 2 +- tools/viewlog.pl | 4 +- virtualshelves/addbybiblionumber.pl | 1 - virtualshelves/downloadshelf.pl | 4 +- virtualshelves/sendshelf.pl | 16 ++++--- virtualshelves/shelves.pl | 9 +++- xt/author/show-template-structure.pl | 0 xt/yaml_valid.pl | 4 +- 699 files changed, 1295 insertions(+), 1420 deletions(-) mode change 100755 => 100644 about.pl mode change 100755 => 100644 acqui/acqui-home.pl mode change 100755 => 100644 acqui/add_user_search.pl mode change 100755 => 100644 acqui/addorder.pl mode change 100755 => 100644 acqui/addorderiso2709.pl mode change 100755 => 100644 acqui/ajax-getauthvaluedropbox.pl mode change 100755 => 100644 acqui/basket.pl mode change 100755 => 100644 acqui/basketgroup.pl mode change 100755 => 100644 acqui/basketheader.pl mode change 100755 => 100644 acqui/booksellers.pl mode change 100755 => 100644 acqui/cancelorder.pl mode change 100755 => 100644 acqui/check_budget_total.pl mode change 100755 => 100644 acqui/check_uniqueness.pl mode change 100755 => 100644 acqui/duplicate_orders.pl mode change 100755 => 100644 acqui/edi_ean.pl mode change 100755 => 100644 acqui/edifactmsgs.pl mode change 100755 => 100644 acqui/edimsg.pl mode change 100755 => 100644 acqui/finishreceive.pl mode change 100755 => 100644 acqui/histsearch.pl mode change 100755 => 100644 acqui/invoice-files.pl mode change 100755 => 100644 acqui/invoice.pl mode change 100755 => 100644 acqui/invoices.pl mode change 100755 => 100644 acqui/lateorders-export.pl mode change 100755 => 100644 acqui/lateorders.pl mode change 100755 => 100644 acqui/modordernotes.pl mode change 100755 => 100644 acqui/neworderempty.pl mode change 100755 => 100644 acqui/newordersubscription.pl mode change 100755 => 100644 acqui/newordersuggestion.pl mode change 100755 => 100644 acqui/ordered.pl mode change 100755 => 100644 acqui/orderreceive.pl mode change 100755 => 100644 acqui/parcel.pl mode change 100755 => 100644 acqui/parcels.pl mode change 100755 => 100644 acqui/showorder.pl mode change 100755 => 100644 acqui/spent.pl mode change 100755 => 100644 acqui/supplier.pl mode change 100755 => 100644 acqui/transferorder.pl mode change 100755 => 100644 acqui/uncertainprice.pl mode change 100755 => 100644 acqui/updatesupplier.pl mode change 100755 => 100644 acqui/z3950_search.pl mode change 100755 => 100644 admin/add_user_search.pl mode change 100755 => 100644 admin/additional-fields.pl mode change 100755 => 100644 admin/admin-home.pl mode change 100755 => 100644 admin/adveditorshortcuts.pl mode change 100755 => 100644 admin/aqbudgetperiods.pl mode change 100755 => 100644 admin/aqbudgets.pl mode change 100755 => 100644 admin/aqcontract.pl mode change 100755 => 100644 admin/aqplan.pl mode change 100755 => 100644 admin/audio_alerts.pl mode change 100755 => 100644 admin/auth_subfields_structure.pl mode change 100755 => 100644 admin/auth_tag_structure.pl mode change 100755 => 100644 admin/authorised_values.pl mode change 100755 => 100644 admin/authtypes.pl mode change 100755 => 100644 admin/background_jobs.pl mode change 100755 => 100644 admin/biblio_framework.pl mode change 100755 => 100644 admin/branch_transfer_limits.pl mode change 100755 => 100644 admin/branches.pl mode change 100755 => 100644 admin/cash_registers.pl mode change 100755 => 100644 admin/categories.pl mode change 100755 => 100644 admin/check_budget_parent.pl mode change 100755 => 100644 admin/check_parent_total.pl mode change 100755 => 100644 admin/checkmarc.pl mode change 100755 => 100644 admin/cities.pl mode change 100755 => 100644 admin/classsources.pl mode change 100755 => 100644 admin/clone-rules.pl mode change 100755 => 100644 admin/columns_settings.pl mode change 100755 => 100644 admin/credit_types.pl mode change 100755 => 100644 admin/currency.pl mode change 100755 => 100644 admin/debit_types.pl mode change 100755 => 100644 admin/desks.pl mode change 100755 => 100644 admin/didyoumean.pl mode change 100755 => 100644 admin/edi_accounts.pl mode change 100755 => 100644 admin/edi_ean_accounts.pl mode change 100755 => 100644 admin/import_export_framework.pl mode change 100755 => 100644 admin/item_circulation_alerts.pl mode change 100755 => 100644 admin/items_search_field.pl mode change 100755 => 100644 admin/items_search_fields.pl mode change 100755 => 100644 admin/itemtypes.pl mode change 100755 => 100644 admin/koha2marclinks.pl mode change 100755 => 100644 admin/library_groups.pl mode change 100755 => 100644 admin/localization.pl mode change 100755 => 100644 admin/marc_subfields_structure.pl mode change 100755 => 100644 admin/marctagstructure.pl mode change 100755 => 100644 admin/matching-rules.pl mode change 100755 => 100644 admin/oai_set_mappings.pl mode change 100755 => 100644 admin/oai_sets.pl mode change 100755 => 100644 admin/overdrive.pl mode change 100755 => 100644 admin/patron-attr-types.pl mode change 100755 => 100644 admin/preferences.pl mode change 100755 => 100644 admin/searchengine/elasticsearch/mappings.pl mode change 100755 => 100644 admin/share_content.pl mode change 100755 => 100644 admin/smart-rules.pl mode change 100755 => 100644 admin/sms_providers.pl mode change 100755 => 100644 admin/smtp_servers.pl mode change 100755 => 100644 admin/sru_modmapping.pl mode change 100755 => 100644 admin/systempreferences.pl mode change 100755 => 100644 admin/transfer_limits.pl mode change 100755 => 100644 admin/transport-cost-matrix.pl mode change 100755 => 100644 admin/usage_statistics.pl mode change 100755 => 100644 admin/z3950servers.pl mode change 100755 => 100644 api/v1/app.pl mode change 100755 => 100644 authorities/auth_finder.pl mode change 100755 => 100644 authorities/authorities-home.pl mode change 100755 => 100644 authorities/authorities.pl mode change 100755 => 100644 authorities/blinddetail-biblio-search.pl mode change 100755 => 100644 authorities/detail-biblio-search.pl mode change 100755 => 100644 authorities/detail.pl mode change 100755 => 100644 authorities/export.pl mode change 100755 => 100644 authorities/merge.pl mode change 100755 => 100644 authorities/merge_ajax.pl mode change 100755 => 100644 authorities/ysearch.pl mode change 100755 => 100644 basket/basket.pl mode change 100755 => 100644 basket/downloadcart.pl mode change 100755 => 100644 basket/sendbasket.pl mode change 100755 => 100644 catalogue/ISBDdetail.pl mode change 100755 => 100644 catalogue/MARCdetail.pl mode change 100755 => 100644 catalogue/detail.pl mode change 100755 => 100644 catalogue/export.pl mode change 100755 => 100644 catalogue/getitem-ajax.pl mode change 100755 => 100644 catalogue/image.pl mode change 100755 => 100644 catalogue/imageviewer.pl mode change 100755 => 100644 catalogue/issuehistory.pl mode change 100755 => 100644 catalogue/item-export.pl mode change 100755 => 100644 catalogue/itemsearch.pl mode change 100755 => 100644 catalogue/labeledMARCdetail.pl mode change 100755 => 100644 catalogue/moredetail.pl mode change 100755 => 100644 catalogue/search-history.pl mode change 100755 => 100644 catalogue/search.pl mode change 100755 => 100644 catalogue/showmarc.pl mode change 100755 => 100644 catalogue/stockrotation.pl mode change 100755 => 100644 catalogue/updateitem.pl mode change 100755 => 100644 cataloguing/addbiblio.pl mode change 100755 => 100644 cataloguing/addbooks.pl mode change 100755 => 100644 cataloguing/additem.pl mode change 100755 => 100644 cataloguing/editor.pl mode change 100755 => 100644 cataloguing/linkitem.pl mode change 100755 => 100644 cataloguing/merge.pl mode change 100755 => 100644 cataloguing/merge_ajax.pl mode change 100755 => 100644 cataloguing/moveitem.pl mode change 100755 => 100644 cataloguing/plugin_launcher.pl mode change 100755 => 100644 cataloguing/value_builder/EXAMPLE.pl mode change 100755 => 100644 cataloguing/value_builder/barcode.pl mode change 100755 => 100644 cataloguing/value_builder/barcode_manual.pl mode change 100755 => 100644 cataloguing/value_builder/callnumber-KU.pl mode change 100755 => 100644 cataloguing/value_builder/callnumber.pl mode change 100755 => 100644 cataloguing/value_builder/cn_browser.pl mode change 100755 => 100644 cataloguing/value_builder/dateaccessioned.pl mode change 100755 => 100644 cataloguing/value_builder/macles.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_005.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_006.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_007.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_008.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_008_authorities.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_008_classifications.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_245h.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_field_260b.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_leader.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_leader_authorities.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_linking_section.pl mode change 100755 => 100644 cataloguing/value_builder/marc21_orgcode.pl mode change 100755 => 100644 cataloguing/value_builder/normarc_field_007.pl mode change 100755 => 100644 cataloguing/value_builder/normarc_field_008.pl mode change 100755 => 100644 cataloguing/value_builder/normarc_leader.pl mode change 100755 => 100644 cataloguing/value_builder/stocknumber.pl mode change 100755 => 100644 cataloguing/value_builder/stocknumberAV.pl mode change 100755 => 100644 cataloguing/value_builder/stocknumberam123.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_010.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_100.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_100_authorities.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_105.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_106.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_110.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_115a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_115b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_116.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_117.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_120.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_121a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_121b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_122.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123d.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123e.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123f.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123g.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123i.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_123j.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124c.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124d.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124e.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124f.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_124g.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_125.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_125a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_125b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_126.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_126a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_126b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_127.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_128a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_128b.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_128c.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_130.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_135a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_140.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_141.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_210c.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_210c_bis.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_225a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_225a_bis.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_4XX.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_686a.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_field_700-4.pl mode change 100755 => 100644 cataloguing/value_builder/unimarc_leader.pl mode change 100755 => 100644 cataloguing/value_builder/upload.pl mode change 100755 => 100644 cataloguing/ysearch.pl mode change 100755 => 100644 cataloguing/z3950_auth_search.pl mode change 100755 => 100644 cataloguing/z3950_search.pl mode change 100755 => 100644 changelanguage.pl mode change 100755 => 100644 circ/add_message.pl mode change 100755 => 100644 circ/article-request-slip.pl mode change 100755 => 100644 circ/article-requests.pl mode change 100755 => 100644 circ/bookcount.pl mode change 100755 => 100644 circ/branchoverdues.pl mode change 100755 => 100644 circ/branchtransfers.pl mode change 100755 => 100644 circ/checkout-notes.pl mode change 100755 => 100644 circ/circulation-home.pl mode change 100755 => 100644 circ/circulation.pl mode change 100755 => 100644 circ/del_message.pl mode change 100755 => 100644 circ/hold-transfer-slip.pl mode change 100755 => 100644 circ/offline-mf.pl mode change 100755 => 100644 circ/offline.pl mode change 100755 => 100644 circ/on-site_checkouts.pl mode change 100755 => 100644 circ/overdue.pl mode change 100755 => 100644 circ/pendingreserves.pl mode change 100755 => 100644 circ/renew.pl mode change 100755 => 100644 circ/request-article.pl mode change 100755 => 100644 circ/reserveratios.pl mode change 100755 => 100644 circ/returns.pl mode change 100755 => 100644 circ/set-library.pl mode change 100755 => 100644 circ/transfer-slip.pl mode change 100755 => 100644 circ/transfers_to_send.pl mode change 100755 => 100644 circ/transferstoreceive.pl mode change 100755 => 100644 circ/view_holdsqueue.pl mode change 100755 => 100644 circ/waitingreserves.pl mode change 100755 => 100644 circ/ysearch.pl mode change 100755 => 100644 clubs/club-enrollments.pl mode change 100755 => 100644 clubs/clubs-add-modify.pl mode change 100755 => 100644 clubs/clubs.pl mode change 100755 => 100644 clubs/patron-clubs-tab.pl mode change 100755 => 100644 clubs/patron-enroll.pl mode change 100755 => 100644 clubs/templates-add-modify.pl mode change 100755 => 100644 course_reserves/add_items.pl mode change 100755 => 100644 course_reserves/batch_add_items.pl mode change 100755 => 100644 course_reserves/batch_rm_items.pl mode change 100755 => 100644 course_reserves/course-details.pl mode change 100755 => 100644 course_reserves/course-reserves.pl mode change 100755 => 100644 course_reserves/course.pl mode change 100755 => 100644 course_reserves/mod_course.pl mode change 100755 => 100644 docs/CAS/CASProxy/examples/koha_webservice.pl mode change 100755 => 100644 docs/CAS/CASProxy/examples/proxy_cas.pl mode change 100755 => 100644 docs/CAS/CASProxy/examples/proxy_cas_callback.pl mode change 100755 => 100644 docs/CAS/CASProxy/examples/proxy_cas_data.pl mode change 100755 => 100644 errors/400.pl mode change 100755 => 100644 errors/401.pl mode change 100755 => 100644 errors/402.pl mode change 100755 => 100644 errors/403.pl mode change 100755 => 100644 errors/404.pl mode change 100755 => 100644 errors/500.pl mode change 100755 => 100644 help.pl mode change 100755 => 100644 ill/ill-requests.pl mode change 100755 => 100644 installer/data/mysql/backfill_statistics.pl mode change 100755 => 100644 installer/data/mysql/fix_unclosed_nonaccruing_fines_bug17135.pl mode change 100755 => 100644 installer/data/mysql/labels_upgrade.pl mode change 100755 => 100644 installer/data/mysql/patroncards_upgrade.pl mode change 100755 => 100644 installer/data/mysql/update22to30.pl mode change 100755 => 100644 installer/data/mysql/updatedatabase.pl mode change 100755 => 100644 installer/externalmodules.pl mode change 100755 => 100644 installer/html-template-to-template-toolkit.pl mode change 100755 => 100644 installer/install.pl mode change 100755 => 100644 installer/onboarding.pl mode change 100755 => 100644 koha_perl_deps.pl mode change 100755 => 100644 kohaversion.pl mode change 100755 => 100644 labels/label-create-csv.pl mode change 100755 => 100644 labels/label-create-pdf.pl mode change 100755 => 100644 labels/label-create-xml.pl mode change 100755 => 100644 labels/label-edit-batch.pl mode change 100755 => 100644 labels/label-edit-layout.pl mode change 100755 => 100644 labels/label-edit-profile.pl mode change 100755 => 100644 labels/label-edit-range.pl mode change 100755 => 100644 labels/label-edit-template.pl mode change 100755 => 100644 labels/label-home.pl mode change 100755 => 100644 labels/label-item-search.pl mode change 100755 => 100644 labels/label-manage.pl mode change 100755 => 100644 labels/label-print.pl mode change 100755 => 100644 labels/spinelabel-home.pl mode change 100755 => 100644 labels/spinelabel-print.pl mode change 100755 => 100644 mainpage.pl mode change 100755 => 100644 members/accountline-details.pl mode change 100755 => 100644 members/apikeys.pl mode change 100755 => 100644 members/boraccount.pl mode change 100755 => 100644 members/cancel-charge.pl mode change 100755 => 100644 members/default_messageprefs.pl mode change 100755 => 100644 members/deletemem.pl mode change 100755 => 100644 members/discharge.pl mode change 100755 => 100644 members/discharges.pl mode change 100755 => 100644 members/files.pl mode change 100755 => 100644 members/guarantor_search.pl mode change 100755 => 100644 members/holdshistory.pl mode change 100755 => 100644 members/housebound.pl mode change 100755 => 100644 members/ill-requests.pl mode change 100755 => 100644 members/mancredit.pl mode change 100755 => 100644 members/maninvoice.pl mode change 100755 => 100644 members/member-flags.pl mode change 100755 => 100644 members/member-password.pl mode change 100755 => 100644 members/member.pl mode change 100755 => 100644 members/memberentry.pl mode change 100755 => 100644 members/members-home.pl mode change 100755 => 100644 members/members-update-do.pl mode change 100755 => 100644 members/members-update.pl mode change 100755 => 100644 members/merge-patrons.pl mode change 100755 => 100644 members/mod_debarment.pl mode change 100755 => 100644 members/moremember.pl mode change 100755 => 100644 members/notices.pl mode change 100755 => 100644 members/patronimage.pl mode change 100755 => 100644 members/pay.pl mode change 100755 => 100644 members/paycollect.pl mode change 100755 => 100644 members/print_overdues.pl mode change 100755 => 100644 members/printfeercpt.pl mode change 100755 => 100644 members/printinvoice.pl mode change 100755 => 100644 members/printslip.pl mode change 100755 => 100644 members/purchase-suggestions.pl mode change 100755 => 100644 members/readingrec.pl mode change 100755 => 100644 members/routing-lists.pl mode change 100755 => 100644 members/setstatus.pl mode change 100755 => 100644 members/statistics.pl mode change 100755 => 100644 members/summary-print.pl mode change 100755 => 100644 members/update-child.pl mode change 100755 => 100644 misc/add_date_fields_to_marc_records.pl mode change 100755 => 100644 misc/admin/set_password.pl mode change 100755 => 100644 misc/background_jobs_worker.pl mode change 100755 => 100644 misc/batchCompareMARCvsFrameworks.pl mode change 100755 => 100644 misc/batchDeleteUnusedSubfields.pl mode change 100755 => 100644 misc/batchImportMARCWithBiblionumbers.pl mode change 100755 => 100644 misc/batchRebuildBiblioTables.pl mode change 100755 => 100644 misc/batchRebuildItemsTables.pl mode change 100755 => 100644 misc/batchRepairMissingBiblionumbers.pl mode change 100755 => 100644 misc/batchdeletebiblios.pl mode change 100755 => 100644 misc/bin/clear_cache.pl mode change 100755 => 100644 misc/bin/connexion_import_daemon.pl mode change 100755 => 100644 misc/check_sysprefs.pl mode change 100755 => 100644 misc/commit_file.pl mode change 100755 => 100644 misc/cronjobs/advance_notices.pl mode change 100755 => 100644 misc/cronjobs/archive_purchase_suggestions.pl mode change 100755 => 100644 misc/cronjobs/automatic_checkin.pl mode change 100755 => 100644 misc/cronjobs/automatic_item_modification_by_age.pl mode change 100755 => 100644 misc/cronjobs/automatic_renewals.pl mode change 100755 => 100644 misc/cronjobs/batch_anonymise.pl mode change 100755 => 100644 misc/cronjobs/build_browser_and_cloud.pl mode change 100755 => 100644 misc/cronjobs/cart_to_shelf.pl mode change 100755 => 100644 misc/cronjobs/check-url-quick.pl mode change 100755 => 100644 misc/cronjobs/cleanup_database.pl mode change 100755 => 100644 misc/cronjobs/cloud-kw.pl mode change 100755 => 100644 misc/cronjobs/create_koc_db.pl mode change 100755 => 100644 misc/cronjobs/delete_items.pl mode change 100755 => 100644 misc/cronjobs/delete_patrons.pl mode change 100755 => 100644 misc/cronjobs/delete_records_via_leader.pl mode change 100755 => 100644 misc/cronjobs/edi_cron.pl mode change 100755 => 100644 misc/cronjobs/fines.pl mode change 100755 => 100644 misc/cronjobs/gather_print_notices.pl mode change 100755 => 100644 misc/cronjobs/holds/auto_unsuspend_holds.pl mode change 100755 => 100644 misc/cronjobs/holds/build_holds_queue.pl mode change 100755 => 100644 misc/cronjobs/holds/cancel_expired_holds.pl mode change 100755 => 100644 misc/cronjobs/holds/cancel_unfilled_holds.pl mode change 100755 => 100644 misc/cronjobs/holds/holds_reminder.pl mode change 100755 => 100644 misc/cronjobs/import_webservice_batch.pl mode change 100755 => 100644 misc/cronjobs/longoverdue.pl mode change 100755 => 100644 misc/cronjobs/membership_expiry.pl mode change 100755 => 100644 misc/cronjobs/merge_authorities.pl mode change 100755 => 100644 misc/cronjobs/notice_unprocessed_suggestions.pl mode change 100755 => 100644 misc/cronjobs/overdue_notices.pl mode change 100755 => 100644 misc/cronjobs/patron_emailer.pl mode change 100755 => 100644 misc/cronjobs/plugins_nightly.pl mode change 100755 => 100644 misc/cronjobs/process_message_queue.pl mode change 100755 => 100644 misc/cronjobs/purge_suggestions.pl mode change 100755 => 100644 misc/cronjobs/reconcile_balances.pl mode change 100755 => 100644 misc/cronjobs/remove_temporary_edifiles.pl mode change 100755 => 100644 misc/cronjobs/rss/rss.pl mode change 100755 => 100644 misc/cronjobs/runreport.pl mode change 100755 => 100644 misc/cronjobs/serialsUpdate.pl mode change 100755 => 100644 misc/cronjobs/share_usage_with_koha_community.pl mode change 100755 => 100644 misc/cronjobs/sitemap.pl mode change 100755 => 100644 misc/cronjobs/social_data/get_report_social_data.pl mode change 100755 => 100644 misc/cronjobs/social_data/update_social_data.pl mode change 100755 => 100644 misc/cronjobs/staticfines.pl mode change 100755 => 100644 misc/cronjobs/stockrotation.pl mode change 100755 => 100644 misc/cronjobs/thirdparty/TalkingTech_itiva_inbound.pl mode change 100755 => 100644 misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl mode change 100755 => 100644 misc/cronjobs/update_patrons_category.pl mode change 100755 => 100644 misc/cronjobs/update_totalissues.pl mode change 100755 => 100644 misc/cronjobs/writeoff_debts.pl mode change 100755 => 100644 misc/devel/add_missing_filters.pl mode change 100755 => 100644 misc/devel/coverage.pl mode change 100755 => 100644 misc/devel/create_superlibrarian.pl mode change 100755 => 100644 misc/devel/get_prepared_letter.pl mode change 100755 => 100644 misc/devel/install_plugins.pl mode change 100755 => 100644 misc/devel/update_dbix_class_files.pl mode change 100755 => 100644 misc/export_borrowers.pl mode change 100755 => 100644 misc/export_records.pl mode change 100755 => 100644 misc/exportauth.pl mode change 100755 => 100644 misc/import_patrons.pl mode change 100755 => 100644 misc/kohalib.pl mode change 100755 => 100644 misc/link_bibs_to_authorities.pl mode change 100755 => 100644 misc/load_testing/benchmark_circulation.pl mode change 100755 => 100644 misc/load_testing/benchmark_staff.pl mode change 100755 => 100644 misc/load_testing/benchmark_webservices.pl mode change 100755 => 100644 misc/load_yaml.pl mode change 100755 => 100644 misc/maintenance/UNIMARC_fix_collectiontitle.pl mode change 100755 => 100644 misc/maintenance/UNIMARC_sync_date_created_with_marc_biblio.pl mode change 100755 => 100644 misc/maintenance/auth_show_hidden_data.pl mode change 100755 => 100644 misc/maintenance/borrowers-force-messaging-defaults.pl mode change 100755 => 100644 misc/maintenance/check_syspref_cache.pl mode change 100755 => 100644 misc/maintenance/cmp_sysprefs.pl mode change 100755 => 100644 misc/maintenance/compare_es_to_db.pl mode change 100755 => 100644 misc/maintenance/fix_accountlines_date.pl mode change 100755 => 100644 misc/maintenance/fix_accountlines_rmdupfines_bug8253.pl mode change 100755 => 100644 misc/maintenance/fix_mysql_constraints.pl mode change 100755 => 100644 misc/maintenance/fix_tags_weight.pl mode change 100755 => 100644 misc/maintenance/generate_MARC21Languages.pl mode change 100755 => 100644 misc/maintenance/process_record_through_filter.pl mode change 100755 => 100644 misc/maintenance/remove_items_from_biblioitems.pl mode change 100755 => 100644 misc/maintenance/sanitize_records.pl mode change 100755 => 100644 misc/maintenance/search_for_data_inconsistencies.pl mode change 100755 => 100644 misc/maintenance/touch_all_biblios.pl mode change 100755 => 100644 misc/maintenance/touch_all_items.pl mode change 100755 => 100644 misc/maintenance/update_authorities.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/convert_to_utf8.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/export_Authorities.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/export_Authorities_xml.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/missing090field.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/move_marc_to_authheader.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/rebuild_leader.pl mode change 100755 => 100644 misc/migration_tools/22_to_30/rebuild_unimarc_100.pl mode change 100755 => 100644 misc/migration_tools/buildCOUNTRY.pl mode change 100755 => 100644 misc/migration_tools/buildEDITORS.pl mode change 100755 => 100644 misc/migration_tools/buildLANG.pl mode change 100755 => 100644 misc/migration_tools/build_oai_sets.pl mode change 100755 => 100644 misc/migration_tools/bulkmarcimport.pl mode change 100755 => 100644 misc/migration_tools/checkNonIndexedBiblios.pl mode change 100755 => 100644 misc/migration_tools/create_analytical_rel.pl mode change 100755 => 100644 misc/migration_tools/ifla/update.pl mode change 100755 => 100644 misc/migration_tools/import_lexile.pl mode change 100755 => 100644 misc/migration_tools/koha-svc.pl mode change 100755 => 100644 misc/migration_tools/rebuild_zebra.pl mode change 100755 => 100644 misc/migration_tools/remove_unused_authorities.pl mode change 100755 => 100644 misc/migration_tools/switch_marc21_series_info.pl mode change 100755 => 100644 misc/migration_tools/upgradeitems.pl mode change 100755 => 100644 misc/mod_zebraqueue.pl mode change 100755 => 100644 misc/perlmodule_ls.pl mode change 100755 => 100644 misc/perlmodule_rm.pl mode change 100755 => 100644 misc/recreateIssueStatistics.pl mode change 100755 => 100644 misc/sax_parser_print.pl mode change 100755 => 100644 misc/sax_parser_test.pl mode change 100755 => 100644 misc/search_tools/export_elasticsearch_mappings.pl mode change 100755 => 100644 misc/search_tools/rebuild_elasticsearch.pl mode change 100755 => 100644 misc/sip_cli_emulator.pl mode change 100755 => 100644 misc/stage_file.pl mode change 100755 => 100644 misc/translator/tmpl_process3.pl mode change 100755 => 100644 misc/translator/xgettext.pl mode change 100755 => 100644 misc/z3950_responder.pl mode change 100755 => 100644 offline_circ/download.pl mode change 100755 => 100644 offline_circ/enqueue_koc.pl mode change 100755 => 100644 offline_circ/list.pl mode change 100755 => 100644 offline_circ/process.pl mode change 100755 => 100644 offline_circ/process_koc.pl mode change 100755 => 100644 offline_circ/service.pl mode change 100755 => 100644 opac/clubs/clubs-tab.pl mode change 100755 => 100644 opac/clubs/enroll.pl mode change 100755 => 100644 opac/errors/400.pl mode change 100755 => 100644 opac/errors/401.pl mode change 100755 => 100644 opac/errors/402.pl mode change 100755 => 100644 opac/errors/403.pl mode change 100755 => 100644 opac/errors/404.pl mode change 100755 => 100644 opac/errors/500.pl mode change 100755 => 100644 opac/external/overdrive/auth.pl mode change 100755 => 100644 opac/ilsdi.pl mode change 100755 => 100644 opac/maintenance.pl mode change 100755 => 100644 opac/oai.pl mode change 100755 => 100644 opac/opac-ISBDdetail.pl mode change 100755 => 100644 opac/opac-MARCdetail.pl mode change 100755 => 100644 opac/opac-account-pay-return.pl mode change 100755 => 100644 opac/opac-account-pay.pl mode change 100755 => 100644 opac/opac-account.pl mode change 100755 => 100644 opac/opac-addbybiblionumber.pl mode change 100755 => 100644 opac/opac-alert-subscribe.pl mode change 100755 => 100644 opac/opac-article-request-cancel.pl mode change 100755 => 100644 opac/opac-authorities-home.pl mode change 100755 => 100644 opac/opac-authoritiesdetail.pl mode change 100755 => 100644 opac/opac-basket.pl mode change 100755 => 100644 opac/opac-blocked.pl mode change 100755 => 100644 opac/opac-browse.pl mode change 100755 => 100644 opac/opac-browser.pl mode change 100755 => 100644 opac/opac-changelanguage.pl mode change 100755 => 100644 opac/opac-course-details.pl mode change 100755 => 100644 opac/opac-course-reserves.pl mode change 100755 => 100644 opac/opac-detail.pl mode change 100755 => 100644 opac/opac-discharge.pl mode change 100755 => 100644 opac/opac-downloadcart.pl mode change 100755 => 100644 opac/opac-downloadshelf.pl mode change 100755 => 100644 opac/opac-export.pl mode change 100755 => 100644 opac/opac-holdshistory.pl mode change 100755 => 100644 opac/opac-ics.pl mode change 100755 => 100644 opac/opac-idref.pl mode change 100755 => 100644 opac/opac-illrequests.pl mode change 100755 => 100644 opac/opac-image.pl mode change 100755 => 100644 opac/opac-imageviewer.pl mode change 100755 => 100644 opac/opac-issue-note.pl mode change 100755 => 100644 opac/opac-library.pl mode change 100755 => 100644 opac/opac-main.pl mode change 100755 => 100644 opac/opac-memberentry.pl mode change 100755 => 100644 opac/opac-messaging.pl mode change 100755 => 100644 opac/opac-modrequest-suspend.pl mode change 100755 => 100644 opac/opac-modrequest.pl mode change 100755 => 100644 opac/opac-mymessages.pl mode change 100755 => 100644 opac/opac-news-rss.pl mode change 100755 => 100644 opac/opac-overdrive-search.pl mode change 100755 => 100644 opac/opac-passwd.pl mode change 100755 => 100644 opac/opac-password-recovery.pl mode change 100755 => 100644 opac/opac-patron-consent.pl mode change 100755 => 100644 opac/opac-patron-image.pl mode change 100755 => 100644 opac/opac-privacy.pl mode change 100755 => 100644 opac/opac-ratings-ajax.pl mode change 100755 => 100644 opac/opac-ratings.pl mode change 100755 => 100644 opac/opac-readingrecord.pl mode change 100755 => 100644 opac/opac-recordedbooks-search.pl mode change 100755 => 100644 opac/opac-registration-verify.pl mode change 100755 => 100644 opac/opac-renew.pl mode change 100755 => 100644 opac/opac-reportproblem.pl mode change 100755 => 100644 opac/opac-request-article.pl mode change 100755 => 100644 opac/opac-reserve.pl mode change 100755 => 100644 opac/opac-restrictedpage.pl mode change 100755 => 100644 opac/opac-retrieve-file.pl mode change 100755 => 100644 opac/opac-review.pl mode change 100755 => 100644 opac/opac-routing-lists.pl mode change 100755 => 100644 opac/opac-search-history.pl mode change 100755 => 100644 opac/opac-search.pl mode change 100755 => 100644 opac/opac-sendbasket.pl mode change 100755 => 100644 opac/opac-sendshelf.pl mode change 100755 => 100644 opac/opac-serial-issues.pl mode change 100755 => 100644 opac/opac-shareshelf.pl mode change 100755 => 100644 opac/opac-shelves.pl mode change 100755 => 100644 opac/opac-showmarc.pl mode change 100755 => 100644 opac/opac-showreviews.pl mode change 100755 => 100644 opac/opac-suggestions.pl mode change 100755 => 100644 opac/opac-tags.pl mode change 100755 => 100644 opac/opac-tags_subject.pl mode change 100755 => 100644 opac/opac-topissues.pl mode change 100755 => 100644 opac/opac-user.pl mode change 100755 => 100644 opac/sci/sci-main.pl mode change 100755 => 100644 opac/sco/help.pl mode change 100755 => 100644 opac/sco/printslip.pl mode change 100755 => 100644 opac/sco/sco-main.pl mode change 100755 => 100644 opac/sco/sco-patron-image.pl mode change 100755 => 100644 opac/svc/shelfbrowser.pl mode change 100755 => 100644 opac/tracklinks.pl mode change 100755 => 100644 patron_lists/add-modify.pl mode change 100755 => 100644 patron_lists/delete.pl mode change 100755 => 100644 patron_lists/list.pl mode change 100755 => 100644 patron_lists/lists.pl mode change 100755 => 100644 patron_lists/patrons.pl mode change 100755 => 100644 patroncards/add_user_search.pl mode change 100755 => 100644 patroncards/create-pdf.pl mode change 100755 => 100644 patroncards/edit-batch.pl mode change 100755 => 100644 patroncards/edit-layout.pl mode change 100755 => 100644 patroncards/edit-profile.pl mode change 100755 => 100644 patroncards/edit-template.pl mode change 100755 => 100644 patroncards/home.pl mode change 100755 => 100644 patroncards/image-manage.pl mode change 100755 => 100644 patroncards/manage.pl mode change 100755 => 100644 patroncards/print.pl mode change 100755 => 100644 plugins/plugins-enable.pl mode change 100755 => 100644 plugins/plugins-home.pl mode change 100755 => 100644 plugins/plugins-uninstall.pl mode change 100755 => 100644 plugins/plugins-upload.pl mode change 100755 => 100644 plugins/run.pl mode change 100755 => 100644 pos/pay.pl mode change 100755 => 100644 pos/printreceipt.pl mode change 100755 => 100644 pos/register.pl mode change 100755 => 100644 pos/registers.pl mode change 100755 => 100644 reports/acquisitions_stats.pl mode change 100755 => 100644 reports/bor_issues_top.pl mode change 100755 => 100644 reports/borrowers_out.pl mode change 100755 => 100644 reports/borrowers_stats.pl mode change 100755 => 100644 reports/cash_register_stats.pl mode change 100755 => 100644 reports/cat_issues_top.pl mode change 100755 => 100644 reports/catalogue_out.pl mode change 100755 => 100644 reports/catalogue_stats.pl mode change 100755 => 100644 reports/dictionary.pl mode change 100755 => 100644 reports/guided_reports.pl mode change 100755 => 100644 reports/issues_avg_stats.pl mode change 100755 => 100644 reports/issues_stats.pl mode change 100755 => 100644 reports/itemslost.pl mode change 100755 => 100644 reports/manager.pl mode change 100755 => 100644 reports/orders_by_fund.pl mode change 100755 => 100644 reports/reports-home.pl mode change 100755 => 100644 reports/reserves_stats.pl mode change 100755 => 100644 reports/serials_stats.pl mode change 100755 => 100644 reserve/modrequest.pl mode change 100755 => 100644 reserve/modrequest_suspendall.pl mode change 100755 => 100644 reserve/placerequest.pl mode change 100755 => 100644 reserve/request.pl mode change 100755 => 100644 reviews/reviewswaiting.pl mode change 100755 => 100644 rotating_collections/addItems.pl mode change 100755 => 100644 rotating_collections/editCollections.pl mode change 100755 => 100644 rotating_collections/rotatingCollections.pl mode change 100755 => 100644 rotating_collections/transferCollection.pl mode change 100755 => 100644 serials/acqui-search-result.pl mode change 100755 => 100644 serials/acqui-search.pl mode change 100755 => 100644 serials/add_user_search.pl mode change 100755 => 100644 serials/checkexpiration.pl mode change 100755 => 100644 serials/claims.pl mode change 100755 => 100644 serials/create-numberpattern.pl mode change 100755 => 100644 serials/lateissues-export.pl mode change 100755 => 100644 serials/reorder_members.pl mode change 100755 => 100644 serials/routing-preview.pl mode change 100755 => 100644 serials/routing.pl mode change 100755 => 100644 serials/serials-collection.pl mode change 100755 => 100644 serials/serials-edit.pl mode change 100755 => 100644 serials/serials-home.pl mode change 100755 => 100644 serials/serials-search.pl mode change 100755 => 100644 serials/showpredictionpattern.pl mode change 100755 => 100644 serials/subscription-add.pl mode change 100755 => 100644 serials/subscription-batchedit.pl mode change 100755 => 100644 serials/subscription-bib-search.pl mode change 100755 => 100644 serials/subscription-detail.pl mode change 100755 => 100644 serials/subscription-frequencies.pl mode change 100755 => 100644 serials/subscription-frequency.pl mode change 100755 => 100644 serials/subscription-history.pl mode change 100755 => 100644 serials/subscription-numberpattern.pl mode change 100755 => 100644 serials/subscription-numberpatterns.pl mode change 100755 => 100644 serials/subscription-renew.pl mode change 100755 => 100644 serials/viewalerts.pl mode change 100755 => 100644 services/itemrecorddisplay.pl mode change 100755 => 100644 suggestion/add_user_search.pl mode change 100755 => 100644 suggestion/suggestion.pl mode change 100755 => 100644 svc/cataloguing/automatic_linker.pl mode change 100755 => 100644 t/Koha/sleep.pl mode change 100755 => 100644 t/Koha/wait.pl mode change 100755 => 100644 t/db_dependent/LDAP/test_ldap_add.pl mode change 100755 => 100644 t/db_dependent/zebra_config.pl mode change 100755 => 100644 t/etc/schema.pl mode change 100755 => 100644 tags/list.pl mode change 100755 => 100644 tags/review.pl mode change 100755 => 100644 tools/access_files.pl mode change 100755 => 100644 tools/ajax-inventory.pl mode change 100755 => 100644 tools/automatic_item_modification_by_age.pl mode change 100755 => 100644 tools/background-job-progress.pl mode change 100755 => 100644 tools/batchMod.pl mode change 100755 => 100644 tools/batch_delete_records.pl mode change 100755 => 100644 tools/batch_extend_due_dates.pl mode change 100755 => 100644 tools/batch_record_modification.pl mode change 100755 => 100644 tools/batch_records_ajax.pl mode change 100755 => 100644 tools/cleanborrowers.pl mode change 100755 => 100644 tools/copy-holidays.pl mode change 100755 => 100644 tools/csv-profiles.pl mode change 100755 => 100644 tools/exceptionHolidays.pl mode change 100755 => 100644 tools/export.pl mode change 100755 => 100644 tools/holidays.pl mode change 100755 => 100644 tools/import_borrowers.pl mode change 100755 => 100644 tools/inventory.pl mode change 100755 => 100644 tools/koha-news.pl mode change 100755 => 100644 tools/letter.pl mode change 100755 => 100644 tools/manage-marc-import.pl mode change 100755 => 100644 tools/marc_modification_templates.pl mode change 100755 => 100644 tools/modborrowers.pl mode change 100755 => 100644 tools/newHolidays.pl mode change 100755 => 100644 tools/overduerules.pl mode change 100755 => 100644 tools/picture-upload.pl mode change 100755 => 100644 tools/problem-reports.pl mode change 100755 => 100644 tools/quotes-upload.pl mode change 100755 => 100644 tools/quotes.pl mode change 100755 => 100644 tools/scheduler.pl mode change 100755 => 100644 tools/showdiffmarc.pl mode change 100755 => 100644 tools/stage-marc-import.pl mode change 100755 => 100644 tools/stockrotation.pl mode change 100755 => 100644 tools/tools-home.pl mode change 100755 => 100644 tools/upload-cover-image.pl mode change 100755 => 100644 tools/upload-file.pl mode change 100755 => 100644 tools/upload.pl mode change 100755 => 100644 tools/viewlog.pl mode change 100755 => 100644 virtualshelves/addbybiblionumber.pl mode change 100755 => 100644 virtualshelves/downloadshelf.pl mode change 100755 => 100644 virtualshelves/sendshelf.pl mode change 100755 => 100644 virtualshelves/shelves.pl mode change 100755 => 100644 xt/author/show-template-structure.pl mode change 100755 => 100644 xt/yaml_valid.pl --- a/about.pl +++ a/about.pl @@ -24,17 +24,14 @@ use Modern::Perl; use CGI qw ( -utf8 ); use DateTime::TimeZone; -use File::Spec; -use File::Slurp; -use List::MoreUtils qw/ any /; -use LWP::Simple; -use Module::Load::Conditional qw(can_load); -use XML::Simple; -use Config; +use File::Slurp qw( read_file ); +use List::MoreUtils qw( any ); +use Module::Load::Conditional qw( can_load ); +use Config qw( %Config ); use Search::Elasticsearch; -use Try::Tiny; -use YAML::XS; -use Encode; +use Try::Tiny qw( catch try ); +use YAML::XS (); +use Encode (); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user get_user_subpermissions ); @@ -42,7 +39,7 @@ use C4::Context; use C4::Installer::PerlModules; use Koha; -use Koha::DateUtils qw(dt_from_string output_pref); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Acquisition::Currencies; use Koha::BackgroundJob; use Koha::BiblioFrameworks; @@ -56,7 +53,7 @@ use Koha::SearchEngine::Elasticsearch; use Koha::Logger; use Koha::Filter::MARC::ViewPolicy; -use C4::Members::Statistics qw( get_fields ); +use C4::Members::Statistics (); #use Smart::Comments '####'; --- a/acqui/addorder.pl +++ a/acqui/addorder.pl @@ -119,15 +119,20 @@ if it is an order from an existing suggestion : the id of this suggestion. use Modern::Perl; use CGI qw ( -utf8 ); -use JSON qw ( to_json ); +use JSON qw( to_json ); use C4::Auth qw( get_template_and_user ); use C4::Acquisition; # ModOrder use C4::Suggestions; # ModStatus -use C4::Biblio qw( TransformHtmlToXml TransformKohaToMarc AddBiblio GetMarcFromKohaField ); +use C4::Biblio qw( + AddBiblio + GetMarcFromKohaField + TransformHtmlToXml + TransformKohaToMarc +); use C4::Budgets; -use C4::Items qw( sub AddItemFromMarc ); +use C4::Items qw( AddItemFromMarc ); use C4::Output qw( output_html_with_http_headers ); -use C4::Log qw(logaction); +use C4::Log qw( logaction ); use Koha::Acquisition::Currencies; use Koha::Acquisition::Orders; use Koha::Acquisition::Baskets; --- a/acqui/addorderiso2709.pl +++ a/acqui/addorderiso2709.pl @@ -23,10 +23,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Carp; -use YAML::XS; -use List::MoreUtils qw/uniq/; -use Encode; +use YAML::XS (); +use List::MoreUtils (); +use Encode (); use C4::Context; use C4::Auth qw( get_template_and_user ); @@ -35,9 +34,14 @@ use C4::ImportBatch qw( GetImportRecordsRange GetImportRecordMarc GetImportRecor use C4::Matcher; use C4::Search qw( FindDuplicate ); use C4::Acquisition; -use C4::Biblio qw( GetMarcQuantity GetMarcFromKohaField AddBiblio GetMarcPrice TransformHtmlToXml ); -use C4::Items qw( PrepareItemrecordDisplay sub AddItemFromMarc ); -use C4::Koha; +use C4::Biblio qw( + AddBiblio + GetMarcFromKohaField + GetMarcPrice + GetMarcQuantity + TransformHtmlToXml +); +use C4::Items qw( AddItemFromMarc PrepareItemrecordDisplay ); use C4::Budgets; use C4::Acquisition; use C4::Suggestions; # GetSuggestion --- a/acqui/ajax-getauthvaluedropbox.pl +++ a/acqui/ajax-getauthvaluedropbox.pl @@ -48,7 +48,7 @@ Default value for the dropbox. use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Charset qw( NormalizeString ); +use C4::Charset (); use C4::Auth qw( check_api_auth ); use Koha::AuthorisedValues; --- a/acqui/basket.pl +++ a/acqui/basket.pl @@ -22,14 +22,11 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user haspermission ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers output_and_exit ); use CGI qw ( -utf8 ); use C4::Acquisition; use C4::Budgets; -use C4::Contract; -use C4::Biblio; -use C4::Items qw( sub ); +use C4::Contract qw( GetContract ); use C4::Suggestions; use Koha::Biblios; use Koha::Acquisition::Baskets; @@ -37,7 +34,7 @@ use Koha::Acquisition::Booksellers; use Koha::Acquisition::Orders; use Koha::Libraries; use C4::Letters qw( SendAlerts ); -use Date::Calc qw/Add_Delta_Days/; +use Date::Calc qw( Add_Delta_Days ); use Koha::Database; use Koha::EDI qw( create_edi_order ); use Koha::CsvProfiles; --- a/acqui/basketgroup.pl +++ a/acqui/basketgroup.pl @@ -44,14 +44,28 @@ The bookseller who we want to display the baskets (and basketgroups) of. =cut use Modern::Perl; -use Carp; +use Carp qw( croak ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use File::Spec; - -use C4::Acquisition qw/CloseBasketgroup ReOpenBasketgroup GetOrders GetBasketsByBasketgroup GetBasketsByBookseller ModBasketgroup NewBasketgroup DelBasketgroup GetBasketgroups ModBasket GetBasketgroup GetBasket GetBasketGroupAsCSV get_rounded_price/; +use File::Spec (); + +use C4::Acquisition qw( + CloseBasketgroup + DelBasketgroup + get_rounded_price + GetBasketgroup + GetBasketGroupAsCSV + GetBasketgroups + GetBasketsByBasketgroup + GetBasketsByBookseller + GetOrders + ModBasket + ModBasketgroup + NewBasketgroup + ReOpenBasketgroup +); use Koha::EDI qw( get_edifact_ean create_edi_order ); use Koha::Biblioitems; --- a/acqui/basketheader.pl +++ a/acqui/basketheader.pl @@ -51,7 +51,7 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition qw/GetBasket NewBasket ModBasketHeader/; -use C4::Contract qw/GetContracts/; +use C4::Contract qw( GetContracts ); use Koha::Acquisition::Booksellers; use Koha::Acquisition::Baskets; --- a/acqui/booksellers.pl +++ a/acqui/booksellers.pl @@ -53,7 +53,6 @@ The id of the supplier whose baskets we will display use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Budgets; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); --- a/acqui/cancelorder.pl +++ a/acqui/cancelorder.pl @@ -31,7 +31,7 @@ and add possibility to indicate a reason for cancellation use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition; --- a/acqui/check_uniqueness.pl +++ a/acqui/check_uniqueness.pl @@ -32,9 +32,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON; +use JSON qw( to_json ); use C4::Output qw( output_with_http_headers ); -use C4::Items qw( SearchItems ); +use C4::Items (); my $input = CGI->new; my @field = $input->multi_param('field[]'); --- a/acqui/duplicate_orders.pl +++ a/acqui/duplicate_orders.pl @@ -28,7 +28,7 @@ use C4::Budgets qw(GetBudgetPeriods GetBudgetHierarchy CanUserUseBudget); use Koha::Acquisition::Baskets; use Koha::Acquisition::Currencies; use Koha::Acquisition::Orders; -use Koha::DateUtils qw(dt_from_string output_pref); +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my $basketno = $input->param('basketno'); --- a/acqui/edi_ean.pl +++ a/acqui/edi_ean.pl @@ -24,10 +24,9 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use Koha::Database; -use CGI; +use CGI (); my $schema = Koha::Database->new()->schema(); my @eans = $schema->resultset('EdifactEan')->search( --- a/acqui/edifactmsgs.pl +++ a/acqui/edifactmsgs.pl @@ -18,10 +18,9 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use Koha::Database; use Koha::EDI qw( process_invoice ); --- a/acqui/edimsg.pl +++ a/acqui/edimsg.pl @@ -18,7 +18,7 @@ use Modern::Perl; -use CGI; +use CGI (); use Koha::Database; use C4::Koha; use C4::Auth qw( get_template_and_user ); --- a/acqui/finishreceive.pl +++ a/acqui/finishreceive.pl @@ -27,14 +27,13 @@ use C4::Output; use C4::Context; use C4::Acquisition; use C4::Biblio qw( GetFrameworkCode GetMarcFromKohaField TransformHtmlToXml ); -use C4::Items qw( sub GetMarcItem ModItemFromMarc AddItemFromMarc ); +use C4::Items qw( AddItemFromMarc ); use C4::Search; use Koha::Number::Price; use Koha::Acquisition::Booksellers; use Koha::Acquisition::Orders; -use List::MoreUtils qw/any/; my $input=CGI->new; my $flagsrequired = {acquisition => 'order_receive'}; --- a/acqui/histsearch.pl +++ a/acqui/histsearch.pl @@ -54,9 +54,8 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition; -use C4::Koha; use Koha::AdditionalFields; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my $do_search = $input->param('do_search') || 0; --- a/acqui/invoice-files.pl +++ a/acqui/invoice-files.pl @@ -29,7 +29,7 @@ Manage files associated with invoice use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition; --- a/acqui/invoice.pl +++ a/acqui/invoice.pl @@ -36,7 +36,7 @@ use C4::Budgets; use Koha::Acquisition::Booksellers; use Koha::Acquisition::Currencies; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::Misc::Files; use Koha::Acquisition::Invoice::Adjustments; --- a/acqui/invoices.pl +++ a/acqui/invoices.pl @@ -34,7 +34,7 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Acquisition qw/GetInvoices/; use C4::Budgets; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Acquisition::Booksellers; my $input = CGI->new; --- a/acqui/lateorders-export.pl +++ a/acqui/lateorders-export.pl @@ -17,7 +17,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode; +use Encode (); use C4::Auth qw( get_template_and_user ); use C4::Acquisition; --- a/acqui/lateorders.pl +++ a/acqui/lateorders.pl @@ -46,12 +46,11 @@ To know on which branch this script have to display late order. use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Acquisition; -use C4::Letters qw( SendAlerts GetLetters ); -use Koha::DateUtils; +use C4::Letters qw( GetLetters SendAlerts ); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Acquisition::Orders; use Koha::CsvProfiles; --- a/acqui/neworderempty.pl +++ a/acqui/neworderempty.pl @@ -72,12 +72,18 @@ use C4::Auth qw( get_template_and_user ); use C4::Budgets; use C4::Acquisition; -use C4::Contract; +use C4::Contract qw( GetContract ); use C4::Suggestions; # GetSuggestion -use C4::Biblio qw( AddBiblio GetMarcPrice GetMarcStructure GetMarcFromKohaField GetBiblioData IsMarcStructureInternal GetMarcBiblio ); -use C4::Items qw( sub ); +use C4::Biblio qw( + AddBiblio + GetBiblioData + GetMarcBiblio + GetMarcFromKohaField + GetMarcPrice + GetMarcStructure + IsMarcStructureInternal +); use C4::Output qw( output_and_exit output_html_with_http_headers ); -use C4::Koha; use C4::Members; use C4::Search qw( FindDuplicate ); --- a/acqui/newordersuggestion.pl +++ a/acqui/newordersuggestion.pl @@ -94,7 +94,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Suggestions; -use C4::Biblio; use C4::Budgets; use Koha::Acquisition::Booksellers; --- a/acqui/orderreceive.pl +++ a/acqui/orderreceive.pl @@ -67,10 +67,8 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Budgets qw/ GetBudget GetBudgetHierarchy CanUserUseBudget GetBudgetPeriods /; use C4::Members; -use C4::Items qw( sub ); use C4::Biblio qw( GetMarcStructure ); use C4::Suggestions; -use C4::Koha; use Koha::Acquisition::Booksellers; use Koha::Acquisition::Currencies; --- a/acqui/parcel.pl +++ a/acqui/parcel.pl @@ -59,8 +59,6 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Acquisition; use C4::Budgets; -use C4::Biblio; -use C4::Items qw( sub ); use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Suggestions; @@ -69,10 +67,8 @@ use Koha::Acquisition::Baskets; use Koha::Acquisition::Bookseller; use Koha::Acquisition::Orders; use Koha::Biblios; -use Koha::DateUtils; use Koha::Biblios; -use JSON; my $input = CGI->new; --- a/acqui/parcels.pl +++ a/acqui/parcels.pl @@ -75,7 +75,7 @@ use C4::Acquisition; use C4::Budgets; use Koha::Acquisition::Booksellers; -use Koha::DateUtils qw( output_pref dt_from_string ); +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my $booksellerid = $input->param('booksellerid'); --- a/acqui/supplier.pl +++ a/acqui/supplier.pl @@ -42,8 +42,7 @@ To know the bookseller this script has to display details. use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use C4::Contract; -use C4::Biblio; +use C4::Contract qw( GetContracts ); use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); --- a/acqui/uncertainprice.pl +++ a/acqui/uncertainprice.pl @@ -50,7 +50,6 @@ use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Acquisition qw/SearchOrders GetOrder ModOrder/; -use C4::Biblio qw/GetBiblioData/; use Koha::Acquisition::Booksellers; use Koha::Acquisition::Baskets; --- a/acqui/updatesupplier.pl +++ a/acqui/updatesupplier.pl @@ -47,11 +47,9 @@ contact_serialsprimary. =cut use Modern::Perl; -use List::Util; use C4::Context; use C4::Auth qw( checkauth ); -use C4::Biblio; use C4::Output; use Koha::Acquisition::Bookseller::Contacts; --- a/acqui/z3950_search.pl +++ a/acqui/z3950_search.pl @@ -26,7 +26,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Breeding qw( Z3950Search ); -use C4::Koha; use Koha::Acquisition::Booksellers; use Koha::BiblioFrameworks; --- a/admin/additional-fields.pl +++ a/admin/additional-fields.pl @@ -17,9 +17,8 @@ # with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use Koha::AdditionalFields; --- a/admin/adveditorshortcuts.pl +++ a/admin/adveditorshortcuts.pl @@ -34,13 +34,11 @@ This script allows the user to redefine the keyboard shortcuts for the advacned =cut use Modern::Perl; -use Encode; use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Koha; use Koha::KeyboardShortcuts; my $input = CGI->new; --- a/admin/aqbudgetperiods.pl +++ a/admin/aqbudgetperiods.pl @@ -47,10 +47,8 @@ script to administer the budget periods table use Modern::Perl; use CGI qw ( -utf8 ); -use List::Util qw/min/; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Database; -use C4::Koha; use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/admin/aqbudgets.pl +++ a/admin/aqbudgets.pl @@ -22,7 +22,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::Util qw/min/; use Koha::Database; use C4::Auth qw( get_template_and_user ); @@ -31,7 +30,6 @@ use C4::Acquisition; use C4::Budgets; use C4::Context; use C4::Output qw( output_html_with_http_headers output_and_exit ); -use C4::Koha; use Koha::Acquisition::Currencies; use Koha::Patrons; --- a/admin/aqcontract.pl +++ a/admin/aqcontract.pl @@ -25,8 +25,14 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Contract; -use Koha::DateUtils; +use C4::Contract qw( + AddContract + DelContract + GetContract + GetContracts + ModContract +); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Acquisition::Booksellers; --- a/admin/aqplan.pl +++ a/admin/aqplan.pl @@ -22,10 +22,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::Util qw/min/; -use Date::Calc qw/Delta_YMD Easter_Sunday Today Decode_Date_EU/; -use Date::Manip qw/ ParseDate UnixDate DateCalc/; -use Text::CSV_XS; +use Date::Calc qw( Delta_YMD ); +use Date::Manip qw( DateCalc UnixDate ); +use Text::CSV_XS (); use C4::Acquisition; use C4::Budgets; --- a/admin/audio_alerts.pl +++ a/admin/audio_alerts.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use Koha::AudioAlert; --- a/admin/auth_subfields_structure.pl +++ a/admin/auth_subfields_structure.pl @@ -22,7 +22,6 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Context; -use C4::Koha; use Koha::Authority::Types; use Koha::AuthorisedValues; --- a/admin/auth_tag_structure.pl +++ a/admin/auth_tag_structure.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Context; --- a/admin/authorised_values.pl +++ a/admin/authorised_values.pl @@ -20,11 +20,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha qw( getImageSets getitemtypeimagelocation ); +use C4::Koha qw( getitemtypeimagelocation ); use C4::Output qw( output_html_with_http_headers ); use Koha::AuthorisedValues; --- a/admin/background_jobs.pl +++ a/admin/background_jobs.pl @@ -17,8 +17,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON qw( decode_json ); -use Try::Tiny; use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/admin/branch_transfer_limits.pl +++ a/admin/branch_transfer_limits.pl @@ -24,7 +24,6 @@ use CGI qw ( -utf8 ); 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::Circulation qw( DeleteBranchTransferLimits CreateBranchTransferLimit IsBranchTransferAllowed ); my $input = CGI->new; --- a/admin/branches.pl +++ a/admin/branches.pl @@ -21,12 +21,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use Koha::Database; use Koha::Patrons; --- a/admin/cash_registers.pl +++ a/admin/cash_registers.pl @@ -20,8 +20,8 @@ use strict; use warnings; -use CGI; -use Try::Tiny; +use CGI (); +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use Koha::Libraries; --- a/admin/categories.pl +++ a/admin/categories.pl @@ -27,7 +27,7 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Form::MessagingPreferences; use Koha::Patrons; use Koha::Database; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patron::Categories; use Koha::Libraries; --- a/admin/checkmarc.pl +++ a/admin/checkmarc.pl @@ -23,7 +23,6 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Context; -use C4::Biblio; my $input = CGI->new; --- a/admin/classsources.pl +++ a/admin/classsources.pl @@ -24,7 +24,6 @@ use CGI qw ( -utf8 ); 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::ClassSortRoutine qw( GetSortRoutineNames ); use C4::ClassSplitRoutine qw( GetSplitRoutineNames ); use Koha::ClassSources; --- a/admin/clone-rules.pl +++ a/admin/clone-rules.pl @@ -30,7 +30,6 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use Koha::CirculationRules; my $input = CGI->new; --- a/admin/columns_settings.pl +++ a/admin/columns_settings.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); --- a/admin/credit_types.pl +++ a/admin/credit_types.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/admin/debit_types.pl +++ a/admin/debit_types.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/admin/didyoumean.pl +++ a/admin/didyoumean.pl @@ -6,8 +6,8 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use Koha::SuggestionEngine; -use Module::Load::Conditional qw(can_load); -use JSON; +use Module::Load::Conditional qw( can_load ); +use JSON qw( from_json ); my $input = CGI->new; --- a/admin/edi_accounts.pl +++ a/admin/edi_accounts.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use Koha::Database; --- a/admin/edi_ean_accounts.pl +++ a/admin/edi_ean_accounts.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use Koha::Database; --- a/admin/import_export_framework.pl +++ a/admin/import_export_framework.pl @@ -23,7 +23,7 @@ use CGI qw ( -utf8 ); use CGI::Cookie; use C4::Context; use C4::Auth qw( check_cookie_auth ); -use C4::ImportExportFramework qw( ExportFramework createODS ImportFramework ); +use C4::ImportExportFramework qw( createODS ExportFramework ImportFramework ); my %cookies = CGI::Cookie->fetch(); my $authenticated = 0; --- a/admin/item_circulation_alerts.pl +++ a/admin/item_circulation_alerts.pl @@ -18,9 +18,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use File::Basename; -use Encode; -use JSON; +use JSON qw( encode_json ); #use Data::Dump 'pp'; use C4::Auth qw( get_template_and_user ); --- a/admin/items_search_field.pl +++ a/admin/items_search_field.pl @@ -17,7 +17,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/admin/items_search_fields.pl +++ a/admin/items_search_fields.pl @@ -17,7 +17,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/admin/itemtypes.pl +++ a/admin/itemtypes.pl @@ -25,7 +25,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use File::Spec; use C4::Koha qw( getImageSets GetAuthorisedValues ); use C4::Context; --- a/admin/koha2marclinks.pl +++ a/admin/koha2marclinks.pl @@ -23,7 +23,6 @@ use CGI qw ( -utf8 ); use Koha::Database; use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Output qw( output_html_with_http_headers ); use Koha::BiblioFrameworks; use Koha::Caches; --- a/admin/marctagstructure.pl +++ a/admin/marctagstructure.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Context; --- a/admin/matching-rules.pl +++ a/admin/matching-rules.pl @@ -24,7 +24,6 @@ use CGI qw ( -utf8 ); 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/; my $script_name = "/cgi-bin/koha/admin/matching-rules.pl"; --- a/admin/oai_set_mappings.pl +++ a/admin/oai_set_mappings.pl @@ -35,9 +35,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::OAI::Sets; +use C4::OAI::Sets qw( GetOAISet GetOAISetMappings ModOAISetMappings ); -use Data::Dumper; my $input = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { --- a/admin/oai_sets.pl +++ a/admin/oai_sets.pl @@ -31,9 +31,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::OAI::Sets; +use C4::OAI::Sets qw( AddOAISet DelOAISet GetOAISet GetOAISets ModOAISet ); -use Data::Dumper; my $input = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { --- a/admin/patron-attr-types.pl +++ a/admin/patron-attr-types.pl @@ -22,12 +22,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use Koha::Patron::Attribute::Types; use Koha::AuthorisedValues; --- a/admin/preferences.pl +++ a/admin/preferences.pl @@ -24,16 +24,14 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Koha qw( getallthemes ); use C4::Languages qw( getTranslatedLanguages ); -use C4::ClassSource qw( GetClassSources GetClassSource ); -use C4::Log; +use C4::ClassSource qw( GetClassSources ); use C4::Output qw( output_html_with_http_headers ); use C4::Templates; use Koha::Acquisition::Currencies; -use File::Spec; -use IO::File; -use YAML::XS; -use Encode; -use List::MoreUtils qw(any); +use IO::File (); +use YAML::XS (); +use Encode (); +use List::MoreUtils qw( any ); # use Smart::Comments; # --- a/admin/searchengine/elasticsearch/mappings.pl +++ a/admin/searchengine/elasticsearch/mappings.pl @@ -16,13 +16,13 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; -use Scalar::Util qw(looks_like_number); +use CGI (); +use Scalar::Util qw( looks_like_number ); use List::Util qw( first ); use C4::Koha; use C4::Output; use C4::Auth; -use C4::Log; +use C4::Log (); use Koha::SearchEngine::Elasticsearch; use Koha::SearchEngine::Elasticsearch::QueryBuilder; @@ -30,8 +30,8 @@ use Koha::SearchMarcMaps; use Koha::SearchFields; use Koha::Caches; -use Try::Tiny; -use Module::Load::Conditional qw(can_load); +use Try::Tiny qw( catch try ); +use Module::Load::Conditional qw( can_load ); my $input = CGI->new; --- a/admin/share_content.pl +++ a/admin/share_content.pl @@ -18,7 +18,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON; +use JSON qw( to_json ); use HTTP::Request; use C4::Auth qw( get_template_and_user ); --- a/admin/smart-rules.pl +++ a/admin/smart-rules.pl @@ -22,8 +22,7 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Database; use Koha::Logger; use Koha::Libraries; --- a/admin/sms_providers.pl +++ a/admin/sms_providers.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/admin/smtp_servers.pl +++ a/admin/smtp_servers.pl @@ -20,8 +20,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Scalar::Util qw(blessed); -use Try::Tiny; +use Scalar::Util qw( blessed ); +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/admin/sru_modmapping.pl +++ a/admin/sru_modmapping.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/admin/systempreferences.pl +++ a/admin/systempreferences.pl @@ -43,14 +43,14 @@ ALSO : use Modern::Perl; use CGI qw ( -utf8 ); -use MIME::Base64; +use MIME::Base64 qw( encode_base64 ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Koha qw( getallthemes ); use C4::Languages qw( getTranslatedLanguages ); -use C4::ClassSource qw( GetClassSources GetClassSource ); +use C4::ClassSource qw( GetClassSources ); use C4::Output qw( output_html_with_http_headers ); -use YAML::XS; +use YAML::XS (); my %tabsysprefs; #we do no longer need to keep track of a tab per pref (yaml) --- a/admin/transfer_limits.pl +++ a/admin/transfer_limits.pl @@ -23,7 +23,6 @@ use CGI qw ( -utf8 ); 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::Circulation qw{ IsBranchTransferAllowed DeleteBranchTransferLimits CreateBranchTransferLimit }; --- a/admin/transport-cost-matrix.pl +++ a/admin/transport-cost-matrix.pl @@ -22,12 +22,10 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::HoldsQueue qw( TransportCostMatrix UpdateTransportCostMatrix ); use Koha::Libraries; -use Data::Dumper; my $input = CGI->new; --- a/admin/usage_statistics.pl +++ a/admin/usage_statistics.pl @@ -20,7 +20,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::DateUtils qw( dt_from_string output_pref ); +use Koha::DateUtils qw( output_pref ); use Koha::Libraries; my $query = CGI->new; --- a/api/v1/app.pl +++ a/api/v1/app.pl @@ -17,5 +17,5 @@ use Modern::Perl; -require Mojolicious::Commands; +use Mojolicious::Commands (); Mojolicious::Commands->start_app('Koha::REST::V1'); --- a/authorities/auth_finder.pl +++ a/authorities/auth_finder.pl @@ -25,7 +25,6 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Acquisition; -use C4::Koha; use Koha::SearchEngine::Search; use Koha::SearchEngine::QueryBuilder; --- a/authorities/authorities-home.pl +++ a/authorities/authorities-home.pl @@ -20,7 +20,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 ); use POSIX qw( ceil ); use C4::Context; @@ -29,7 +29,6 @@ use C4::Output qw( output_and_exit pagination_bar output_html_with_http_headers use C4::Auth qw( get_template_and_user ); use C4::Acquisition; use C4::Koha; -use C4::Biblio; use C4::Search::History; use Koha::Authority::Types; --- a/authorities/authorities.pl +++ a/authorities/authorities.pl @@ -26,8 +26,7 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::ImportBatch qw( sub GetImportRecordMarc ); use C4::Context; -use C4::Koha; -use Date::Calc qw(Today); +use Date::Calc qw( Today ); use MARC::File::USMARC; use MARC::File::XML; use C4::Biblio qw( TransformHtmlToMarc ); --- a/authorities/blinddetail-biblio-search.pl +++ a/authorities/blinddetail-biblio-search.pl @@ -43,8 +43,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use MARC::Record; -use C4::Koha; use Koha::Authorities; use Koha::Authority::Types; --- a/authorities/detail-biblio-search.pl +++ a/authorities/detail-biblio-search.pl @@ -43,8 +43,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use MARC::Record; -use C4::Koha; # use C4::Biblio; # use C4::Catalogue; --- a/authorities/detail.pl +++ a/authorities/detail.pl @@ -43,8 +43,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use MARC::Record; -use C4::Koha qw( display_marc_indicators ); +use C4::Koha (); use Koha::Authorities; use Koha::Authority::Types; --- a/authorities/merge.pl +++ a/authorities/merge.pl @@ -22,7 +22,6 @@ use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Biblio qw( TransformHtmlToMarc ); use Koha::Authority::MergeRequests; --- a/authorities/merge_ajax.pl +++ a/authorities/merge_ajax.pl @@ -4,7 +4,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use CGI::Cookie; # need to check cookies before CGI parses the POST request -use JSON; +use JSON qw( encode_json ); use C4::Context; use C4::Auth qw( check_cookie_auth ); --- a/authorities/ysearch.pl +++ a/authorities/ysearch.pl @@ -29,7 +29,7 @@ This script allows ajax call for dynamic authorities search use CGI qw ( -utf8 ); use Modern::Perl; -use JSON; +use JSON qw( to_json ); use C4::Context; use C4::Charset qw( nsb_clean ); --- a/basket/basket.pl +++ a/basket/basket.pl @@ -19,8 +19,15 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Koha; -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetMarcAuthors GetMarcSubjects GetMarcSeries GetMarcUrls ); -use C4::Items qw( sub GetItemsInfo ); +use C4::Biblio qw( + GetBiblioData + GetMarcAuthors + GetMarcBiblio + GetMarcSeries + GetMarcSubjects + GetMarcUrls +); +use C4::Items qw( GetItemsInfo ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/basket/downloadcart.pl +++ a/basket/downloadcart.pl @@ -20,14 +20,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); +use Encode qw( encode ); use C4::Auth qw( get_template_and_user ); use C4::Biblio qw( GetMarcBiblio ); -use C4::Items; use C4::Output qw( output_html_with_http_headers ); use C4::Record; -use C4::Ris; +use C4::Ris qw( marc2ris ); use Koha::CsvProfiles; --- a/basket/sendbasket.pl +++ a/basket/sendbasket.pl @@ -18,12 +18,17 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); -use Carp; -use Try::Tiny; - -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetMarcAuthors GetMarcSubjects ); -use C4::Items qw( sub GetItemsInfo ); +use Encode (); +use Carp qw( carp ); +use Try::Tiny qw( catch try ); + +use C4::Biblio qw( + GetBiblioData + GetMarcAuthors + GetMarcBiblio + GetMarcSubjects +); +use C4::Items qw( GetItemsInfo ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Templates (); --- a/catalogue/ISBDdetail.pl +++ a/catalogue/ISBDdetail.pl @@ -35,14 +35,12 @@ This script needs a biblionumber as parameter use Modern::Perl; -use HTML::Entities; +use HTML::Entities (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Koha; -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode GetISBDView GetBiblioData ); -use C4::Items qw( sub ); +use C4::Biblio qw( GetBiblioData GetFrameworkCode GetISBDView GetMarcBiblio ); use C4::Serials qw( CountSubscriptionFromBiblionumber GetSubscription GetSubscriptionsFromBiblionumber ); use C4::Search qw( z3950_search_args enabled_staff_search_views ); --- a/catalogue/MARCdetail.pl +++ a/catalogue/MARCdetail.pl @@ -45,15 +45,20 @@ the items attached to the biblio use Modern::Perl; use CGI qw ( -utf8 ); -use HTML::Entities; +use HTML::Entities (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha qw( display_marc_indicators ); -use MARC::Record; -use C4::Biblio qw( GetFrameworkCode GetMarcBiblio GetMarcStructure GetBiblioData GetAuthorisedValueDesc GetMarcFromKohaField ); -use C4::Items qw( sub ); +use C4::Koha (); +use C4::Biblio qw( + GetAuthorisedValueDesc + GetBiblioData + GetFrameworkCode + GetMarcBiblio + GetMarcFromKohaField + GetMarcStructure +); use C4::Acquisition; use C4::Serials qw( CountSubscriptionFromBiblionumber GetSubscription GetSubscriptionsFromBiblionumber ); use C4::Search qw( z3950_search_args enabled_staff_search_views ); @@ -61,7 +66,7 @@ use C4::Search qw( z3950_search_args enabled_staff_search_views ); use Koha::Biblios; use Koha::BiblioFrameworks; use Koha::Patrons; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::Virtualshelves; use List::MoreUtils qw( uniq ); --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -19,24 +19,30 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use HTML::Entities; -use Try::Tiny; +use HTML::Entities (); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha qw( GetNormalizedUPC GetNormalizedEAN GetNormalizedOCLCNumber GetNormalizedISBN getitemtypeimagelocation GetAuthorisedValues ); +use C4::Koha qw( + GetAuthorisedValues + getitemtypeimagelocation + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode GetBiblioData ); -use C4::Items qw( GetItemsInfo GetHostItemsInfo sub GetAnalyticsCount ); +use C4::Biblio qw( GetBiblioData GetFrameworkCode GetMarcBiblio ); +use C4::Items qw( GetAnalyticsCount GetHostItemsInfo GetItemsInfo ); use C4::Circulation qw( GetTransfers ); use C4::Reserves; use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); use C4::XISBN qw( get_xisbns ); -use C4::External::Amazon; +use C4::External::Amazon qw( get_amazon_tld ); use C4::Search qw( z3950_search_args enabled_staff_search_views ); -use C4::Tags qw( get_tags get_tag ); +use C4::Tags qw( get_tags ); use C4::XSLT; -use Koha::DateUtils; +use Koha::DateUtils qw( format_sqldatetime ); use C4::HTML5Media; use C4::CourseReserves qw( GetItemCourseReservesInfo ); use C4::Acquisition qw(GetOrdersByBiblionumber); --- a/catalogue/export.pl +++ a/catalogue/export.pl @@ -6,7 +6,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output; use C4::Biblio qw( GetMarcBiblio GetMarcControlnumber ); use CGI qw ( -utf8 ); -use C4::Ris; +use C4::Ris qw( marc2ris ); --- a/catalogue/getitem-ajax.pl +++ a/catalogue/getitem-ajax.pl @@ -19,12 +19,10 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON; +use JSON qw( to_json ); use C4::Auth qw( check_api_auth ); use C4::Biblio qw( GetMarcStructure ); -use C4::Items; -use C4::Koha; use C4::Output qw( output_with_http_headers ); use Koha::Libraries; --- a/catalogue/imageviewer.pl +++ a/catalogue/imageviewer.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Items qw( GetItemsInfo ); use C4::Output qw( output_html_with_http_headers ); use C4::Search qw( enabled_staff_search_views ); --- a/catalogue/issuehistory.pl +++ a/catalogue/issuehistory.pl @@ -22,7 +22,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; # GetBiblio use C4::Search qw( enabled_staff_search_views ); use C4::Serials qw( CountSubscriptionFromBiblionumber ); use Koha::Checkouts; --- a/catalogue/item-export.pl +++ a/catalogue/item-export.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output; --- a/catalogue/itemsearch.pl +++ a/catalogue/itemsearch.pl @@ -17,14 +17,13 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); -use JSON; +use JSON qw( to_json ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers output_html_with_http_headers ); use C4::Items qw( SearchItems ); -use C4::Biblio; use C4::Koha qw( GetAuthorisedValues ); use Koha::AuthorisedValues; --- a/catalogue/labeledMARCdetail.pl +++ a/catalogue/labeledMARCdetail.pl @@ -19,13 +19,16 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use HTML::Entities; -use MARC::Record; +use HTML::Entities (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio qw( GetFrameworkCode GetMarcBiblio GetMarcStructure GetBiblioData ); -use C4::Items qw( sub ); +use C4::Biblio qw( + GetBiblioData + GetFrameworkCode + GetMarcBiblio + GetMarcStructure +); use C4::Search qw( z3950_search_args enabled_staff_search_views ); use C4::Serials qw( CountSubscriptionFromBiblionumber ); --- a/catalogue/moredetail.pl +++ a/catalogue/moredetail.pl @@ -22,9 +22,9 @@ use Modern::Perl; use C4::Koha qw( GetAuthorisedValues ); use CGI qw ( -utf8 ); -use HTML::Entities; +use HTML::Entities (); use C4::Biblio qw( GetBiblioData GetFrameworkCode GetMarcBiblio ); -use C4::Items qw( sub GetItemsInfo GetHostItemsInfo ); +use C4::Items qw( GetHostItemsInfo GetItemsInfo ); use C4::Acquisition; use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); @@ -34,7 +34,6 @@ use C4::Search qw( enabled_staff_search_views z3950_search_args ); use Koha::Acquisition::Booksellers; use Koha::AuthorisedValues; use Koha::Biblios; -use Koha::DateUtils; use Koha::Items; use Koha::Patrons; --- a/catalogue/search.pl +++ a/catalogue/search.pl @@ -143,10 +143,9 @@ use C4::Context; use C4::Output qw( output_html_with_http_headers pagination_bar ); use C4::Auth qw( get_template_and_user ); use C4::Search qw( searchResults enabled_staff_search_views z3950_search_args new_record_from_zebra ); -use C4::Languages qw( getlanguage getLanguages ); -use C4::Koha qw( getitemtypeimagelocation GetAuthorisedValues ); -use URI::Escape; -use POSIX qw(ceil floor); +use C4::Languages qw( getLanguages ); +use C4::Koha qw( GetAuthorisedValues getitemtypeimagelocation ); +use URI::Escape qw( uri_unescape ); use C4::Search qw( searchResults enabled_staff_search_views z3950_search_args new_record_from_zebra ); use Koha::ItemTypes; @@ -157,7 +156,7 @@ use Koha::SearchEngine::QueryBuilder; use Koha::Virtualshelves; use Koha::SearchFields; -use URI::Escape; +use URI::Escape qw( uri_unescape ); my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); # create a new CGI object --- a/catalogue/showmarc.pl +++ a/catalogue/showmarc.pl @@ -24,8 +24,7 @@ use Modern::Perl; # standard or CPAN modules used use CGI qw(:standard -utf8); -use DBI; -use Encode; +use Encode (); # Koha modules used use C4::Context; --- a/catalogue/stockrotation.pl +++ a/catalogue/stockrotation.pl @@ -25,7 +25,7 @@ =cut use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/catalogue/updateitem.pl +++ a/catalogue/updateitem.pl @@ -21,8 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( checkauth ); use C4::Context; -use C4::Biblio; -use C4::Items; use C4::Output; use C4::Circulation qw( LostItem ); use C4::Reserves; --- a/cataloguing/addbiblio.pl +++ a/cataloguing/addbiblio.pl @@ -21,31 +21,40 @@ use Modern::Perl; -use CGI q(-utf8); +use CGI (); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user haspermission ); -use C4::Biblio qw( GetMarcFromKohaField GetFrameworkCode GetMarcStructure GetUsedMarcStructure GetMarcBiblio PrepHostMarcField prepare_host_field TransformHtmlToMarc ModBiblio AddBiblio DelBiblio ); +use C4::Biblio qw( + AddBiblio + DelBiblio + GetFrameworkCode + GetMarcBiblio + GetMarcFromKohaField + GetMarcStructure + GetUsedMarcStructure + ModBiblio + prepare_host_field + PrepHostMarcField + TransformHtmlToMarc +); use C4::Search qw( FindDuplicate enabled_staff_search_views ); use C4::Auth qw( get_template_and_user haspermission ); use C4::Context; -use MARC::Record; -use C4::Log; -use C4::Koha; -use C4::ClassSource qw( GetClassSources GetClassSource ); +use MARC::Record (); +use C4::ClassSource qw( GetClassSources ); use C4::ImportBatch qw( sub GetImportRecordMarc ); use C4::Charset qw( SetMarcUnicodeFlag ); use Koha::BiblioFrameworks; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::ItemTypes; use Koha::Libraries; use Koha::BiblioFrameworks; -use Date::Calc qw(Today); use MARC::File::USMARC; use MARC::File::XML; -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 ); if ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { MARC::File::XML->default_record_format('UNIMARC'); --- a/cataloguing/addbooks.pl +++ a/cataloguing/addbooks.pl @@ -27,13 +27,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use URI::Escape; use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Breeding qw( BreedingSearch ); use C4::Output qw( output_html_with_http_headers pagination_bar ); use C4::Koha qw( getnbpages ); -use C4::Languages qw( getlanguage ); +use C4::Languages (); use C4::Search qw( searchResults z3950_search_args ); use Koha::BiblioFrameworks; --- a/cataloguing/additem.pl +++ a/cataloguing/additem.pl @@ -24,27 +24,37 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user haspermission ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); -use C4::Biblio qw( GetMarcFromKohaField GetFrameworkCode GetMarcStructure GetMarcBiblio TransformMarcToKoha TransformHtmlToXml ModBiblio EmbedItemsInMarcBiblio GetAuthorisedValueDesc IsMarcStructureInternal ); -use C4::Items qw( sub AddItemFromMarc GetMarcItem ModItemFromMarc ); +use C4::Biblio qw( + GetAuthorisedValueDesc + GetFrameworkCode + GetMarcBiblio + GetMarcFromKohaField + GetMarcStructure + IsMarcStructureInternal + ModBiblio + TransformHtmlToXml + TransformMarcToKoha +); +use C4::Items qw( AddItemFromMarc ModItemFromMarc ); use C4::Context; use C4::Circulation qw( LostItem ); use C4::Koha qw( GetAuthorisedValues ); -use C4::ClassSource qw( GetClassSources GetClassSource ); -use Koha::DateUtils; +use C4::ClassSource qw( GetClassSources ); +use Koha::DateUtils qw( dt_from_string ); use Koha::Items; use Koha::ItemTypes; use Koha::Libraries; use Koha::Patrons; use Koha::SearchEngine::Indexer; -use List::MoreUtils qw/any/; +use List::MoreUtils qw( any ); use C4::Search qw( enabled_staff_search_views ); -use Storable qw(thaw freeze); -use URI::Escape; +use Storable qw( freeze thaw ); +use URI::Escape qw( uri_escape_utf8 ); use C4::Members; use MARC::File::XML; -use URI::Escape; -use MIME::Base64 qw(decode_base64url encode_base64url); +use URI::Escape qw( uri_escape_utf8 ); +use MIME::Base64 qw( decode_base64url encode_base64url ); our $dbh = C4::Context->dbh; --- a/cataloguing/editor.pl +++ a/cataloguing/editor.pl @@ -20,11 +20,9 @@ use Modern::Perl; -use CGI; -use MARC::Record; +use CGI (); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Context; use C4::Output qw( output_html_with_http_headers ); use DBIx::Class::ResultClass::HashRefInflator; --- a/cataloguing/linkitem.pl +++ a/cataloguing/linkitem.pl @@ -24,10 +24,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio qw( GetMarcBiblio PrepHostMarcField ModBiblio ); -use C4::Items qw( sub ); +use C4::Biblio qw( GetMarcBiblio ModBiblio PrepHostMarcField ); use C4::Context; -use C4::Koha; my $query = CGI->new; --- a/cataloguing/merge.pl +++ a/cataloguing/merge.pl @@ -23,10 +23,18 @@ use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Items qw( sub MoveItemFromBiblio ); -use C4::Biblio qw( TransformHtmlToMarc GetMarcBiblio ModBiblio DelBiblio GetFrameworkCode GetMarcStructure GetMarcFromKohaField GetBiblioData ); +use C4::Items qw( MoveItemFromBiblio ); +use C4::Biblio qw( + DelBiblio + GetBiblioData + GetFrameworkCode + GetMarcBiblio + GetMarcFromKohaField + GetMarcStructure + ModBiblio + TransformHtmlToMarc +); use C4::Serials qw( CountSubscriptionFromBiblionumber ); -use C4::Koha; use C4::Reserves qw( MergeHolds ); use C4::Acquisition qw/ModOrder GetOrdersByBiblionumber/; --- a/cataloguing/merge_ajax.pl +++ a/cataloguing/merge_ajax.pl @@ -4,7 +4,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use CGI::Cookie; # need to check cookies before CGI parses the POST request -use JSON; +use JSON qw( encode_json ); use C4::Context; use C4::Biblio qw( GetMarcStructure ); --- a/cataloguing/moveitem.pl +++ a/cataloguing/moveitem.pl @@ -24,16 +24,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; use C4::Items qw( MoveItemFromBiblio ); use C4::Context; -use C4::Koha; -use C4::ClassSource; use C4::Acquisition qw/GetOrderFromItemnumber ModOrder GetOrder/; use Koha::Biblios; -use Date::Calc qw(Today); use MARC::File::XML; --- a/cataloguing/value_builder/barcode.pl +++ a/cataloguing/value_builder/barcode.pl @@ -25,9 +25,9 @@ use Modern::Perl; use C4::Context; use C4::Barcodes::ValueBuilder; use C4::Biblio qw( GetMarcFromKohaField ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); -use Algorithm::CheckDigits; +use Algorithm::CheckDigits qw( CheckDigits ); my $DEBUG = 0; --- a/cataloguing/value_builder/barcode_manual.pl +++ a/cataloguing/value_builder/barcode_manual.pl @@ -25,7 +25,7 @@ use Modern::Perl; use C4::Context; use C4::Barcodes::ValueBuilder; use C4::Biblio qw( GetMarcFromKohaField ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $DEBUG = 0; --- a/cataloguing/value_builder/cn_browser.pl +++ a/cataloguing/value_builder/cn_browser.pl @@ -20,7 +20,6 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; use C4::Auth qw( get_template_and_user ); use C4::ClassSource qw( GetClassSort ); --- a/cataloguing/value_builder/dateaccessioned.pl +++ a/cataloguing/value_builder/dateaccessioned.pl @@ -21,7 +21,7 @@ # along with Koha; if not, see . use Modern::Perl; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $builder = sub { my ( $params ) = @_; --- a/cataloguing/value_builder/marc21_field_006.pl +++ a/cataloguing/value_builder/marc21_field_006.pl @@ -27,7 +27,7 @@ use C4::Context; use C4::Search; use C4::Output qw( output_html_with_http_headers ); -use XML::LibXML; +use XML::LibXML (); my $builder = sub { my ( $params ) = @_; --- a/cataloguing/value_builder/marc21_field_008.pl +++ a/cataloguing/value_builder/marc21_field_008.pl @@ -27,7 +27,7 @@ use C4::Context; use C4::Search; use C4::Output qw( output_html_with_http_headers ); -use XML::LibXML; +use XML::LibXML (); use Koha::Util::FrameworkPlugin qw|date_entered|; my $builder = sub { --- a/cataloguing/value_builder/marc21_linking_section.pl +++ a/cataloguing/value_builder/marc21_linking_section.pl @@ -29,8 +29,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Biblio qw( GetMarcBiblio TransformMarcToKoha ); -use C4::Koha; -use MARC::Record; use Koha::ItemTypes; --- a/cataloguing/value_builder/unimarc_field_100.pl +++ a/cataloguing/value_builder/unimarc_field_100.pl @@ -20,7 +20,7 @@ use Modern::Perl; -use Date::Calc qw( Today ); +use Date::Calc (); use Koha::Util::FrameworkPlugin qw(wrapper); use C4::Auth qw( get_template_and_user ); --- a/cataloguing/value_builder/unimarc_field_210c.pl +++ a/cataloguing/value_builder/unimarc_field_210c.pl @@ -25,7 +25,6 @@ use C4::Context; use C4::Output qw( pagination_bar output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Search; -use MARC::Record; use C4::Koha qw( getnbpages ); ###TODO To rewrite in order to use SearchAuthorities --- a/cataloguing/value_builder/unimarc_field_4XX.pl +++ a/cataloguing/value_builder/unimarc_field_4XX.pl @@ -29,8 +29,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Biblio qw( GetMarcBiblio TransformMarcToKoha ); -use C4::Koha; -use MARC::Record; use Koha::ItemTypes; --- a/cataloguing/ysearch.pl +++ a/cataloguing/ysearch.pl @@ -29,7 +29,7 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Charset qw( nsb_clean ); use C4::Auth qw( check_cookie_auth ); -use JSON qw/ to_json /; +use JSON qw( to_json ); my $input = CGI->new; my $query = $input->param('term'); --- a/cataloguing/z3950_auth_search.pl +++ a/cataloguing/z3950_auth_search.pl @@ -24,7 +24,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Breeding qw( Z3950Search Z3950SearchAuth ); -use C4::Koha; my $input = CGI->new; my $dbh = C4::Context->dbh; --- a/cataloguing/z3950_search.pl +++ a/cataloguing/z3950_search.pl @@ -25,7 +25,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Breeding qw( Z3950Search ); -use C4::Koha; my $input = CGI->new; my $error = $input->param('error'); --- a/circ/article-request-slip.pl +++ a/circ/article-request-slip.pl @@ -24,7 +24,7 @@ use CGI qw( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Letters qw( GetPreparedLetter ); +use C4::Letters (); use Koha::ArticleRequests; use Koha::Patrons; --- a/circ/bookcount.pl +++ a/circ/bookcount.pl @@ -25,10 +25,8 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Circulation; use C4::Output qw( output_and_exit output_html_with_http_headers ); -use C4::Koha; use C4::Auth qw( get_template_and_user ); use Koha::Biblios; -use Koha::DateUtils; use Koha::Libraries; my $input = CGI->new; --- a/circ/branchoverdues.pl +++ a/circ/branchoverdues.pl @@ -24,9 +24,9 @@ use C4::Auth qw( get_template_and_user ); use C4::Overdues qw( GetOverduesForBranch ); use C4::Biblio qw( GetMarcFromKohaField GetMarcStructure ); use C4::Koha qw( GetAuthorisedValues ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::BiblioFrameworks; -use Data::Dumper; +use Data::Dumper qw( Dumper ); =head1 branchoverdues.pl --- a/circ/branchtransfers.pl +++ a/circ/branchtransfers.pl @@ -25,10 +25,7 @@ use CGI qw ( -utf8 ); use C4::Circulation qw( transferbook ); use C4::Output qw( output_html_with_http_headers ); use C4::Reserves qw( ModReserve ModReserveAffect ); -use C4::Biblio; -use C4::Items; use C4::Auth qw( get_session get_template_and_user ); -use C4::Koha; use C4::Members; use Koha::BiblioFrameworks; use Koha::AuthorisedValues; --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -30,14 +30,13 @@ use DateTime; use DateTime::Duration; use Scalar::Util qw( looks_like_number ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); -use C4::Auth qw( get_session get_template_and_user haspermission ); +use C4::Auth qw( get_session get_template_and_user ); use C4::Koha; use C4::Circulation qw( barcodedecode CanBookBeIssued AddIssue ); use C4::Utils::DataTables::Members; use C4::Members; use C4::Biblio qw( TransformMarcToKoha ); use C4::Search qw( new_record_from_zebra ); -use MARC::Record; use C4::Reserves; use Koha::Holds; use C4::Context; @@ -45,8 +44,8 @@ use CGI::Session; use Koha::AuthorisedValues; use Koha::CsvProfiles; use Koha::Patrons; -use Koha::Patron::Debarments qw(GetDebarments); -use Koha::DateUtils; +use Koha::Patron::Debarments qw( GetDebarments ); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Database; use Koha::BiblioFrameworks; use Koha::Items; @@ -55,12 +54,7 @@ use Koha::SearchEngine; use Koha::SearchEngine::Search; use Koha::Patron::Modifications; -use Date::Calc qw( - Today - Add_Delta_Days - Date_to_Days -); -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); # # PARAMETERS READING --- a/circ/on-site_checkouts.pl +++ a/circ/on-site_checkouts.pl @@ -21,7 +21,6 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Circulation qw( GetPendingOnSiteCheckouts ); use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use Koha::BiblioFrameworks; my $cgi = CGI->new; --- a/circ/overdue.pl +++ a/circ/overdue.pl @@ -24,8 +24,8 @@ use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw(-oldstyle_urls -utf8); use C4::Auth qw( get_template_and_user ); -use Text::CSV_XS; -use Koha::DateUtils; +use Text::CSV_XS (); +use Koha::DateUtils qw( dt_from_string output_pref ); use DateTime; use DateTime::Format::MySQL; --- a/circ/pendingreserves.pl +++ a/circ/pendingreserves.pl @@ -21,17 +21,17 @@ use Modern::Perl; use constant PULL_INTERVAL => 2; use List::MoreUtils qw( uniq ); -use YAML::XS; -use Encode; +use YAML::XS (); +use Encode (); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Items qw( ModItemTransfer ); +use C4::Items (); use C4::Reserves qw( ModReserveCancelAll ); use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Holds; use DateTime::Duration; --- a/circ/renew.pl +++ a/circ/renew.pl @@ -24,8 +24,7 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Circulation qw( barcodedecode CanBookBeRenewed GetSoonestRenewDate GetLatestAutoRenewDate AddRenewal ); -use C4::Koha; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Database; use Koha::BiblioFrameworks; --- a/circ/reserveratios.pl +++ a/circ/reserveratios.pl @@ -21,14 +21,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Date::Calc qw/Today Add_Delta_YM/; use POSIX qw( ceil ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Acquisition qw/GetOrdersByBiblionumber/; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Acquisition::Baskets; my $input = CGI->new; --- a/circ/returns.pl +++ a/circ/returns.pl @@ -38,11 +38,9 @@ use C4::Auth qw( get_template_and_user get_session haspermission ); use C4::Output qw( output_html_with_http_headers ); use C4::Circulation qw( barcodedecode updateWrongTransfer GetBranchItemRule AddReturn LostItem ); use C4::Reserves qw( ModReserve ModReserveAffect GetOtherReserves ); -use C4::Biblio; use C4::Circulation qw( barcodedecode updateWrongTransfer GetBranchItemRule AddReturn LostItem ); use C4::Context; -use C4::Items qw( ModItemTransfer sub ); -use C4::Koha; # FIXME : is it still useful ? +use C4::Items qw( ModItemTransfer ); use C4::Members::Messaging; use C4::Members; use C4::Output qw( output_html_with_http_headers ); @@ -52,7 +50,7 @@ use Koha::AuthorisedValues; use Koha::BiblioFrameworks; use Koha::Calendar; use Koha::Checkouts; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Holds; use Koha::Items; use Koha::Item::Transfers; --- a/circ/set-library.pl +++ a/circ/set-library.pl @@ -23,7 +23,6 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user get_session ); -use C4::Koha; use Koha::BiblioFrameworks; use Koha::Cash::Registers; use Koha::Libraries; --- a/circ/transfers_to_send.pl +++ a/circ/transfers_to_send.pl @@ -23,7 +23,7 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); my $input = CGI->new; my $itemnumber = $input->param('itemnumber'); --- a/circ/transferstoreceive.pl +++ a/circ/transferstoreceive.pl @@ -23,21 +23,15 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Circulation qw( GetTransfers GetTransfersFromTo ); use C4::Members; -use Date::Calc qw( - Today - Add_Delta_Days - Date_to_Days -); +use Date::Calc qw( Add_Delta_Days Date_to_Days Today ); -use C4::Koha; use C4::Reserves; use Koha::Items; use Koha::ItemTypes; use Koha::Libraries; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::BiblioFrameworks; use Koha::Patrons; --- a/circ/view_holdsqueue.pl +++ a/circ/view_holdsqueue.pl @@ -26,8 +26,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; -use C4::Items; use C4::HoldsQueue qw( GetHoldsQueueItems ); use Koha::BiblioFrameworks; use Koha::ItemTypes; --- a/circ/waitingreserves.pl +++ a/circ/waitingreserves.pl @@ -25,16 +25,10 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Circulation; use C4::Members; -use C4::Biblio; -use C4::Items qw( sub ModItemTransfer ); -use Date::Calc qw( - Today - Add_Delta_Days - Date_to_Days -); +use C4::Items qw( ModItemTransfer ); +use Date::Calc qw( Date_to_Days Today ); use C4::Reserves qw( ModReserve ModReserveCancelAll ); -use C4::Koha; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::BiblioFrameworks; use Koha::Items; use Koha::ItemTypes; --- a/circ/ysearch.pl +++ a/circ/ysearch.pl @@ -29,7 +29,7 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Auth qw( check_cookie_auth ); use Koha::Patrons; -use Koha::DateUtils qw/format_sqldatetime/; +use Koha::DateUtils qw( format_sqldatetime ); use JSON qw( to_json ); --- a/clubs/club-enrollments.pl +++ a/clubs/club-enrollments.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/clubs/clubs-add-modify.pl +++ a/clubs/clubs-add-modify.pl @@ -19,12 +19,12 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use Koha::Database; -use Koha::DateUtils qw(dt_from_string); +use Koha::DateUtils qw( dt_from_string ); use Koha::Clubs; use Koha::Club::Fields; --- a/clubs/clubs.pl +++ a/clubs/clubs.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/clubs/patron-clubs-tab.pl +++ a/clubs/patron-clubs-tab.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/clubs/patron-enroll.pl +++ a/clubs/patron-enroll.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/clubs/templates-add-modify.pl +++ a/clubs/templates-add-modify.pl @@ -19,12 +19,12 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::DateUtils qw(dt_from_string); +use Koha::DateUtils qw( dt_from_string ); use Koha::Club::Templates; use Koha::Club::Template::Fields; use Koha::Club::Template::EnrollmentFields; --- a/course_reserves/add_items.pl +++ a/course_reserves/add_items.pl @@ -25,7 +25,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Koha qw( GetAuthorisedValues ); -use C4::Biblio; use Koha::Items; use C4::CourseReserves qw( GetCourse GetCourseReserve ModCourse ModCourseItem ModCourseReserve ); --- a/course_reserves/course-details.pl +++ a/course_reserves/course-details.pl @@ -24,7 +24,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::CourseReserves qw( DelCourse DelCourseReserve GetCourse GetCourseReserve GetCourseReserves ); --- a/docs/CAS/CASProxy/examples/proxy_cas_callback.pl +++ a/docs/CAS/CASProxy/examples/proxy_cas_callback.pl @@ -28,7 +28,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use Authen::CAS::Client; -use Storable qw(nstore_fd); +use Storable qw( nstore_fd ); my $casServerUrl = 'https://localhost:8443/cas/'; my $cas = Authen::CAS::Client->new($casServerUrl); --- a/docs/CAS/CASProxy/examples/proxy_cas_data.pl +++ a/docs/CAS/CASProxy/examples/proxy_cas_data.pl @@ -33,9 +33,8 @@ This PGTIOU will allow us to retrive the matching PGTID use Modern::Perl; use CGI qw ( -utf8 ); use Authen::CAS::Client; -use Storable qw(fd_retrieve); -use LWP::Simple; -use URI::Escape; +use Storable qw( fd_retrieve ); +use LWP::Simple qw( get ); my $casServerUrl = 'https://localhost:8443/cas/'; my $cas = Authen::CAS::Client->new($casServerUrl); --- a/errors/400.pl +++ a/errors/400.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/errors/401.pl +++ a/errors/401.pl @@ -20,7 +20,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/errors/402.pl +++ a/errors/402.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/errors/403.pl +++ a/errors/403.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/errors/404.pl +++ a/errors/404.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/errors/500.pl +++ a/errors/500.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/ill/ill-requests.pl +++ a/ill/ill-requests.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); @@ -31,9 +31,9 @@ use Koha::Illrequest::Availability; use Koha::Libraries; use Koha::Token; -use Try::Tiny; -use URI::Escape; -use JSON; +use Try::Tiny qw( catch try ); +use URI::Escape qw( uri_escape_utf8 ); +use JSON qw( encode_json ); our $cgi = CGI->new; my $illRequests = Koha::Illrequests->new; --- a/installer/data/mysql/backfill_statistics.pl +++ a/installer/data/mysql/backfill_statistics.pl @@ -6,13 +6,10 @@ use Modern::Perl; # CPAN modules -use DBI; -use Getopt::Long; # Koha modules use C4::Context; -use C4::Items; -use Data::Dumper; +use Data::Dumper qw( Dumper ); my $dbh = C4::Context->dbh; --- a/installer/data/mysql/fix_unclosed_nonaccruing_fines_bug17135.pl +++ a/installer/data/mysql/fix_unclosed_nonaccruing_fines_bug17135.pl @@ -22,11 +22,11 @@ use Modern::Perl; use C4::Context; use C4::Overdues qw/CalcFine/; -use C4::Log qw/logaction/; +use C4::Log qw( logaction ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patrons; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ($help, $verbose, $confirm, $log, $stdout_log); --- a/installer/data/mysql/update22to30.pl +++ a/installer/data/mysql/update22to30.pl @@ -14,12 +14,10 @@ use strict; # CPAN modules -use DBI; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); # Koha modules use C4::Context; -use MARC::Record; use MARC::File::XML ( BinaryEncoding => 'utf8' ); # FIXME - The user might be installing a new database, so can't rely --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -32,20 +32,23 @@ use Modern::Perl; use feature 'say'; # CPAN modules -use DBI; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); # Koha modules use C4::Context; -use C4::Installer; +use C4::Installer qw( + column_exists + foreign_key_exists + index_exists + TableExists +); use Koha::Database; use Koha; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); -use MARC::Record; use MARC::File::XML ( BinaryEncoding => 'utf8' ); -use File::Path qw[remove_tree]; # perl core module -use File::Slurp; +use File::Path qw( remove_tree ); # perl core module +use File::Slurp qw( read_file ); # FIXME - The user might be installing a new database, so can't rely # on /etc/koha.conf anyway. @@ -6079,7 +6082,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { push @gstrates, split ('\|', $gist_syspref); # we want to compare integer (or float) $_ = $_ + 0 for @gstrates; - use List::MoreUtils qw/uniq/; + use List::MoreUtils qw( uniq ); # remove duplicate values @gstrates = uniq sort @gstrates; my $new_syspref_value = join '|', @gstrates; --- a/installer/html-template-to-template-toolkit.pl +++ a/installer/html-template-to-template-toolkit.pl @@ -1,12 +1,10 @@ #!/usr/bin/perl use Modern::Perl; -use Carp; -use Data::Dumper; +use Carp qw( croak ); -use Getopt::Long; -use File::Basename; -use File::Copy; +use Getopt::Long qw( GetOptions ); +use File::Copy qw( copy ); my $help_msg = <new; --- a/labels/label-create-xml.pl +++ a/labels/label-create-xml.pl @@ -21,10 +21,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use XML::Simple; -use Data::Dumper; +use XML::Simple (); -use C4::Creators; use C4::Labels; my $cgi = CGI->new; --- a/labels/label-edit-batch.pl +++ a/labels/label-edit-batch.pl @@ -25,7 +25,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; +use C4::Creators qw( get_label_summary html_table ); use C4::Labels; use Koha::Items; --- a/labels/label-edit-layout.pl +++ a/labels/label-edit-layout.pl @@ -21,11 +21,16 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use POSIX; +use POSIX qw( exit sprintf ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; +use C4::Creators qw( + get_barcode_types + get_font_types + get_label_types + get_text_justification_types +); use C4::Labels; my $cgi = CGI->new; --- a/labels/label-edit-profile.pl +++ a/labels/label-edit-profile.pl @@ -24,7 +24,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; +use C4::Creators qw( get_all_templates get_unit_values ); use C4::Labels; my $cgi = CGI->new; --- a/labels/label-edit-template.pl +++ a/labels/label-edit-template.pl @@ -24,7 +24,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; +use C4::Creators qw( get_all_profiles get_unit_values ); use C4::Labels; my $cgi = CGI->new; --- a/labels/label-item-search.pl +++ a/labels/label-item-search.pl @@ -20,20 +20,19 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::Util qw( max min ); -use POSIX qw(ceil); +use POSIX qw( ceil ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Search qw( new_record_from_zebra ); use C4::Biblio qw( TransformMarcToKoha ); -use C4::Creators::Lib qw(html_table); +use C4::Creators::Lib qw( html_table ); -use Koha::Logger; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Items; use Koha::ItemTypes; +use Koha::Logger; use Koha::SearchEngine::Search; my $query = CGI->new; --- a/labels/label-manage.pl +++ a/labels/label-manage.pl @@ -23,11 +23,16 @@ use Modern::Perl; use vars qw($debug); use CGI qw ( -utf8 ); -use Data::Dumper; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; +use C4::Creators qw( + get_all_layouts + get_all_profiles + get_all_templates + get_batch_summary + html_table +); use C4::Labels; my $cgi = CGI->new; --- a/labels/label-print.pl +++ a/labels/label-print.pl @@ -20,12 +20,15 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Data::Dumper; use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators::Lib qw(get_all_templates get_all_layouts get_output_formats); +use C4::Creators::Lib qw( + get_all_layouts + get_all_templates + get_output_formats +); use C4::Labels::Batch; my $cgi = CGI->new; --- a/mainpage.pl +++ a/mainpage.pl @@ -23,8 +23,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; -use C4::NewsChannels; # GetNewsToDisplay +use C4::NewsChannels qw( GetNewsToDisplay ); # GetNewsToDisplay use C4::Tags qw( get_count_by_tag_status ); use Koha::Patron::Modifications; use Koha::Patron::Discharge; --- a/members/apikeys.pl +++ a/members/apikeys.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit output_html_with_http_headers ); --- a/members/boraccount.pl +++ a/members/boraccount.pl @@ -23,13 +23,11 @@ # along with Koha; if not, see . use Modern::Perl; -use URI::Escape; +use URI::Escape qw( uri_unescape ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Members; -use C4::Accounts; use Koha::Cash::Registers; use Koha::Patrons; use Koha::Patron::Categories; --- a/members/cancel-charge.pl +++ a/members/cancel-charge.pl @@ -17,7 +17,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( checkauth ); use Koha::Token; --- a/members/deletemem.pl +++ a/members/deletemem.pl @@ -25,12 +25,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Context; use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Auth qw( get_template_and_user haspermission ); -use C4::Members; use C4::Suggestions qw( SearchSuggestion ); use Koha::Patrons; use Koha::Token; --- a/members/discharge.pl +++ a/members/discharge.pl @@ -28,18 +28,15 @@ Allows librarian to edit and/or manage borrowers' discharges =cut use Modern::Perl; -use Carp; +use Carp qw( carp ); use CGI qw( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); -use C4::Members; use C4::Reserves; -use C4::Letters; use Koha::Patron::Discharge; use Koha::Patrons; -use Koha::DateUtils; my $input = CGI->new; --- a/members/discharges.pl +++ a/members/discharges.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Context; --- a/members/files.pl +++ a/members/files.pl @@ -25,7 +25,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Members; -use Koha::DateUtils; use Koha::Patrons; use Koha::Patron::Files; use Koha::Patron::Categories; --- a/members/housebound.pl +++ a/members/housebound.pl @@ -25,12 +25,12 @@ =cut use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use DateTime; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Libraries; use Koha::Patrons; use Koha::Patron::Categories; --- a/members/mancredit.pl +++ a/members/mancredit.pl @@ -29,7 +29,6 @@ use CGI qw ( -utf8 ); use C4::Members; use C4::Accounts; -use C4::Items; use Koha::Items; use Koha::Patrons; --- a/members/maninvoice.pl +++ a/members/maninvoice.pl @@ -23,14 +23,13 @@ # along with Koha; if not, see . use Modern::Perl; -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Members; use C4::Accounts; -use C4::Items; use Koha::Token; use Koha::Patrons; --- a/members/member-password.pl +++ a/members/member-password.pl @@ -7,19 +7,17 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use Koha::AuthUtils; use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Context; use C4::Members; use C4::Circulation; use CGI qw ( -utf8 ); -use Koha::AuthUtils; use Koha::Token; use Koha::Patrons; use Koha::Patron::Categories; -use Try::Tiny; +use Try::Tiny qw( catch try ); my $input = CGI->new; --- a/members/member.pl +++ a/members/member.pl @@ -27,8 +27,7 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use CGI qw( -utf8 ); -use Koha::DateUtils; -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); use Koha::Patrons; my $input = CGI->new; --- a/members/memberentry.pl +++ a/members/memberentry.pl @@ -23,7 +23,6 @@ use Modern::Perl; # external modules use CGI qw ( -utf8 ); -use List::MoreUtils qw/uniq/; # internal modules use C4::Auth qw( get_template_and_user haspermission ); @@ -31,14 +30,13 @@ use C4::Context; use C4::Output qw( output_and_exit output_and_exit_if_error output_html_with_http_headers ); use C4::Members qw( checkcardnumber get_cardnumber_length ); use C4::Koha qw( GetAuthorisedValues ); -use C4::Log; use C4::Letters qw( SendAlerts ); use C4::Form::MessagingPreferences; -use Koha::AuthUtils qw( is_password_valid ); +use Koha::AuthUtils (); use Koha::AuthorisedValues; -use Koha::Patron::Debarments; +use Koha::Patron::Debarments qw( AddDebarment DelDebarment GetDebarments ); use Koha::Cities; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Libraries; use Koha::Patrons; use Koha::Patron::Attribute::Types; --- a/members/members-home.pl +++ a/members/members-home.pl @@ -25,7 +25,7 @@ use C4::Context; use C4::Members; use Koha::Patron::Modifications; use Koha::Libraries; -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); use Koha::Patron::Categories; my $query = CGI->new; --- a/members/merge-patrons.pl +++ a/members/merge-patrons.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/members/mod_debarment.pl +++ a/members/mod_debarment.pl @@ -22,8 +22,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( checkauth ); -use Koha::DateUtils; -use Koha::Patron::Debarments; +use Koha::DateUtils qw( dt_from_string ); +use Koha::Patron::Debarments qw( AddDebarment DelDebarment ); my $cgi = CGI->new; --- a/members/moremember.pl +++ a/members/moremember.pl @@ -33,11 +33,10 @@ use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Form::MessagingPreferences; -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); use Koha::Patron::Attribute::Types; -use Koha::Patron::Debarments qw(GetDebarments); +use Koha::Patron::Debarments qw( GetDebarments ); use Koha::Patron::Messages; -use Koha::DateUtils; use Koha::CsvProfiles; use Koha::Patrons; use Koha::Patron::Files; --- a/members/notices.pl +++ a/members/notices.pl @@ -24,7 +24,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Members; -use C4::Letters qw( GetMessage ResendMessage GetQueuedMessages ); +use C4::Letters (); use Koha::Patrons; use Koha::Patron::Categories; --- a/members/pay.pl +++ a/members/pay.pl @@ -28,21 +28,16 @@ use Modern::Perl; -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 uri_unescape ); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Members; -use C4::Accounts; -use C4::Stats; -use C4::Koha; -use C4::Overdues; use Koha::Patrons; use Koha::Items; use Koha::Patron::Categories; -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 uri_unescape ); our $input = CGI->new; --- a/members/paycollect.pl +++ a/members/paycollect.pl @@ -18,15 +18,12 @@ # along with Koha; if not, see . use Modern::Perl; -use URI::Escape; +use URI::Escape qw( uri_escape uri_unescape ); use CGI qw ( -utf8 ); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); -use C4::Members; -use C4::Accounts; -use C4::Koha; use Koha::Cash::Registers; use Koha::Patrons; @@ -34,7 +31,7 @@ use Koha::Patron::Categories; use Koha::AuthorisedValues; use Koha::Account; use Koha::Token; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); my $input = CGI->new(); --- a/members/print_overdues.pl +++ a/members/print_overdues.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/members/printfeercpt.pl +++ a/members/printfeercpt.pl @@ -23,7 +23,7 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Letters qw( GetPreparedLetter ); +use C4::Letters (); use Koha::Account::Lines; my $input = CGI->new; --- a/members/printinvoice.pl +++ a/members/printinvoice.pl @@ -23,7 +23,7 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Letters qw( GetPreparedLetter ); +use C4::Letters (); use Koha::Account::Lines; my $input = CGI->new; --- a/members/printslip.pl +++ a/members/printslip.pl @@ -38,8 +38,6 @@ use C4::Context; use C4::Auth qw( get_session get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Members qw( IssueSlip ); -use C4::Koha; -use Koha::DateUtils; #use Smart::Comments; #use Data::Dumper; --- a/members/readingrec.pl +++ a/members/readingrec.pl @@ -27,8 +27,8 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Members qw( GetAllIssues ); -use List::MoreUtils qw/any uniq/; -use Koha::DateUtils; +use List::MoreUtils qw( uniq ); +use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; use Koha::Patron::Categories; --- a/members/setstatus.pl +++ a/members/setstatus.pl @@ -28,7 +28,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Context; use C4::Members; -use C4::Auth qw( checkauth ); use Koha::Patrons; --- a/members/statistics.pl +++ a/members/statistics.pl @@ -28,7 +28,11 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Members; -use C4::Members::Statistics qw( get_fields GetPrecedentStateByBorrower GetTotalIssuesTodayByBorrower GetTotalIssuesReturnedTodayByBorrower ); +use C4::Members::Statistics qw( + GetPrecedentStateByBorrower + GetTotalIssuesReturnedTodayByBorrower + GetTotalIssuesTodayByBorrower +); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use Koha::Patrons; use Koha::Patron::Categories; --- a/members/summary-print.pl +++ a/members/summary-print.pl @@ -17,15 +17,14 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use C4::Members; use C4::Circulation qw( GetIssuingCharges ); use C4::Reserves; -use C4::Items qw( sub ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Holds; use Koha::ItemTypes; use Koha::Patrons; --- a/misc/add_date_fields_to_marc_records.pl +++ a/misc/add_date_fields_to_marc_records.pl @@ -18,17 +18,16 @@ use Modern::Perl; BEGIN { - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use MARC::Field; -use C4::Biblio qw( GetMarcBiblio ModBiblio ); +use C4::Biblio (); use Koha::DateUtils qw( dt_from_string ); my ( $verbose, $help, $confirm, $where, @fields, $unless_exists_field ); --- a/misc/admin/set_password.pl +++ a/misc/admin/set_password.pl @@ -19,10 +19,10 @@ use Modern::Perl; -use Bytes::Random::Secure; -use Getopt::Long; -use Pod::Usage; -use String::Random; +use Bytes::Random::Secure (); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use String::Random (); use Koha::Patrons; use Koha::Script; --- a/misc/background_jobs_worker.pl +++ a/misc/background_jobs_worker.pl @@ -16,8 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use JSON qw( encode_json decode_json ); -use Try::Tiny; +use JSON qw( decode_json ); +use Try::Tiny qw( catch try ); use Koha::BackgroundJobs; --- a/misc/batchCompareMARCvsFrameworks.pl +++ a/misc/batchCompareMARCvsFrameworks.pl @@ -7,19 +7,17 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used use Koha::Script; use C4::Context; use MARC::File::USMARC; -use MARC::Record; use MARC::Batch; -use Getopt::Long; -use IO::File; +use Getopt::Long qw( GetOptions ); +use IO::File (); my ( $input_marc_file,$number,$nowarning,$frameworkcode) = ('',0); my $version; --- a/misc/batchDeleteUnusedSubfields.pl +++ a/misc/batchDeleteUnusedSubfields.pl @@ -6,18 +6,16 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used use Koha::Script; -use MARC::Record; use C4::Context; use C4::Biblio qw( GetMarcStructure ); -use Time::HiRes qw(gettimeofday); +use Time::HiRes qw( gettimeofday ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ( $input_marc_file, $number) = ('',0); my ($version, $confirm,$test_parameter); GetOptions( --- a/misc/batchImportMARCWithBiblionumbers.pl +++ a/misc/batchImportMARCWithBiblionumbers.pl @@ -6,8 +6,7 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used @@ -15,13 +14,12 @@ BEGIN { use Koha::Script; use C4::Context; use C4::Biblio qw( GetMarcFromKohaField ); -use MARC::Record; use MARC::File::USMARC; use MARC::File::XML; use MARC::Batch; -use Time::HiRes qw(gettimeofday); -use Getopt::Long; -use IO::File; +use Time::HiRes qw( gettimeofday ); +use Getopt::Long qw( GetOptions ); +use IO::File (); my $input_marc_file = ''; my ($version); --- a/misc/batchRebuildBiblioTables.pl +++ a/misc/batchRebuildBiblioTables.pl @@ -8,19 +8,23 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used use Koha::Script; -use MARC::Record; -use C4::Charset qw( StripNonXmlChars ); +use MARC::Record (); +use C4::Charset (); use C4::Context; -use C4::Biblio qw( GetXmlBiblio TransformMarcToKoha _koha_modify_biblio _koha_modify_biblioitem_nonmarc ); -use Time::HiRes qw(gettimeofday); +use C4::Biblio qw( + _koha_modify_biblio + _koha_modify_biblioitem_nonmarc + GetXmlBiblio + TransformMarcToKoha +); +use Time::HiRes qw( gettimeofday ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ($version, $confirm); GetOptions( --- a/misc/batchRebuildItemsTables.pl +++ a/misc/batchRebuildItemsTables.pl @@ -2,16 +2,16 @@ use Modern::Perl; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use MARC::Field; -use MARC::Record; -use Pod::Usage; -use Time::HiRes qw(gettimeofday); +use MARC::Record (); +use Pod::Usage qw( pod2usage ); +use Time::HiRes qw( gettimeofday ); use Koha::Script; use C4::Context; -use C4::Biblio qw( GetMarcFromKohaField GetMarcBiblio ); -use C4::Items qw( sub ModItemFromMarc ); +use C4::Biblio qw( GetMarcBiblio GetMarcFromKohaField ); +use C4::Items qw( ModItemFromMarc ); =head1 NAME --- a/misc/batchRepairMissingBiblionumbers.pl +++ a/misc/batchRepairMissingBiblionumbers.pl @@ -7,14 +7,13 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used use Koha::Script; use C4::Context; -use C4::Biblio qw( GetMarcBiblio _koha_marc_update_bib_ids ModBiblio ModBiblioMarc ); +use C4::Biblio qw( _koha_marc_update_bib_ids GetMarcBiblio ModBiblioMarc ); my $dbh = C4::Context->dbh; --- a/misc/batchdeletebiblios.pl +++ a/misc/batchdeletebiblios.pl @@ -1,9 +1,8 @@ #!/usr/bin/perl use Modern::Perl; -use Getopt::Long; -use Pod::Usage; -use IO::File; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use C4::Biblio qw( DelBiblio ); --- a/misc/bin/connexion_import_daemon.pl +++ a/misc/bin/connexion_import_daemon.pl @@ -20,7 +20,7 @@ use strict; use warnings; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ($help, $config, $daemon); @@ -86,18 +86,18 @@ exit; { package ImportProxyServer; -use Carp; -use IO::Socket::INET; +use Carp qw( croak ); +use IO::Socket::INET qw( SOCK_STREAM ); # use IO::Socket::IP; use IO::Select; -use POSIX; +use POSIX qw( close exit fork localtime open printf sprintf ); use HTTP::Status qw(:constants); use strict; use warnings; -use LWP::UserAgent; -use XML::Simple; -use MARC::Record; +use LWP::UserAgent (); +use XML::Simple qw( XMLin ); +use MARC::Record (); use MARC::File::XML; use constant CLIENT_READ_TIMEOUT => 5; --- a/misc/check_sysprefs.pl +++ a/misc/check_sysprefs.pl @@ -8,7 +8,7 @@ use strict; use warnings; -use File::Find; +use File::Find qw( find ); use Koha::Script; use C4::Context; --- a/misc/commit_file.pl +++ a/misc/commit_file.pl @@ -5,14 +5,13 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } use Koha::Script; use C4::Context; use C4::ImportBatch qw( GetImportBatch sub BatchCommitRecords BatchRevertRecords ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); $| = 1; --- a/misc/cronjobs/advance_notices.pl +++ a/misc/cronjobs/advance_notices.pl @@ -38,24 +38,20 @@ the OPAC. use strict; use warnings; -use Getopt::Long; -use Pod::Usage; -use Data::Dumper; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; -use C4::Biblio; use C4::Context; use C4::Letters qw( get_item_content EnqueueLetter GetPreparedLetter ); use C4::Members; use C4::Members::Messaging; use C4::Overdues; -use Koha::DateUtils; -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::Items; use Koha::Libraries; use Koha::Patrons; --- a/misc/cronjobs/archive_purchase_suggestions.pl +++ a/misc/cronjobs/archive_purchase_suggestions.pl @@ -2,8 +2,8 @@ use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; --- a/misc/cronjobs/automatic_checkin.pl +++ a/misc/cronjobs/automatic_checkin.pl @@ -20,7 +20,7 @@ use Modern::Perl; use Koha::Checkouts; use Koha::Script -cron; -use C4::Log; +use C4::Log qw( cronlogaction ); cronlogaction(); --- a/misc/cronjobs/automatic_item_modification_by_age.pl +++ a/misc/cronjobs/automatic_item_modification_by_age.pl @@ -2,14 +2,14 @@ use Modern::Perl; -use Getopt::Long; -use Pod::Usage; -use JSON; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use JSON (); use Koha::Script -cron; use C4::Context; -use C4::Items qw( ToggleNewStatus sub ); -use C4::Log; +use C4::Items (); +use C4::Log qw( cronlogaction ); # Getting options my ( $verbose, $help, $confirm ); --- a/misc/cronjobs/automatic_renewals.pl +++ a/misc/cronjobs/automatic_renewals.pl @@ -75,14 +75,14 @@ chosen 'Digests only' on the advance messages. =cut use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Circulation qw( CanBookBeRenewed AddRenewal ); use C4::Context; -use C4::Log; -use C4::Letters qw( GetPreparedLetter EnqueueLetter ); +use C4::Log qw( cronlogaction ); +use C4::Letters (); use Koha::Checkouts; use Koha::Libraries; use Koha::Patrons; --- a/misc/cronjobs/batch_anonymise.pl +++ a/misc/cronjobs/batch_anonymise.pl @@ -19,25 +19,20 @@ use strict; use warnings; -use Carp; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Context; use Koha::Patrons; -use Date::Calc qw( - Today - Add_Delta_Days -); -use Getopt::Long; -use C4::Log; +use Date::Calc qw( Add_Delta_Days Today ); +use Getopt::Long qw( GetOptions ); +use C4::Log qw( cronlogaction ); sub usage { print STDERR <. use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Context; use C4::Biblio qw( GetMarcBiblio ); use AnyEvent; -use AnyEvent::HTTP; -use Encode; +use AnyEvent::HTTP qw( http_request ); +use Encode qw( encode_utf8 ); my ( $verbose, $help, $html ) = ( 0, 0, 0 ); my ( $host, $host_intranet ) = ( '', '' ); --- a/misc/cronjobs/cleanup_database.pl +++ a/misc/cronjobs/cleanup_database.pl @@ -31,17 +31,16 @@ use constant DEFAULT_DEBARMENTS_PURGEDAYS => 30; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Context; use C4::Search; use C4::Search::History; -use Getopt::Long; -use C4::Log; -use C4::Accounts; +use Getopt::Long qw( GetOptions ); +use C4::Log qw( cronlogaction ); +use C4::Accounts qw( purge_zero_balance_fees ); use Koha::UploadedFiles; use Koha::Old::Biblios; use Koha::Old::Items; --- a/misc/cronjobs/cloud-kw.pl +++ a/misc/cronjobs/cloud-kw.pl @@ -21,14 +21,14 @@ use strict; use warnings; use diagnostics; -use Carp; -use YAML::XS; -use Pod::Usage; -use Getopt::Long; +use Carp qw( carp croak ); +use YAML::XS (); +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Context; -use C4::Log; +use C4::Log qw( cronlogaction ); my $verbose = 0; my $help = 0; @@ -97,7 +97,7 @@ package ZebraIndex; use strict; use warnings; use diagnostics; -use Carp; +use Carp qw( carp croak ); sub new { my $self = {}; --- a/misc/cronjobs/create_koc_db.pl +++ a/misc/cronjobs/create_koc_db.pl @@ -91,9 +91,9 @@ use warnings; $|++; -use DBI; -use Getopt::Long; -use Pod::Usage; +use DBI (); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; use C4::Context; --- a/misc/cronjobs/delete_items.pl +++ a/misc/cronjobs/delete_items.pl @@ -1,13 +1,12 @@ #! /usr/bin/perl -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Context; -use C4::Items qw( sub ); use C4::Circulation; use Modern::Perl; -use Pod::Usage; +use Pod::Usage qw( pod2usage ); my $dbh = C4::Context->dbh(); --- a/misc/cronjobs/delete_patrons.pl +++ a/misc/cronjobs/delete_patrons.pl @@ -2,14 +2,14 @@ use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Members qw( GetBorrowersToExpunge ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; -use C4::Log; +use C4::Log qw( cronlogaction ); my ( $help, $verbose, $not_borrowed_since, $expired_before, $last_seen, @category_code, $branchcode, $file, $confirm ); --- a/misc/cronjobs/delete_records_via_leader.pl +++ a/misc/cronjobs/delete_records_via_leader.pl @@ -27,15 +27,13 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; use C4::Biblio qw( DelBiblio ); -use C4::Items; use Koha::Database; use Koha::Biblios; use Koha::Biblio::Metadatas; --- a/misc/cronjobs/fines.pl +++ a/misc/cronjobs/fines.pl @@ -33,15 +33,15 @@ use 5.010; use Koha::Script -cron; use C4::Context; use C4::Overdues qw( Getoverdues CalcFine UpdateFine ); -use Getopt::Long; -use Carp; -use File::Spec; -use Try::Tiny; +use Getopt::Long qw( GetOptions ); +use Carp qw( carp croak ); +use File::Spec (); +use Try::Tiny qw( catch try ); use Koha::Calendar; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patrons; -use C4::Log; +use C4::Log qw( cronlogaction ); my $help; my $verbose; --- a/misc/cronjobs/gather_print_notices.pl +++ a/misc/cronjobs/gather_print_notices.pl @@ -5,22 +5,21 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use CGI qw( utf8 ); # NOT a CGI script, this is just to keep C4::Templates::gettemplate happy +use CGI (); # NOT a CGI script, this is just to keep C4::Templates::gettemplate happy use Koha::Script -cron; use C4::Context; use C4::Letters qw( GetPrintMessages _set_message_status ); use C4::Templates; -use File::Spec; -use Pod::Usage; -use Getopt::Long; -use C4::Log; +use File::Spec (); +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); +use C4::Log qw( cronlogaction ); -use Koha::DateUtils; -use Koha::Util::OpenDocument; +use Koha::DateUtils qw( dt_from_string output_pref ); +use Koha::Util::OpenDocument qw( generate_ods ); use MIME::Lite; my ( --- a/misc/cronjobs/holds/auto_unsuspend_holds.pl +++ a/misc/cronjobs/holds/auto_unsuspend_holds.pl @@ -23,15 +23,14 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } # cancel all expired hold requests use Koha::Script -cron; use C4::Reserves; -use C4::Log; +use C4::Log qw( cronlogaction ); cronlogaction(); --- a/misc/cronjobs/holds/build_holds_queue.pl +++ a/misc/cronjobs/holds/build_holds_queue.pl @@ -11,13 +11,12 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::HoldsQueue qw(CreateQueue); -use C4::Log; +use C4::Log qw( cronlogaction ); cronlogaction(); --- a/misc/cronjobs/holds/cancel_expired_holds.pl +++ a/misc/cronjobs/holds/cancel_expired_holds.pl @@ -39,19 +39,18 @@ This script calls C4::Reserves::CancelExpiredReserves which will find and cancel =cut use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Reserves; -use C4::Log; +use C4::Log qw( cronlogaction ); =head1 OPTIONS --- a/misc/cronjobs/holds/cancel_unfilled_holds.pl +++ a/misc/cronjobs/holds/cancel_unfilled_holds.pl @@ -21,19 +21,17 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; use C4::Reserves; -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::Holds; use Koha::Calendar; -use Koha::DateUtils; use Koha::Libraries; cronlogaction(); --- a/misc/cronjobs/holds/holds_reminder.pl +++ a/misc/cronjobs/holds/holds_reminder.pl @@ -21,20 +21,18 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; -use Text::CSV_XS; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use DateTime; use DateTime::Duration; use C4::Context; -use C4::Letters; -use C4::Log; -use Koha::DateUtils; +use C4::Letters (); +use C4::Log qw( cronlogaction ); +use Koha::DateUtils qw( dt_from_string ); use Koha::Calendar; use Koha::Libraries; use Koha::Notice::Templates; --- a/misc/cronjobs/import_webservice_batch.pl +++ a/misc/cronjobs/import_webservice_batch.pl @@ -25,12 +25,10 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::ImportBatch qw( BatchCommitRecords ); --- a/misc/cronjobs/longoverdue.pl +++ a/misc/cronjobs/longoverdue.pl @@ -30,17 +30,15 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use C4::Circulation qw( LostItem MarkIssueReturned ); use C4::Context; -use C4::Items qw( sub ); -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::ItemTypes; use Koha::Patron::Categories; use Koha::Patrons; --- a/misc/cronjobs/membership_expiry.pl +++ a/misc/cronjobs/membership_expiry.pl @@ -116,20 +116,18 @@ any field from the branches table =cut use Modern::Perl; -use Getopt::Long; -use Pod::Usage; -use Data::Dumper; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Context; -use C4::Letters qw( GetPreparedLetter EnqueueLetter ); -use C4::Log; +use C4::Letters (); +use C4::Log qw( cronlogaction ); use Koha::Patrons; --- a/misc/cronjobs/merge_authorities.pl +++ a/misc/cronjobs/merge_authorities.pl @@ -1,9 +1,9 @@ #!/usr/bin/perl use Modern::Perl; -use Getopt::Long; -use Pod::Usage; -use Time::HiRes qw(gettimeofday); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use Time::HiRes qw( gettimeofday ); use Koha::Script -cron; use C4::AuthoritiesMarc; --- a/misc/cronjobs/notice_unprocessed_suggestions.pl +++ a/misc/cronjobs/notice_unprocessed_suggestions.pl @@ -2,8 +2,8 @@ use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Budgets qw( GetBudget ); --- a/misc/cronjobs/overdue_notices.pl +++ a/misc/cronjobs/overdue_notices.pl @@ -24,23 +24,22 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; -use Text::CSV_XS; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use Text::CSV_XS (); use DateTime; use DateTime::Duration; use Koha::Script -cron; use C4::Context; -use C4::Letters qw( getletter get_item_content EnqueueLetter ); -use C4::Overdues qw( GetBranchcodesWithOverdueRules GetOverdueMessageTransportTypes parse_overdues_letter ); -use C4::Log; -use Koha::Patron::Debarments qw(AddUniqueDebarment); -use Koha::DateUtils; +use C4::Letters (); +use C4::Overdues qw( GetOverdueMessageTransportTypes parse_overdues_letter ); +use C4::Log qw( cronlogaction ); +use Koha::Patron::Debarments qw( AddUniqueDebarment ); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Calendar; use Koha::Libraries; use Koha::Acquisition::Currencies; --- a/misc/cronjobs/patron_emailer.pl +++ a/misc/cronjobs/patron_emailer.pl @@ -21,15 +21,14 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); -use C4::Log; +use C4::Log qw( cronlogaction ); use C4::Reports::Guided qw( EmailReport ); cronlogaction(); --- a/misc/cronjobs/plugins_nightly.pl +++ a/misc/cronjobs/plugins_nightly.pl @@ -2,10 +2,10 @@ use Modern::Perl; -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Context; -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::Logger; use Koha::Plugins; use Koha::Script -cron; --- a/misc/cronjobs/process_message_queue.pl +++ a/misc/cronjobs/process_message_queue.pl @@ -22,15 +22,14 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Letters qw( SendQueuedMessages ); -use C4::Log; -use Getopt::Long; -use Try::Tiny; +use C4::Log qw( cronlogaction ); +use Getopt::Long qw( GetOptions ); +use Try::Tiny qw( catch try ); my $username = undef; my $password = undef; --- a/misc/cronjobs/purge_suggestions.pl +++ a/misc/cronjobs/purge_suggestions.pl @@ -22,16 +22,14 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Suggestions; -use C4::Log; +use C4::Log qw( cronlogaction ); use C4::Context; my ( $help, $days, $confirm ); --- a/misc/cronjobs/reconcile_balances.pl +++ a/misc/cronjobs/reconcile_balances.pl @@ -51,19 +51,18 @@ Makes the process print information about the taken actions. use Modern::Perl; -use Getopt::Long; -use Pod::Usage; -use Try::Tiny; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use Try::Tiny qw( catch try ); BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::Account::Lines; use Koha::Patrons; --- a/misc/cronjobs/rss/rss.pl +++ a/misc/cronjobs/rss/rss.pl @@ -31,8 +31,7 @@ use Template; use Koha::Script -cron; use C4::Context; -use Time::Local; -use POSIX; +use POSIX qw( close localtime open strftime ); my $dbh = C4::Context->dbh; my $file = $ARGV[0]; --- a/misc/cronjobs/runreport.pl +++ a/misc/cronjobs/runreport.pl @@ -24,25 +24,24 @@ use Koha::Script -cron; use C4::Reports::Guided qw( store_results execute_query ); use Koha::Reports; use C4::Context; -use C4::Log; +use C4::Log qw( cronlogaction ); use Koha::Email; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::SMTP::Servers; use Getopt::Long qw(:config auto_help auto_version); -use Pod::Usage; +use Pod::Usage qw( pod2usage ); use Text::CSV::Encoded; use CGI qw ( -utf8 ); -use Carp; -use Encode; +use Carp qw( carp ); +use Encode qw( decode ); use JSON qw( to_json ); -use Try::Tiny; +use Try::Tiny qw( catch try ); BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } =head1 NAME --- a/misc/cronjobs/serialsUpdate.pl +++ a/misc/cronjobs/serialsUpdate.pl @@ -24,20 +24,19 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script -cron; use C4::Context; use C4::Serials qw( GetSubscription GetNextDate ModSerialStatus ); -use C4::Log; -use Koha::DateUtils; +use C4::Log qw( cronlogaction ); +use Koha::DateUtils qw( dt_from_string output_pref ); use C4::Serials qw( GetSubscription GetNextDate ModSerialStatus ); -use Date::Calc qw/Date_to_Days check_date/; -use Getopt::Long; -use Pod::Usage; +use Date::Calc qw( check_date Date_to_Days ); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); =head1 NAME --- a/misc/cronjobs/share_usage_with_koha_community.pl +++ a/misc/cronjobs/share_usage_with_koha_community.pl @@ -2,14 +2,14 @@ use Modern::Perl; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; use C4::Context; use C4::UsageStats; -use C4::Log; -use POSIX qw(strftime); +use C4::Log qw( cronlogaction ); +use POSIX qw( strftime ); my ( $help, $verbose, $force, $quiet ); GetOptions( --- a/misc/cronjobs/sitemap.pl +++ a/misc/cronjobs/sitemap.pl @@ -21,12 +21,11 @@ package Main; use Modern::Perl; use utf8; -use Pod::Usage; -use Getopt::Long; +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use Koha::Script -cron; -use C4::Biblio; -use Koha::Sitemapper; +use Koha::Sitemapper (); my ($verbose, $help, $url, $dir, $short) = (0, 0, '', '.', 1); --- a/misc/cronjobs/staticfines.pl +++ a/misc/cronjobs/staticfines.pl @@ -31,22 +31,20 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } -use Date::Calc qw/Date_to_Days/; +use Date::Calc qw( Date_to_Days ); use Koha::Script -cron; use C4::Context; use C4::Circulation; -use C4::Overdues qw( checkoverdues Getoverdues CalcFine GetFine ); +use C4::Overdues qw( CalcFine checkoverdues GetFine Getoverdues ); use C4::Calendar qw(); # don't need any exports from Calendar -use C4::Biblio; -use C4::Log; -use Getopt::Long; -use List::MoreUtils qw/none/; -use Koha::DateUtils; +use C4::Log qw( cronlogaction ); +use Getopt::Long qw( GetOptions ); +use List::MoreUtils qw( none ); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patrons; my $help = 0; --- a/misc/cronjobs/thirdparty/TalkingTech_itiva_inbound.pl +++ a/misc/cronjobs/thirdparty/TalkingTech_itiva_inbound.pl @@ -24,12 +24,11 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; use C4::Context; --- a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl +++ a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl @@ -24,20 +24,18 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; use C4::Context; -use C4::Items; -use C4::Letters; +use C4::Letters (); use C4::Overdues; use Koha::Calendar; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patrons; use Koha::Libraries; --- a/misc/cronjobs/update_patrons_category.pl +++ a/misc/cronjobs/update_patrons_category.pl @@ -20,17 +20,16 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use C4::Context; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Logger; use Koha::Patrons; use Koha::Patron::Categories; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Script -cron; =head1 NAME --- a/misc/cronjobs/update_totalissues.pl +++ a/misc/cronjobs/update_totalissues.pl @@ -24,22 +24,21 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script -cron; -use Koha::DateUtils qw/ dt_from_string /; +use Koha::DateUtils qw( dt_from_string ); use C4::Context; use C4::Biblio qw( UpdateTotalIssues ); -use C4::Log; +use C4::Log qw( cronlogaction ); use DateTime; use DateTime::Format::MySQL; -use Time::HiRes qw/time/; -use POSIX qw/strftime ceil/; +use Time::HiRes qw( time ); +use POSIX qw( ceil strftime ); sub usage { pod2usage( -verbose => 2 ); --- a/misc/cronjobs/writeoff_debts.pl +++ a/misc/cronjobs/writeoff_debts.pl @@ -3,11 +3,11 @@ use Modern::Perl; use feature 'say'; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Account::Lines; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Script -cron; --- a/misc/devel/add_missing_filters.pl +++ a/misc/devel/add_missing_filters.pl @@ -2,9 +2,9 @@ use Modern::Perl; -use File::Slurp; -use Pod::Usage; -use Getopt::Long; +use File::Slurp qw( read_file write_file ); +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); use t::lib::QA::TemplateFilters; --- a/misc/devel/coverage.pl +++ a/misc/devel/coverage.pl @@ -48,9 +48,9 @@ prints this help text use Modern::Perl; use C4::Context; -use Cwd; -use Getopt::Long; -use Pod::Usage; +use Cwd qw( getcwd ); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); my $help; --- a/misc/devel/create_superlibrarian.pl +++ a/misc/devel/create_superlibrarian.pl @@ -18,8 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use Koha::Patrons; --- a/misc/devel/get_prepared_letter.pl +++ a/misc/devel/get_prepared_letter.pl @@ -69,9 +69,9 @@ documentation of GetPreparedLetter for more informations. use Modern::Perl; -use Getopt::Long; -use JSON; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use JSON qw( decode_json ); +use Pod::Usage qw( pod2usage ); use C4::Letters qw( GetPreparedLetter ); --- a/misc/devel/install_plugins.pl +++ a/misc/devel/install_plugins.pl @@ -18,8 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; --- a/misc/devel/update_dbix_class_files.pl +++ a/misc/devel/update_dbix_class_files.pl @@ -21,8 +21,8 @@ use Modern::Perl; use DBIx::Class::Schema::Loader qw/ make_schema_at /; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); my %db_defaults = ( driver => 'mysql', --- a/misc/export_records.pl +++ a/misc/export_records.pl @@ -18,9 +18,9 @@ use Modern::Perl; use MARC::File::XML; -use List::MoreUtils qw(uniq); -use Getopt::Long; -use Pod::Usage; +use List::MoreUtils qw( uniq ); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use C4::Auth; --- a/misc/exportauth.pl +++ a/misc/exportauth.pl @@ -8,13 +8,11 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } use Koha::Script; use C4::Context; -use C4::Biblio; use C4::Auth; my $outfile = $ARGV[0]; open(my $fh, '>', $outfile) or die $!; --- a/misc/import_patrons.pl +++ a/misc/import_patrons.pl @@ -19,11 +19,11 @@ use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; -use Koha::Patrons::Import; +use Koha::Patrons::Import (); my $Import = Koha::Patrons::Import->new(); my $csv_file; --- a/misc/link_bibs_to_authorities.pl +++ a/misc/link_bibs_to_authorities.pl @@ -7,19 +7,22 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } use Koha::Script; use C4::Context; -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode LinkBibHeadingsToAuthorities ModBiblio ); -use Getopt::Long; -use Pod::Usage; -use Data::Dumper; -use Time::HiRes qw/time/; -use POSIX qw/strftime ceil/; -use Module::Load::Conditional qw(can_load); +use C4::Biblio qw( + GetFrameworkCode + GetMarcBiblio + LinkBibHeadingsToAuthorities + ModBiblio +); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use Time::HiRes qw( time ); +use POSIX qw( ceil strftime ); +use Module::Load::Conditional qw( can_load ); sub usage { pod2usage( -verbose => 2 ); --- a/misc/load_testing/benchmark_circulation.pl +++ a/misc/load_testing/benchmark_circulation.pl @@ -7,13 +7,11 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } use HTTPD::Bench::ApacheBench; -use LWP::UserAgent; -use Data::Dumper; +use LWP::UserAgent (); use HTTP::Cookies; use C4::Context; --- a/misc/load_testing/benchmark_staff.pl +++ a/misc/load_testing/benchmark_staff.pl @@ -7,17 +7,15 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use HTTPD::Bench::ApacheBench; -use LWP::UserAgent; -use Data::Dumper; +use LWP::UserAgent (); use HTTP::Cookies; use C4::Context; -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 ); use Koha::Patrons; my ($help, $steps, $baseurl, $max_tries, $user, $password,$short_print); --- a/misc/load_testing/benchmark_webservices.pl +++ a/misc/load_testing/benchmark_webservices.pl @@ -15,9 +15,8 @@ use warnings; # records/xml/xml-recs.xml = file of 1 marcxml record to post # # Requires LWP::UserAgent, File::Slurp. -use LWP::UserAgent; -use File::Slurp qw(slurp); -use Carp; +use LWP::UserAgent (); +use File::Slurp qw( slurp ); my $ua = LWP::UserAgent->new(); $ua->cookie_jar({ file =>"cookies.txt" }); my $baseurl = shift; --- a/misc/load_yaml.pl +++ a/misc/load_yaml.pl @@ -22,7 +22,7 @@ use Modern::Perl; use Koha::Script; use Getopt::Long qw(:config no_ignore_case); use C4::Context; -use C4::Installer; +use C4::Installer (); sub print_usage { ( my $basename = $0 ) =~ s|.*/||; --- a/misc/maintenance/UNIMARC_fix_collectiontitle.pl +++ a/misc/maintenance/UNIMARC_fix_collectiontitle.pl @@ -8,12 +8,10 @@ use strict; use warnings; BEGIN { - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; -use C4::Biblio; sub process { --- a/misc/maintenance/UNIMARC_sync_date_created_with_marc_biblio.pl +++ a/misc/maintenance/UNIMARC_sync_date_created_with_marc_biblio.pl @@ -8,13 +8,12 @@ use strict; use warnings; BEGIN { - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; use C4::Biblio qw( GetMarcBiblio ModBiblio ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); sub _read_marc_code { my $input = shift; --- a/misc/maintenance/auth_show_hidden_data.pl +++ a/misc/maintenance/auth_show_hidden_data.pl @@ -22,8 +22,8 @@ # which hidden fields in the framework still contain data. use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use Koha::Authorities; --- a/misc/maintenance/borrowers-force-messaging-defaults.pl +++ a/misc/maintenance/borrowers-force-messaging-defaults.pl @@ -22,15 +22,14 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; use C4::Context; use C4::Members::Messaging; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); sub usage { --- a/misc/maintenance/check_syspref_cache.pl +++ a/misc/maintenance/check_syspref_cache.pl @@ -16,8 +16,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Encode qw( encode_utf8 ); use Koha::Script; --- a/misc/maintenance/cmp_sysprefs.pl +++ a/misc/maintenance/cmp_sysprefs.pl @@ -27,8 +27,8 @@ use Modern::Perl; use open OUT => ':encoding(UTF-8)', ':std'; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use C4::Context; --- a/misc/maintenance/fix_accountlines_date.pl +++ a/misc/maintenance/fix_accountlines_date.pl @@ -22,15 +22,13 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; use C4::Context; -use Getopt::Long; -use Pod::Usage; -use Koha::DateUtils; +use Getopt::Long qw( GetOptions ); +use Koha::DateUtils qw( dt_from_string output_pref ); =head1 NAME --- a/misc/maintenance/fix_accountlines_rmdupfines_bug8253.pl +++ a/misc/maintenance/fix_accountlines_rmdupfines_bug8253.pl @@ -23,16 +23,14 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; use C4::Context; -use C4::Installer; -use Getopt::Long; -use Data::Dumper; +use Getopt::Long qw( GetOptions ); +use Data::Dumper (); sub print_usage { print <<_USAGE_ --- a/misc/maintenance/fix_mysql_constraints.pl +++ a/misc/maintenance/fix_mysql_constraints.pl @@ -21,14 +21,13 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - my $lib = "$FindBin::Bin/../kohalib.pl"; + my $lib = "$FindBin::Bin/../kohalib.pl"; eval { require $lib }; } -use Getopt::Long; -use Pod::Usage; -use Try::Tiny; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); +use Try::Tiny qw( catch try ); use Koha::Script; use C4::Context; --- a/misc/maintenance/fix_tags_weight.pl +++ a/misc/maintenance/fix_tags_weight.pl @@ -20,7 +20,7 @@ use Modern::Perl; use C4::Context; -use C4::Tags qw( add_tag_approval add_tag ); +use C4::Tags (); use Koha::Script; use Koha::Database; @@ -28,8 +28,8 @@ use Koha::Tags; use Koha::Tags::Approvals; use Koha::Tags::Indexes; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); =head1 NAME --- a/misc/maintenance/generate_MARC21Languages.pl +++ a/misc/maintenance/generate_MARC21Languages.pl @@ -19,10 +19,10 @@ # use Modern::Perl; -use XML::Simple; -use Pod::Usage; -use Getopt::Long; -use Carp; +use XML::Simple qw( XMLin ); +use Pod::Usage qw( pod2usage ); +use Getopt::Long qw( GetOptions ); +use Carp qw( croak ); use open ':std', ':encoding(UTF-8)'; --- a/misc/maintenance/process_record_through_filter.pl +++ a/misc/maintenance/process_record_through_filter.pl @@ -9,7 +9,6 @@ use warnings; use Koha::Script; use Koha::RecordProcessor; -use Data::Dumper; use C4::Biblio qw( GetMarcBiblio ); my $record = GetMarcBiblio({ biblionumber => $ARGV[0] }); --- a/misc/maintenance/remove_items_from_biblioitems.pl +++ a/misc/maintenance/remove_items_from_biblioitems.pl @@ -24,8 +24,8 @@ $|=1; use Koha::Script; use C4::Context; -use C4::Biblio qw( GetMarcBiblio ModBiblio GetFrameworkCode ); -use Getopt::Long; +use C4::Biblio qw( GetFrameworkCode GetMarcBiblio ModBiblio ); +use Getopt::Long qw( GetOptions ); my ($wherestring, $run, $silent, $want_help); my $result = GetOptions( --- a/misc/maintenance/sanitize_records.pl +++ a/misc/maintenance/sanitize_records.pl @@ -20,12 +20,11 @@ use Modern::Perl; use Koha::Script; -use C4::Charset qw( SanitizeRecord ); +use C4::Charset (); use C4::Context; -use DBI; -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode ModBiblio ); -use Getopt::Long; -use Pod::Usage; +use C4::Biblio (); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); my ( $help, $verbose, $confirm, $biblionumbers, $reindex, $filename, $auto_search, $fix_ampersand ); --- a/misc/maintenance/search_for_data_inconsistencies.pl +++ a/misc/maintenance/search_for_data_inconsistencies.pl @@ -25,7 +25,7 @@ use Koha::BiblioFrameworks; use Koha::Biblioitems; use Koha::Items; use Koha::ItemTypes; -use C4::Biblio qw( GetMarcFromKohaField ); +use C4::Biblio (); { my $items = Koha::Items->search({ -or => { homebranch => undef, holdingbranch => undef }}); --- a/misc/maintenance/touch_all_biblios.pl +++ a/misc/maintenance/touch_all_biblios.pl @@ -22,17 +22,16 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } # possible modules to use -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::Script; use C4::Context; use C4::Biblio qw( GetMarcBiblio ModBiblio ); -use Pod::Usage; +use Pod::Usage qw( pod2usage ); sub usage { --- a/misc/maintenance/touch_all_items.pl +++ a/misc/maintenance/touch_all_items.pl @@ -22,18 +22,16 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } # possible modules to use -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::Script; use C4::Context; -use C4::Items qw( sub ); use Koha::Items; -use Pod::Usage; +use Pod::Usage qw( pod2usage ); sub usage { --- a/misc/maintenance/update_authorities.pl +++ a/misc/maintenance/update_authorities.pl @@ -19,9 +19,9 @@ use Modern::Perl; -use Getopt::Long; -use List::MoreUtils qw/uniq/; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use List::MoreUtils qw( uniq ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use C4::AuthoritiesMarc qw/AddAuthority DelAuthority GetAuthority merge/; --- a/misc/migration_tools/22_to_30/convert_to_utf8.pl +++ a/misc/migration_tools/22_to_30/convert_to_utf8.pl @@ -9,8 +9,7 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } use C4::Context; --- a/misc/migration_tools/22_to_30/export_Authorities.pl +++ a/misc/migration_tools/22_to_30/export_Authorities.pl @@ -3,15 +3,13 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } use C4::Context; #use MARC::File::XML(BinaryEncoding=>"utf8"); #use MARC::File::USMARC; -use MARC::Record; use C4::AuthoritiesMarc; -use POSIX; +use POSIX qw( close localtime sprintf time ); #MARC::File::XML::default_record_format("UNIMARCAUTH"); my $dbh = C4::Context->dbh; my $rq= $dbh->prepare(qq| --- a/misc/migration_tools/22_to_30/export_Authorities_xml.pl +++ a/misc/migration_tools/22_to_30/export_Authorities_xml.pl @@ -3,14 +3,12 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } use C4::Context; use MARC::File::XML(BinaryEncoding=>"utf8"); -use MARC::Record; use C4::AuthoritiesMarc; -use POSIX; +use POSIX qw( close localtime open sprintf time ); MARC::File::XML::default_record_format("UNIMARCAUTH"); my $dbh = C4::Context->dbh; my $rq= $dbh->prepare(qq| --- a/misc/migration_tools/22_to_30/missing090field.pl +++ a/misc/migration_tools/22_to_30/missing090field.pl @@ -7,15 +7,13 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } # Koha modules used use C4::Context; -use C4::Biblio; -use MARC::Record; +use C4::Biblio qw( GetMarcBiblio GetMarcFromKohaField ModBiblioMarc ); use MARC::File::USMARC; $|=1; --- a/misc/migration_tools/22_to_30/move_marc_to_authheader.pl +++ a/misc/migration_tools/22_to_30/move_marc_to_authheader.pl @@ -7,12 +7,11 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } use C4::Context; use C4::AuthoritiesMarc; -use MARC::Record; +use MARC::Record (); use MARC::File::XML ( BinaryEncoding => 'utf8' ); print "moving MARC record to marc_header table\n"; --- a/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl +++ a/misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl @@ -5,12 +5,10 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } use C4::Context; -use C4::Biblio; -use MARC::Record; +use MARC::Record (); use MARC::File::XML ( BinaryEncoding => 'utf8' ); print "moving MARC record to biblioitems table\n"; --- a/misc/migration_tools/22_to_30/rebuild_leader.pl +++ a/misc/migration_tools/22_to_30/rebuild_leader.pl @@ -7,15 +7,13 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } # Koha modules used use C4::Context; -use C4::Biblio; -use MARC::Record; +use C4::Biblio qw( ModBiblioMarc ); use MARC::File::USMARC; --- a/misc/migration_tools/22_to_30/rebuild_unimarc_100.pl +++ a/misc/migration_tools/22_to_30/rebuild_unimarc_100.pl @@ -7,15 +7,13 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../../kohalib.pl" }; + eval { require "$FindBin::Bin/../../kohalib.pl" }; } # Koha modules used use C4::Context; -use C4::Biblio; -use MARC::Record; +use C4::Biblio qw( GetMarcBiblio ModBiblioMarc ); use MARC::File::USMARC; --- a/misc/migration_tools/buildCOUNTRY.pl +++ a/misc/migration_tools/buildCOUNTRY.pl @@ -8,11 +8,10 @@ use strict; # Koha modules used use Koha::Script; use C4::Context; -use C4::Biblio; use C4::AuthoritiesMarc; -use Time::HiRes qw(gettimeofday); +use Time::HiRes qw( gettimeofday ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ( $fields, $number,$language) = ('',0); my ($version, $verbose, $test_parameter, $delete); GetOptions( --- a/misc/migration_tools/buildEDITORS.pl +++ a/misc/migration_tools/buildEDITORS.pl @@ -6,15 +6,15 @@ use strict; # Koha modules used use MARC::File::USMARC; -use MARC::Record; +use MARC::Record (); use MARC::Batch; use Koha::Script; use C4::Context; use C4::Biblio qw( GetMarcBiblio ); use C4::AuthoritiesMarc; -use Time::HiRes qw(gettimeofday); +use Time::HiRes qw( gettimeofday ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ( $input_marc_file, $number) = ('',0); my ($version, $verbose, $test_parameter, $confirm,$delete); GetOptions( --- a/misc/migration_tools/buildLANG.pl +++ a/misc/migration_tools/buildLANG.pl @@ -8,11 +8,10 @@ use strict; # Koha modules used use Koha::Script; use C4::Context; -use C4::Biblio; use C4::AuthoritiesMarc; -use Time::HiRes qw(gettimeofday); +use Time::HiRes qw( gettimeofday ); -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my ( $fields, $number,$language) = ('',0); my ($version, $verbose, $test_parameter, $delete); GetOptions( --- a/misc/migration_tools/build_oai_sets.pl +++ a/misc/migration_tools/build_oai_sets.pl @@ -37,16 +37,24 @@ oai_sets_mappings, and then fill table oai_sets_biblios with builded infos. =cut use Modern::Perl; -use MARC::Record; +use MARC::Record (); use MARC::File::XML; -use List::MoreUtils qw/uniq/; -use Getopt::Std; +use List::MoreUtils qw( uniq ); +use Getopt::Std qw( getopts ); use Koha::Script; use C4::Context; use C4::Charset qw( StripNonXmlChars ); -use C4::Biblio qw( EmbedItemsInMarcBiblio ); -use C4::OAI::Sets; +use C4::Biblio (); +use C4::OAI::Sets qw( + AddOAISetsBiblios + CalcOAISetsBiblio + GetOAISet + GetOAISetBySpec + GetOAISets + GetOAISetsMappings + ModOAISetsBiblios +); my %opts; $Getopt::Std::STANDARD_HELP_VERSION = 1; --- a/misc/migration_tools/bulkmarcimport.pl +++ a/misc/migration_tools/bulkmarcimport.pl @@ -6,32 +6,37 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } # Koha modules used use MARC::File::USMARC; use MARC::File::XML; -use MARC::Record; use MARC::Batch; -use MARC::Charset; -use Encode; +use Encode (); use Koha::Script; use C4::Context; -use C4::Biblio qw( GetMarcFromKohaField ModBiblio AddBiblio _strip_item_fields ModBiblioMarc ); +use C4::Biblio qw( + _strip_item_fields + AddBiblio + GetMarcFromKohaField + ModBiblio + ModBiblioMarc +); use C4::Koha; use C4::Charset qw( MarcToUTF8Record SetUTF8Flag ); -use C4::Items qw( sub AddItemBatchFromMarc ); -use C4::MarcModificationTemplates; - -use YAML::XS; -use Unicode::Normalize; -use Time::HiRes qw(gettimeofday); -use Getopt::Long; -use IO::File; -use Pod::Usage; +use C4::Items qw( AddItemBatchFromMarc ); +use C4::MarcModificationTemplates qw( + GetModificationTemplates + ModifyRecordWithTemplate +); + +use YAML::XS (); +use Time::HiRes qw( gettimeofday ); +use Getopt::Long qw( GetOptions ); +use IO::File (); +use Pod::Usage qw( pod2usage ); use Koha::Logger; use Koha::Biblios; --- a/misc/migration_tools/checkNonIndexedBiblios.pl +++ a/misc/migration_tools/checkNonIndexedBiblios.pl @@ -27,15 +27,13 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } # Koha modules used -use MARC::Record; use Koha::Script; use C4::Context; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::SearchEngine::Search; --- a/misc/migration_tools/create_analytical_rel.pl +++ a/misc/migration_tools/create_analytical_rel.pl @@ -5,16 +5,14 @@ use strict; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; use C4::Context; use C4::Biblio qw( GetMarcBiblio ModBiblio ); -use C4::Items qw( sub ); use Koha::Items; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); $| = 1; --- a/misc/migration_tools/ifla/update.pl +++ a/misc/migration_tools/ifla/update.pl @@ -19,12 +19,12 @@ use Modern::Perl; -use Date::Format; -use File::Basename; -use FindBin qw($Bin); -use Getopt::Long; +use Date::Format qw( time2str ); +use File::Basename qw( basename ); +use FindBin qw( $Bin ); +use Getopt::Long qw( GetOptions ); use Locale::PO; -use YAML::XS; +use YAML::XS (); use utf8; use Koha::Database; --- a/misc/migration_tools/import_lexile.pl +++ a/misc/migration_tools/import_lexile.pl @@ -28,7 +28,7 @@ use utf8; use Modern::Perl; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Text::CSV; use Koha::Script; @@ -45,8 +45,7 @@ BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } my $help; --- a/misc/migration_tools/koha-svc.pl +++ a/misc/migration_tools/koha-svc.pl @@ -20,8 +20,8 @@ use warnings; use strict; -use LWP::UserAgent; -use File::Slurp; +use LWP::UserAgent (); +use File::Slurp qw( read_file write_file ); if ( $#ARGV >= 3 && ! caller ) { # process command-line params only if not called as module! my ( $url, $user, $password, $biblionumber, $file ) = @ARGV; --- a/misc/migration_tools/rebuild_zebra.pl +++ a/misc/migration_tools/rebuild_zebra.pl @@ -19,16 +19,16 @@ use Modern::Perl; use Koha::Script; use C4::Context; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Fcntl qw(:flock); -use File::Temp qw/ tempdir /; -use File::Path; -use C4::Biblio qw( GetMarcFromKohaField GetXmlBiblio GetMarcBiblio _koha_marc_update_bib_ids ); +use File::Temp qw( tempdir ); +use File::Path qw( mkpath rmtree ); +use C4::Biblio qw( _koha_marc_update_bib_ids GetXmlBiblio ); use C4::AuthoritiesMarc; -use C4::Items qw( sub GetItemsInfo Item2Marc ); +use C4::Items qw( GetItemsInfo Item2Marc ); use Koha::RecordProcessor; use Koha::Caches; -use XML::LibXML; +use XML::LibXML (); use constant LOCK_FILENAME => 'rebuild..LCK'; --- a/misc/migration_tools/remove_unused_authorities.pl +++ a/misc/migration_tools/remove_unused_authorities.pl @@ -25,7 +25,7 @@ use Modern::Perl; use Koha::Script; use C4::Context; use C4::AuthoritiesMarc; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::SearchEngine::Search; --- a/misc/migration_tools/switch_marc21_series_info.pl +++ a/misc/migration_tools/switch_marc21_series_info.pl @@ -25,14 +25,13 @@ use warnings; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/../kohalib.pl" }; + eval { require "$FindBin::Bin/../kohalib.pl" }; } use Koha::Script; -use C4::Biblio qw( GetFrameworkCode GetMarcBiblio ModBiblio ModBiblioMarc ); +use C4::Biblio qw( GetFrameworkCode GetMarcBiblio ModBiblioMarc ); use C4::Context; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); my $commit; my $add_links; --- a/misc/migration_tools/upgradeitems.pl +++ a/misc/migration_tools/upgradeitems.pl @@ -5,7 +5,7 @@ use strict; use Koha::Script; use C4::Context; -use C4::Items qw( sub ModItemFromMarc ); +use C4::Items qw( ModItemFromMarc ); use C4::Biblio qw( GetMarcBiblio ); my $dbh=C4::Context->dbh; --- a/misc/mod_zebraqueue.pl +++ a/misc/mod_zebraqueue.pl @@ -20,8 +20,8 @@ use Modern::Perl; -use Getopt::Long; -use Pod::Usage; +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); use Koha::Script; use C4::Biblio qw( ModZebra ); --- a/misc/recreateIssueStatistics.pl +++ a/misc/recreateIssueStatistics.pl @@ -25,9 +25,7 @@ use warnings; use Koha::Script; use C4::Context; -use C4::Items qw( sub ); -use Data::Dumper; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::Items; my $dbh = C4::Context->dbh; --- a/misc/sax_parser_test.pl +++ a/misc/sax_parser_test.pl @@ -3,8 +3,8 @@ use strict; use warnings; -use XML::SAX; -use Encode; +use XML::SAX (); +use Encode qw( encode_utf8 ); my $parser = XML::SAX::ParserFactory->parser( Handler => MySAXHandler->new --- a/misc/search_tools/export_elasticsearch_mappings.pl +++ a/misc/search_tools/export_elasticsearch_mappings.pl @@ -52,7 +52,7 @@ Full documentation. =cut use Modern::Perl; -use Encode; +use Encode (); use Koha::Script; use Koha::Database; @@ -60,9 +60,9 @@ use Koha::SearchFields; use Koha::SearchMarcMaps; use Koha::SearchEngine::Elasticsearch; -use YAML::XS; -use Getopt::Long; -use Pod::Usage; +use YAML::XS (); +use Getopt::Long qw( GetOptions ); +use Pod::Usage qw( pod2usage ); my $type = ''; my $man; --- a/misc/search_tools/rebuild_elasticsearch.pl +++ a/misc/search_tools/rebuild_elasticsearch.pl @@ -112,7 +112,7 @@ Full documentation. =cut use autodie; -use Getopt::Long; +use Getopt::Long qw( GetOptions ); use Koha::Script; use C4::Context; use Koha::MetadataRecord::Authority; @@ -120,10 +120,9 @@ use Koha::BiblioUtils; use Koha::SearchEngine::Elasticsearch; use Koha::SearchEngine::Elasticsearch::Indexer; use MARC::Field; -use MARC::Record; use Modern::Perl; -use Pod::Usage; -use Try::Tiny; +use Pod::Usage qw( pod2usage ); +use Try::Tiny qw( catch try ); my $verbose = 0; my $commit = 5000; --- a/misc/sip_cli_emulator.pl +++ a/misc/sip_cli_emulator.pl @@ -20,11 +20,11 @@ use Modern::Perl; use Socket qw(:crlf); -use IO::Socket::INET; -use Getopt::Long; +use IO::Socket::INET (); +use Getopt::Long qw( GetOptions ); -use C4::SIP::Sip qw( timestamp ); -use C4::SIP::Sip qw( timestamp ); +use C4::SIP::Sip (); +use C4::SIP::Sip (); use constant { LANGUAGE => '001' }; --- a/misc/stage_file.pl +++ a/misc/stage_file.pl @@ -23,16 +23,15 @@ use Modern::Perl; BEGIN { # find Koha's Perl modules # test carefully before changing this - use FindBin; - eval { require "$FindBin::Bin/kohalib.pl" }; + eval { require "$FindBin::Bin/kohalib.pl" }; } use Koha::Script; use C4::Context; use C4::ImportBatch qw( sub RecordsFromISO2709File RecordsFromMARCXMLFile BatchStageMarcRecords SetImportBatchMatcher SetImportBatchOverlayAction SetImportBatchNoMatchAction SetImportBatchItemAction BatchFindDuplicates ); use C4::Matcher; -use C4::MarcModificationTemplates; -use Getopt::Long; +use C4::MarcModificationTemplates qw( GetModificationTemplates ); +use Getopt::Long qw( GetOptions ); $| = 1; --- a/misc/translator/tmpl_process3.pl +++ a/misc/translator/tmpl_process3.pl @@ -4,7 +4,6 @@ # Parts copyright 2003-2004 Jerome Vizcaino # Parts copyright 2004 Ambrose Li -use FindBin; use lib $FindBin::Bin; =head1 NAME @@ -16,8 +15,8 @@ using gettext-compatible translation files use strict; #use warnings; FIXME - Bug 2505 -use File::Basename; -use Getopt::Long; +use File::Basename qw( fileparse ); +use Getopt::Long qw( GetOptions ); use Locale::PO; use File::Temp qw( :POSIX ); use TmplTokenizer; --- a/misc/translator/xgettext.pl +++ a/misc/translator/xgettext.pl @@ -21,13 +21,12 @@ xgettext.pl - xgettext(1)-like interface for .tt strings extraction =cut -use FindBin; use lib $FindBin::Bin; use strict; use warnings; -use Getopt::Long; -use POSIX; +use Getopt::Long qw( GetOptions ); +use POSIX qw( close exit localtime open printf time ); use Locale::PO; use TmplTokenizer; use VerboseWarnings; --- a/misc/z3950_responder.pl +++ a/misc/z3950_responder.pl @@ -19,10 +19,9 @@ use Modern::Perl; -use Carp; -use File::Basename; +use File::Basename qw( fileparse ); use Getopt::Long qw(:config no_ignore_case); -use Pod::Usage; +use Pod::Usage qw( pod2usage ); use Koha::Config; use Koha::Z3950Responder; --- a/offline_circ/download.pl +++ a/offline_circ/download.pl @@ -19,11 +19,10 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON; +use JSON qw( to_json ); use C4::Auth qw( checkauth ); use C4::Output; use C4::Context; -use C4::Koha; my $query = CGI->new; checkauth( $query, undef, { circulate => "circulate_remaining_permissions" }, --- a/offline_circ/enqueue_koc.pl +++ a/offline_circ/enqueue_koc.pl @@ -23,19 +23,15 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; -use C4::Biblio; use C4::Accounts; use C4::Circulation qw( AddOfflineOperation ); -use C4::Items qw( sub ); use C4::Members; use C4::Stats; use Koha::Checkouts; use Koha::UploadedFiles; use Koha::Items; -use Date::Calc qw( Add_Delta_Days Date_to_Days ); use constant DEBUG => 0; --- a/offline_circ/list.pl +++ a/offline_circ/list.pl @@ -23,11 +23,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; use C4::Circulation qw( GetOfflineOperations GetOfflineOperation ); use C4::Members; -use C4::Biblio; use Koha::Patrons; use Koha::Items; --- a/offline_circ/process_koc.pl +++ a/offline_circ/process_koc.pl @@ -21,16 +21,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Carp; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; -use C4::Biblio; use C4::Accounts; use C4::Circulation qw( barcodedecode GetOpenIssue AddRenewal AddIssue MarkIssueReturned ); -use C4::Items qw( sub ModDateLastSeen ); +use C4::Items qw( ModDateLastSeen ); use C4::Members; use C4::Stats; use C4::BackgroundJob; @@ -39,7 +36,7 @@ use Koha::Account; use Koha::Checkouts; use Koha::Patrons; -use Date::Calc qw( Add_Delta_Days Date_to_Days ); +use Date::Calc qw( Date_to_Days ); use constant DEBUG => 0; --- a/offline_circ/service.pl +++ a/offline_circ/service.pl @@ -23,7 +23,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( check_api_auth check_cookie_auth ); use C4::Circulation qw( AddOfflineOperation ProcessOfflineOperation ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use DateTime::TimeZone; my $cgi = CGI->new; --- a/opac/clubs/clubs-tab.pl +++ a/opac/clubs/clubs-tab.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/opac/clubs/enroll.pl +++ a/opac/clubs/enroll.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/opac/errors/400.pl +++ a/opac/errors/400.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/errors/401.pl +++ a/opac/errors/401.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/errors/402.pl +++ a/opac/errors/402.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/errors/403.pl +++ a/opac/errors/403.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/errors/404.pl +++ a/opac/errors/404.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/errors/500.pl +++ a/opac/errors/500.pl @@ -21,7 +21,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $query = CGI->new; my $admin = C4::Context->preference('KohaAdminEmailAddress'); --- a/opac/external/overdrive/auth.pl +++ a/opac/external/overdrive/auth.pl @@ -20,9 +20,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use URI; -use URI::Escape; -use C4::Auth qw(checkauth); +use URI (); +use URI::Escape qw( uri_escape ); use Koha::Logger; use Koha::ExternalContent::OverDrive; --- a/opac/ilsdi.pl +++ a/opac/ilsdi.pl @@ -24,10 +24,10 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use List::MoreUtils qw(any); -use XML::Simple; +use List::MoreUtils qw( any ); +use XML::Simple qw( XMLout ); use CGI qw ( -utf8 ); -use Net::Netmask; +use Net::Netmask (); =head1 DLF ILS-DI for Koha --- a/opac/opac-ISBDdetail.pl +++ a/opac/opac-ISBDdetail.pl @@ -45,12 +45,22 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( parametrized_url output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Biblio qw( TransformMarcToKoha GetISBDView CountItemsIssued GetMarcControlnumber GetMarcISSN ); -use C4::Items qw( sub ); +use C4::Biblio qw( + CountItemsIssued + GetISBDView + GetMarcControlnumber + GetMarcISSN + TransformMarcToKoha +); use C4::Reserves; use C4::Acquisition; use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); -use C4::Koha qw( GetNormalizedUPC GetNormalizedEAN GetNormalizedOCLCNumber GetNormalizedISBN ); +use C4::Koha qw( + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); use Koha::CirculationRules; use Koha::ItemTypes; use Koha::Patrons; --- a/opac/opac-MARCdetail.pl +++ a/opac/opac-MARCdetail.pl @@ -49,21 +49,28 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( parametrized_url output_html_with_http_headers ); use CGI qw ( -utf8 ); -use MARC::Record; -use C4::Biblio qw( GetMarcBiblio GetMarcStructure GetMarcFromKohaField CountItemsIssued GetAuthorisedValueDesc TransformMarcToKoha GetMarcControlnumber GetMarcISSN ); -use C4::Items qw( sub ); +use C4::Biblio qw( + CountItemsIssued + GetAuthorisedValueDesc + GetMarcBiblio + GetMarcControlnumber + GetMarcFromKohaField + GetMarcISSN + GetMarcStructure + TransformMarcToKoha +); use C4::Reserves; use C4::Members; use C4::Acquisition; -use C4::Koha qw( display_marc_indicators GetNormalizedISBN ); -use List::MoreUtils qw( any uniq ); +use C4::Koha qw( GetNormalizedISBN ); +use List::MoreUtils qw( uniq ); use Koha::Biblios; use Koha::CirculationRules; use Koha::Items; use Koha::ItemTypes; use Koha::Patrons; use Koha::RecordProcessor; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); my $query = CGI->new(); --- a/opac/opac-account-pay-return.pl +++ a/opac/opac-account-pay-return.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( checkauth ); use Koha::Plugins::Handler; --- a/opac/opac-account-pay.pl +++ a/opac/opac-account-pay.pl @@ -21,10 +21,7 @@ use utf8; use Modern::Perl; -use CGI; -use HTTP::Request::Common; -use LWP::UserAgent; -use URI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output; --- a/opac/opac-addbybiblionumber.pl +++ a/opac/opac-addbybiblionumber.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Biblio; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); --- a/opac/opac-alert-subscribe.pl +++ a/opac/opac-alert-subscribe.pl @@ -23,8 +23,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use C4::Koha; -use C4::Letters; use C4::Serials qw( GetSubscription ); --- a/opac/opac-authorities-home.pl +++ a/opac/opac-authorities-home.pl @@ -21,7 +21,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; --- a/opac/opac-authoritiesdetail.pl +++ a/opac/opac-authoritiesdetail.pl @@ -44,8 +44,7 @@ use C4::Biblio qw( GetMarcUrls ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use MARC::Record; -use C4::Koha qw( display_marc_indicators ); +use C4::Koha (); use Koha::Authorities; use Koha::Authority::Types; --- a/opac/opac-basket.pl +++ a/opac/opac-basket.pl @@ -20,8 +20,16 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Koha; -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetFrameworkCode GetMarcAuthors GetMarcSubjects GetMarcSeries GetMarcUrls ); -use C4::Items qw( sub GetItemsInfo GetHiddenItemnumbers ); +use C4::Biblio qw( + GetBiblioData + GetFrameworkCode + GetMarcAuthors + GetMarcBiblio + GetMarcSeries + GetMarcSubjects + GetMarcUrls +); +use C4::Items qw( GetHiddenItemnumbers GetItemsInfo ); use C4::Circulation qw( GetTransfers ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/opac/opac-browse.pl +++ a/opac/opac-browse.pl @@ -31,7 +31,7 @@ use Koha::SearchEngine::Elasticsearch::Browse; use Koha::SearchEngine::Elasticsearch::QueryBuilder; use Koha::SearchEngine::Elasticsearch::Search; -use JSON; +use JSON qw( to_json ); use Unicode::Collate; my $query = CGI->new; --- a/opac/opac-browser.pl +++ a/opac/opac-browser.pl @@ -30,7 +30,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Biblio; my $query = CGI->new; --- a/opac/opac-course-details.pl +++ a/opac/opac-course-details.pl @@ -24,7 +24,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::CourseReserves qw( GetCourse GetCourseReserve GetCourseReserves ); --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -25,27 +25,48 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Acquisition qw( SearchOrders ); use C4::Auth qw( get_template_and_user get_session ); -use C4::Koha qw( GetNormalizedEAN getitemtypeimagelocation GetNormalizedUPC GetNormalizedOCLCNumber GetNormalizedISBN ); +use C4::Koha qw( + getitemtypeimagelocation + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); use C4::Output qw( parametrized_url output_html_with_http_headers ); -use C4::Biblio qw( GetMarcBiblio GetBiblioData CountItemsIssued GetMarcISBN GetMarcAuthors GetMarcSubjects GetMarcSeries GetMarcUrls GetMarcControlnumber GetMarcISSN ); -use C4::Items qw( GetItemsInfo GetHiddenItemnumbers sub ); +use C4::Biblio qw( + CountItemsIssued + GetBiblioData + GetMarcAuthors + GetMarcBiblio + GetMarcControlnumber + GetMarcISBN + GetMarcISSN + GetMarcSeries + GetMarcSubjects + GetMarcUrls +); +use C4::Items qw( GetHiddenItemnumbers GetItemsInfo ); use C4::Circulation qw( GetTransfers ); -use C4::Tags qw( get_tags get_tag ); +use C4::Tags qw( get_tags ); use C4::XISBN qw( get_xisbns ); -use C4::External::Amazon; +use C4::External::Amazon qw( get_amazon_tld ); use C4::External::BakerTaylor qw( image_url link_url ); -use C4::External::Syndetics qw(get_syndetics_index get_syndetics_summary get_syndetics_toc get_syndetics_excerpt get_syndetics_reviews get_syndetics_anotes ); +use C4::External::Syndetics qw( + get_syndetics_anotes + get_syndetics_excerpt + get_syndetics_index + get_syndetics_reviews + get_syndetics_summary + get_syndetics_toc +); use C4::Members; use C4::XSLT; use C4::ShelfBrowser qw( GetNearbyItems ); use C4::Reserves qw( GetReserveStatus ); use C4::Charset qw( SetUTF8Flag ); -use C4::Letters; -use MARC::Record; use MARC::Field; -use List::MoreUtils qw/any none/; -use Koha::DateUtils; +use List::MoreUtils qw( any ); use C4::HTML5Media; use C4::CourseReserves qw( GetItemCourseReservesInfo ); @@ -63,7 +84,6 @@ use Koha::Ratings; use Koha::Reviews; use Koha::SearchEngine::Search; -use Try::Tiny; my $query = CGI->new(); @@ -228,7 +248,7 @@ my $session = get_session($query->cookie("CGISESSID")); my %paging = (previous => {}, next => {}); if ($session->param('busc')) { use C4::Search; - use URI::Escape; + use URI::Escape qw( uri_escape_utf8 uri_unescape ); # Rebuild the string to store on session # param value is URI encoded and params separator is HTML encode (&) --- a/opac/opac-discharge.pl +++ a/opac/opac-discharge.pl @@ -18,16 +18,14 @@ # along with Koha; if not, see . use Modern::Perl; -use Carp; +use Carp qw( carp ); use C4::Auth qw( get_template_and_user ); use CGI qw( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Log; use Koha::Patrons; use Koha::Patron::Discharge; -use Koha::DateUtils; my $input = CGI->new; --- a/opac/opac-downloadcart.pl +++ a/opac/opac-downloadcart.pl @@ -20,14 +20,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); +use Encode qw( encode ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode GetISBDView ); -use C4::Items; +use C4::Biblio qw( GetFrameworkCode GetISBDView GetMarcBiblio ); use C4::Output qw( output_html_with_http_headers ); use C4::Record; -use C4::Ris; +use C4::Ris qw( marc2ris ); use Koha::CsvProfiles; use Koha::RecordProcessor; --- a/opac/opac-downloadshelf.pl +++ a/opac/opac-downloadshelf.pl @@ -20,14 +20,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode GetISBDView ); -use C4::Items; +use C4::Biblio qw( GetFrameworkCode GetISBDView GetMarcBiblio ); use C4::Output qw( output_html_with_http_headers ); use C4::Record; -use C4::Ris; +use C4::Ris qw( marc2ris ); use Koha::CsvProfiles; use Koha::RecordProcessor; use Koha::Virtualshelves; --- a/opac/opac-export.pl +++ a/opac/opac-export.pl @@ -22,10 +22,15 @@ use Modern::Perl; use C4::Record; use C4::Auth; use C4::Output; -use C4::Biblio qw( GetMarcBiblio GetMarcControlnumber GetFrameworkCode GetISBDView ); +use C4::Biblio qw( + GetFrameworkCode + GetISBDView + GetMarcBiblio + GetMarcControlnumber +); use CGI qw ( -utf8 ); use C4::Auth; -use C4::Ris; +use C4::Ris qw( marc2ris ); use Koha::RecordProcessor; my $query = CGI->new; --- a/opac/opac-ics.pl +++ a/opac/opac-ics.pl @@ -27,13 +27,12 @@ use Data::ICal::Entry::Event; use DateTime; use DateTime::Format::ICal; use DateTime::Event::ICal; -use URI; +use URI (); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Circulation; use C4::Members; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); my $query = CGI->new; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( --- a/opac/opac-idref.pl +++ a/opac/opac-idref.pl @@ -19,11 +19,10 @@ use Modern::Perl; -use CGI; -use LWP::UserAgent; -use HTTP::Request::Common; -use JSON; -use Encode; +use CGI (); +use LWP::UserAgent (); +use JSON qw( from_json ); +use Encode (); use C4::Auth qw( get_template_and_user ); use C4::Context; --- a/opac/opac-illrequests.pl +++ a/opac/opac-illrequests.pl @@ -23,7 +23,6 @@ use JSON qw( encode_json ); use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use Koha::Illrequest::Config; --- a/opac/opac-imageviewer.pl +++ a/opac/opac-imageviewer.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Output qw( output_html_with_http_headers ); use Koha::Biblios; --- a/opac/opac-issue-note.pl +++ a/opac/opac-issue-note.pl @@ -25,10 +25,9 @@ use C4::Context; use C4::Scrubber; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; -use C4::Letters qw( GetPreparedLetter EnqueueLetter ); +use C4::Letters (); use Koha::Checkouts; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; my $query = CGI->new; --- a/opac/opac-main.pl +++ a/opac/opac-main.pl @@ -22,8 +22,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::NewsChannels; # GetNewsToDisplay -use C4::Languages qw(getTranslatedLanguages accept_language); +use C4::NewsChannels qw( GetNewsToDisplay ); # GetNewsToDisplay use Koha::Quotes; use C4::Members; use C4::Overdues qw( checkoverdues ); --- a/opac/opac-memberentry.pl +++ a/opac/opac-memberentry.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use Digest::MD5 qw( md5_base64 md5_hex ); -use JSON; +use JSON qw( to_json ); use List::MoreUtils qw( any each_array uniq ); use String::Random qw( random_string ); @@ -28,14 +28,14 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Members qw( get_cardnumber_length checkcardnumber ); use C4::Form::MessagingPreferences; -use Koha::AuthUtils qw( generate_password is_password_valid ); +use Koha::AuthUtils (); use Koha::Patrons; use Koha::Patron::Consent; use Koha::Patron::Modification; use Koha::Patron::Modifications; use C4::Scrubber; use Email::Valid; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Libraries; use Koha::Patron::Attribute::Types; use Koha::Patron::Attributes; --- a/opac/opac-messaging.pl +++ a/opac/opac-messaging.pl @@ -23,7 +23,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha; use C4::Circulation; use C4::Output qw( output_html_with_http_headers ); use C4::Members; --- a/opac/opac-mymessages.pl +++ a/opac/opac-mymessages.pl @@ -23,8 +23,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha; -use C4::Letters qw( GetRSSMessages ); +use C4::Letters (); use C4::Output qw( output_html_with_http_headers ); my $query = CGI->new(); --- a/opac/opac-news-rss.pl +++ a/opac/opac-news-rss.pl @@ -19,11 +19,10 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::NewsChannels; # GetNewsToDisplay -use C4::Languages qw(getTranslatedLanguages accept_language); +use C4::NewsChannels qw( GetNewsToDisplay ); # GetNewsToDisplay my $input = CGI->new; my $dbh = C4::Context->dbh; --- a/opac/opac-passwd.pl +++ a/opac/opac-passwd.pl @@ -29,7 +29,7 @@ use C4::Members; use C4::Output qw( output_html_with_http_headers ); use Koha::Patrons; -use Try::Tiny; +use Try::Tiny qw( catch try ); my $query = CGI->new; --- a/opac/opac-password-recovery.pl +++ a/opac/opac-password-recovery.pl @@ -1,19 +1,23 @@ #!/usr/bin/perl use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use Koha::Patron::Password::Recovery - qw(SendPasswordRecoveryEmail ValidateBorrowernumber GetValidLinkInfo CompletePasswordRecovery DeleteExpiredPasswordRecovery); +use Koha::Patron::Password::Recovery qw( + CompletePasswordRecovery + DeleteExpiredPasswordRecovery + GetValidLinkInfo + SendPasswordRecoveryEmail + ValidateBorrowernumber +); use Koha::Patrons; my $query = CGI->new; -use HTML::Entities; -use Try::Tiny; -use List::Util qw/any/; +use HTML::Entities (); +use Try::Tiny qw( catch try ); +use List::Util qw( any ); my ( $template, $dummy, $cookie ) = get_template_and_user( { --- a/opac/opac-patron-consent.pl +++ a/opac/opac-patron-consent.pl @@ -22,7 +22,7 @@ use CGI qw/-utf8/; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::DateUtils qw/dt_from_string/; +use Koha::DateUtils qw( dt_from_string ); use Koha::Patron::Consents; use Koha::Patrons; --- a/opac/opac-ratings-ajax.pl +++ a/opac/opac-ratings-ajax.pl @@ -34,7 +34,7 @@ use C4::Output qw( is_ajax output_ajax_with_http_headers ); use Koha::Ratings; -use JSON; +use JSON (); my $is_ajax = is_ajax(); --- a/opac/opac-readingrecord.pl +++ a/opac/opac-readingrecord.pl @@ -21,13 +21,16 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha qw( GetNormalizedISBN getitemtypeimagelocation GetNormalizedUPC ); -use C4::Biblio qw( GetXmlBiblio ); +use C4::Koha qw( + getitemtypeimagelocation + GetNormalizedISBN + GetNormalizedUPC +); +use C4::Biblio (); use C4::Circulation; use C4::Members qw( GetAllIssues ); use C4::External::BakerTaylor qw( image_url link_url ); -use Koha::DateUtils; -use MARC::Record; +use MARC::Record (); use C4::Output qw( output_html_with_http_headers ); use C4::Charset qw( StripNonXmlChars ); --- a/opac/opac-registration-verify.pl +++ a/opac/opac-registration-verify.pl @@ -23,7 +23,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Members; use C4::Form::MessagingPreferences; -use Koha::AuthUtils qw( generate_password ); +use Koha::AuthUtils (); use Koha::Patrons; use Koha::Patron::Consent; use Koha::Patron::Modifications; --- a/opac/opac-renew.pl +++ a/opac/opac-renew.pl @@ -27,11 +27,9 @@ use CGI qw ( -utf8 ); use C4::Circulation qw( CanBookBeRenewed AddRenewal ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Items; use C4::Members; use Koha::Items; use Koha::Patrons; -use Date::Calc qw( Today Date_to_Days ); my $query = CGI->new; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( --- a/opac/opac-reportproblem.pl +++ a/opac/opac-reportproblem.pl @@ -19,17 +19,17 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Letters qw( GetPreparedLetter EnqueueLetter ); +use C4::Letters (); use Koha::ProblemReport; use Koha::Libraries; use Koha::Patrons; use Koha::Util::Navigation; -use URI::Escape; -use Encode; +use URI::Escape qw( uri_unescape ); +use Encode (); my $input = CGI->new; --- a/opac/opac-reserve.pl +++ a/opac/opac-reserve.pl @@ -22,11 +22,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha qw( getitemtypeimagesrc getitemtypeimagelocation ); +use C4::Koha qw( getitemtypeimagelocation getitemtypeimagesrc ); use C4::Circulation qw( GetBranchItemRule GetTransfers ); use C4::Reserves qw( CanItemBeReserved CanBookBeReserved AddReserve GetReservesControlBranch IsAvailableForItemLevelRequest ); -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetFrameworkCode ); -use C4::Items qw( GetItemsInfo GetHostItemsInfo sub ); +use C4::Biblio qw( GetBiblioData GetFrameworkCode GetMarcBiblio ); +use C4::Items qw( GetHostItemsInfo GetItemsInfo ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Members; @@ -34,15 +34,14 @@ use C4::Overdues; use Koha::AuthorisedValues; use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::CirculationRules; use Koha::Items; use Koha::ItemTypes; use Koha::Checkouts; use Koha::Libraries; use Koha::Patrons; -use Date::Calc qw/Today Date_to_Days/; -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); my $maxreserves = C4::Context->preference("maxreserves"); --- a/opac/opac-restrictedpage.pl +++ a/opac/opac-restrictedpage.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/opac/opac-retrieve-file.pl +++ a/opac/opac-retrieve-file.pl @@ -18,8 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; -use Encode; +use Encode (); use C4::Auth qw( get_template_and_user ); use C4::Context; --- a/opac/opac-review.pl +++ a/opac/opac-review.pl @@ -20,13 +20,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; use C4::Scrubber; use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Review; use Koha::Reviews; --- a/opac/opac-search-history.pl +++ a/opac/opac-search-history.pl @@ -23,12 +23,8 @@ use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Log; -use C4::Items; use C4::Search::History; -use URI::Escape; -use POSIX qw(strftime); my $cgi = CGI->new; --- a/opac/opac-search.pl +++ a/opac/opac-search.pl @@ -28,11 +28,9 @@ use Modern::Perl; # to perform, etc. ## load Koha modules use C4::Context; -use List::MoreUtils q/any/; -use Try::Tiny; -use Encode; +use List::MoreUtils qw( any ); +use Encode (); -use Data::Dumper; # TODO remove use Koha::SearchEngine::Search; use Koha::SearchEngine::QueryBuilder; @@ -45,14 +43,13 @@ $searcher = Koha::SearchEngine::Search->new({index => 'biblios'}); use C4::Output qw( output_html_with_http_headers pagination_bar output_with_http_headers ); use C4::Auth qw( get_template_and_user get_session ); -use C4::Languages qw( getlanguage getLanguages ); +use C4::Languages qw( getLanguages ); use C4::Search qw( searchResults ); use C4::Search qw( searchResults ); -use C4::Biblio qw( GetXmlBiblio CountItemsIssued ); +use C4::Biblio qw( CountItemsIssued ); use C4::Koha qw( GetItemTypesCategorized getitemtypeimagelocation GetAuthorisedValues ); -use C4::Tags qw( get_tags get_tag ); +use C4::Tags qw( get_tags ); use C4::SocialData; -use C4::External::OverDrive; use C4::External::BakerTaylor qw( image_url link_url ); use Koha::CirculationRules; @@ -65,10 +62,9 @@ use Koha::Patrons; use Koha::Plugins; use Koha::SearchFields; -use POSIX qw(ceil floor strftime); -use URI::Escape; -use JSON qw/decode_json encode_json/; -use Business::ISBN; +use POSIX qw( strftime ); +use URI::Escape qw( uri_escape_utf8 uri_unescape ); +use Business::ISBN (); my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); # create a new CGI object --- a/opac/opac-sendbasket.pl +++ a/opac/opac-sendbasket.pl @@ -20,12 +20,17 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); -use Carp; -use Try::Tiny; - -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetMarcAuthors GetMarcSubjects ); -use C4::Items qw( sub GetItemsInfo ); +use Encode (); +use Carp qw( carp ); +use Try::Tiny qw( catch try ); + +use C4::Biblio qw( + GetBiblioData + GetMarcAuthors + GetMarcBiblio + GetMarcSubjects +); +use C4::Items qw( GetItemsInfo ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Members; --- a/opac/opac-sendshelf.pl +++ a/opac/opac-sendshelf.pl @@ -20,13 +20,20 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw( encode ); -use Carp; -use Try::Tiny; +use Encode (); +use Carp qw( carp ); +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetMarcBiblio GetFrameworkCode GetBiblioData GetMarcAuthors GetMarcSubjects GetMarcISBN ); -use C4::Items qw( sub GetItemsInfo ); +use C4::Biblio qw( + GetBiblioData + GetFrameworkCode + GetMarcAuthors + GetMarcBiblio + GetMarcISBN + GetMarcSubjects +); +use C4::Items qw( GetItemsInfo ); use C4::Output qw( output_html_with_http_headers ); use C4::Members; use Koha::Email; --- a/opac/opac-serial-issues.pl +++ a/opac/opac-serial-issues.pl @@ -22,9 +22,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Serials qw( GetFullSubscription GetFullSubscriptionsFromBiblionumber PrepareSerialsData GetSubscription GetSubscriptionsFromBiblionumber ); -use C4::Letters; use C4::Output qw( output_html_with_http_headers ); use C4::Context; --- a/opac/opac-shareshelf.pl +++ a/opac/opac-shareshelf.pl @@ -29,8 +29,7 @@ use Email::Valid; use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Letters qw( GetPreparedLetter EnqueueLetter ); -use C4::Members (); +use C4::Letters (); use C4::Output qw( output_html_with_http_headers ); use Koha::Patrons; --- a/opac/opac-shelves.pl +++ a/opac/opac-shelves.pl @@ -21,13 +21,18 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetFrameworkCode ); +use C4::Biblio qw( GetBiblioData GetFrameworkCode GetMarcBiblio ); use C4::External::BakerTaylor qw( image_url link_url ); -use C4::Koha qw( getitemtypeimagelocation GetNormalizedUPC GetNormalizedEAN GetNormalizedOCLCNumber GetNormalizedISBN ); +use C4::Koha qw( + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); use C4::Items qw( GetItemsLocationInfo ); use C4::Members; use C4::Output qw( pagination_bar output_with_http_headers ); -use C4::Tags qw( get_tags get_tag ); +use C4::Tags qw( get_tags ); use C4::XSLT; use Koha::Biblios; --- a/opac/opac-showmarc.pl +++ a/opac/opac-showmarc.pl @@ -21,13 +21,12 @@ use Modern::Perl; # standard or CPAN modules used use CGI qw ( -utf8 ); -use Encode; +use Encode (); # Koha modules used use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::ImportBatch; use C4::XSLT (); use C4::Templates; --- a/opac/opac-showreviews.pl +++ a/opac/opac-showreviews.pl @@ -22,14 +22,19 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha qw( GetNormalizedUPC GetNormalizedEAN GetNormalizedOCLCNumber GetNormalizedISBN ); +use C4::Koha qw( + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); use C4::Output qw( output_html_with_http_headers ); use C4::Circulation; use C4::Biblio qw( GetMarcBiblio ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; use Koha::Reviews; -use POSIX qw(ceil floor strftime); +use POSIX qw( ceil floor ); my $template_name; my $query = CGI->new; --- a/opac/opac-suggestions.pl +++ a/opac/opac-suggestions.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw( encode ); +use Encode (); use C4::Auth qw( get_template_and_user ); use C4::Members; use C4::Koha qw( GetAuthorisedValues ); @@ -33,7 +33,7 @@ use Koha::AuthorisedValues; use Koha::Libraries; use Koha::Patrons; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my $op = $input->param('op') || 'else'; --- a/opac/opac-tags.pl +++ a/opac/opac-tags.pl @@ -40,11 +40,17 @@ use C4::Context; use C4::Output qw( output_with_http_headers is_ajax output_html_with_http_headers ); use C4::Scrubber; use C4::Biblio qw( GetMarcBiblio ); -use C4::Items qw( sub GetItemsInfo GetHiddenItemnumbers ); -use C4::Tags qw( add_tag remove_tag get_tag_rows get_tag get_approval_rows stratify_tags ); +use C4::Items qw( GetHiddenItemnumbers GetItemsInfo ); +use C4::Tags qw( + add_tag + get_approval_rows + get_tag_rows + remove_tag + stratify_tags +); use C4::XSLT; -use Data::Dumper; +use Data::Dumper qw( Dumper ); use Koha::Logger; use Koha::Biblios; --- a/opac/opac-tags_subject.pl +++ a/opac/opac-tags_subject.pl @@ -30,7 +30,6 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Biblio; my $query = CGI->new; --- a/opac/opac-topissues.pl +++ a/opac/opac-topissues.pl @@ -24,12 +24,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Languages; use C4::Search; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::Circulation qw( GetTopIssues ); -use Date::Manip; =head1 NAME --- a/opac/opac-user.pl +++ a/opac/opac-user.pl @@ -22,19 +22,21 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha qw( getitemtypeimagelocation GetNormalizedISBN GetNormalizedUPC ); +use C4::Koha qw( + getitemtypeimagelocation + GetNormalizedISBN + GetNormalizedUPC +); use C4::Circulation qw( CanBookBeRenewed GetRenewCount GetIssuingCharges GetSoonestRenewDate ); use C4::External::BakerTaylor qw( image_url link_url ); use C4::Reserves qw( GetReserveStatus ); use C4::Members; use C4::Output qw( output_html_with_http_headers ); use C4::Biblio qw( GetMarcBiblio ); -use C4::Items; -use C4::Letters; use Koha::Account::Lines; use Koha::Biblios; use Koha::Libraries; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::Holds; use Koha::Database; use Koha::ItemTypes; @@ -48,12 +50,8 @@ use Koha::Token; use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE'; -use Scalar::Util qw(looks_like_number); -use Date::Calc qw( - Today - Add_Delta_Days - Date_to_Days -); +use Scalar::Util qw( looks_like_number ); +use Date::Calc qw( Date_to_Days Today ); my $query = CGI->new; --- a/opac/sci/sci-main.pl +++ a/opac/sci/sci-main.pl @@ -25,7 +25,7 @@ use C4::Output qw( output_html_with_http_headers ); use Koha::Items; use List::MoreUtils qw( uniq ); -use Try::Tiny; +use Try::Tiny qw( catch try ); my $cgi = CGI->new; --- a/opac/sco/printslip.pl +++ a/opac/sco/printslip.pl @@ -32,7 +32,6 @@ use C4::Context; use C4::Auth qw( in_iprange get_session get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Members qw( IssueSlip ); -use C4::Koha; my $input = CGI->new; unless ( in_iprange(C4::Context->preference('SelfCheckAllowByIPRanges')) ) { --- a/opac/sco/sco-main.pl +++ a/opac/sco/sco-main.pl @@ -36,13 +36,10 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( in_iprange get_template_and_user checkpw ); -use C4::Koha; use C4::Circulation qw( AddReturn CanBookBeIssued AddIssue CanBookBeRenewed AddRenewal ); use C4::Reserves; use C4::Output qw( output_html_with_http_headers ); use C4::Members; -use C4::Biblio; -use C4::Items; use Koha::DateUtils qw( dt_from_string ); use Koha::Acquisition::Currencies; use Koha::Items; --- a/opac/tracklinks.pl +++ a/opac/tracklinks.pl @@ -21,12 +21,12 @@ use Modern::Perl; use C4::Context; use C4::Auth qw( checkauth ); -use C4::Biblio qw( GetMarcBiblio GetMarcUrls ); +use C4::Biblio (); use C4::Output qw( output_error ); use Koha::Items; use Koha::Linktracker; use CGI qw ( -utf8 ); -use List::MoreUtils qw(any); +use List::MoreUtils qw( any ); my $cgi = CGI->new; my $uri = $cgi->param('uri') || ''; --- a/patron_lists/add-modify.pl +++ a/patron_lists/add-modify.pl @@ -23,7 +23,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::List::Patron; +use Koha::List::Patron qw( AddPatronList GetPatronLists ModPatronList ); my $cgi = CGI->new; --- a/patron_lists/delete.pl +++ a/patron_lists/delete.pl @@ -23,7 +23,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output; -use Koha::List::Patron; +use Koha::List::Patron qw( DelPatronList ); my $cgi = CGI->new; --- a/patron_lists/list.pl +++ a/patron_lists/list.pl @@ -23,8 +23,12 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::List::Patron; -use List::MoreUtils qw/uniq/; +use Koha::List::Patron qw( + AddPatronsToList + DelPatronsFromList + GetPatronLists +); +use List::MoreUtils qw( uniq ); my $cgi = CGI->new; --- a/patron_lists/lists.pl +++ a/patron_lists/lists.pl @@ -23,7 +23,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); my $cgi = CGI->new; --- a/patron_lists/patrons.pl +++ a/patron_lists/patrons.pl @@ -23,7 +23,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use Koha::List::Patron; +use Koha::List::Patron qw( AddPatronList GetPatronLists ModPatronList ); my $cgi = CGI->new; --- a/patroncards/create-pdf.pl +++ a/patroncards/create-pdf.pl @@ -20,16 +20,16 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use Graphics::Magick; -use XML::Simple; -use POSIX qw(ceil); -use Storable qw(dclone); +use Graphics::Magick (); +use XML::Simple qw( XMLin ); +use POSIX qw( ceil ); +use Storable qw( dclone ); use autouse 'Data::Dumper' => qw(Dumper); use C4::Context; -use C4::Creators; -use C4::Patroncards; -use Koha::List::Patron; +use C4::Creators (); +use C4::Patroncards (); +use Koha::List::Patron qw( GetPatronLists ); use Koha::Patrons; use Koha::Patron::Images; --- a/patroncards/edit-batch.pl +++ a/patroncards/edit-batch.pl @@ -27,8 +27,8 @@ use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( get_card_summary html_table ); +use C4::Patroncards (); use Koha::Patrons; my $cgi = CGI->new; --- a/patroncards/edit-layout.pl +++ a/patroncards/edit-layout.pl @@ -21,14 +21,19 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Text::CSV_XS; -use XML::Simple; +use XML::Simple qw( XMLin XMLout ); use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( + get_all_image_names + get_barcode_types + get_font_types + get_text_justification_types + get_unit_values +); +use C4::Patroncards (); my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/patroncards/edit-profile.pl +++ a/patroncards/edit-profile.pl @@ -24,7 +24,7 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators::Lib qw(get_all_templates get_unit_values); +use C4::Creators::Lib qw( get_all_templates get_unit_values ); use C4::Patroncards::Profile; my $cgi = CGI->new; --- a/patroncards/edit-template.pl +++ a/patroncards/edit-template.pl @@ -25,8 +25,8 @@ use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( get_all_profiles get_unit_values ); +use C4::Patroncards (); my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/patroncards/image-manage.pl +++ a/patroncards/image-manage.pl @@ -3,14 +3,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Graphics::Magick; -use POSIX qw(ceil); +use Graphics::Magick (); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( html_table ); +use C4::Patroncards qw( get_image put_image rm_image ); my $cgi = CGI->new; --- a/patroncards/manage.pl +++ a/patroncards/manage.pl @@ -26,10 +26,16 @@ use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( + get_all_layouts + get_all_profiles + get_all_templates + get_batch_summary + html_table +); +use C4::Patroncards (); use C4::Labels; -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/patroncards/print.pl +++ a/patroncards/print.pl @@ -24,8 +24,7 @@ use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Creators; -use C4::Patroncards; +use C4::Creators qw( get_all_layouts get_all_templates get_output_formats ); my $cgi = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/plugins/plugins-home.pl +++ a/plugins/plugins-home.pl @@ -21,8 +21,8 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use JSON qw(from_json); -use LWP::Simple qw(get); +use JSON qw( from_json ); +use LWP::Simple qw( get ); use Koha::Plugins; use C4::Auth qw( get_template_and_user ); --- a/plugins/plugins-uninstall.pl +++ a/plugins/plugins-uninstall.pl @@ -18,8 +18,6 @@ use Modern::Perl; use Archive::Extract; -use File::Temp; -use File::Copy; use CGI qw ( -utf8 ); use C4::Context; --- a/plugins/plugins-upload.pl +++ a/plugins/plugins-upload.pl @@ -21,8 +21,7 @@ use Modern::Perl; use Archive::Extract; use CGI qw ( -utf8 ); use Mojo::UserAgent; -use File::Copy; -use File::Temp; +use File::Temp (); use C4::Context; use C4::Auth qw( get_template_and_user ); --- a/pos/pay.pl +++ a/pos/pay.pl @@ -19,7 +19,7 @@ use Modern::Perl; -use CGI; +use CGI (); use JSON qw( from_json ); use C4::Auth qw( get_session get_template_and_user ); --- a/pos/printreceipt.pl +++ a/pos/printreceipt.pl @@ -22,9 +22,8 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Letters qw( getletter ); +use C4::Letters (); use Koha::Account::Lines; -use Koha::DateUtils; use Koha::Notice::Templates; my $input = CGI->new; --- a/pos/register.pl +++ a/pos/register.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; @@ -26,7 +26,7 @@ use C4::Context; use Koha::Account::Lines; use Koha::Cash::Registers; use Koha::Database; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new(); --- a/pos/registers.pl +++ a/pos/registers.pl @@ -18,7 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; --- a/reports/acquisitions_stats.pl +++ a/reports/acquisitions_stats.pl @@ -26,9 +26,9 @@ use C4::Reports qw( GetDelimiterChoices ); use C4::Output qw( output_html_with_http_headers ); use C4::Koha qw( GetAuthorisedValues ); use C4::Circulation; -use C4::Biblio qw( GetMarcSubfieldStructure GetMarcSubfieldStructureFromKohaField ); +use C4::Biblio qw( GetMarcSubfieldStructureFromKohaField ); use Koha::ItemTypes; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Libraries; =head1 NAME --- a/reports/bor_issues_top.pl +++ a/reports/bor_issues_top.pl @@ -23,12 +23,11 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use C4::Koha; use C4::Circulation; use C4::Members; use C4::Reports qw( GetDelimiterChoices ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::ItemTypes; use Koha::Patron::Categories; @@ -286,7 +285,7 @@ sub calculate { $patrons{$id}->{oldcols}->{$col} = $rank; } - use Data::Dumper; + use Data::Dumper qw( Dumper ); $strcalc =~ s/old_issues/issues/g; $dbcalc = $dbh->prepare($strcalc); --- a/reports/borrowers_out.pl +++ a/reports/borrowers_out.pl @@ -22,13 +22,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); use C4::Circulation; use C4::Reports qw( GetDelimiterChoices ); use C4::Members; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patron::Categories; =head1 NAME --- a/reports/borrowers_stats.pl +++ a/reports/borrowers_stats.pl @@ -19,7 +19,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use List::MoreUtils qw/uniq/; use C4::Auth qw( get_template_and_user ); use C4::Context; @@ -30,15 +29,12 @@ use C4::Reports qw( GetDelimiterChoices ); use C4::Circulation; use Koha::AuthorisedValues; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Libraries; use Koha::Patron::Attribute::Types; use Koha::Patron::Categories; -use Date::Calc qw( - Today - Add_Delta_YM - ); +use Date::Calc qw( Add_Delta_YM Today ); =head1 NAME --- a/reports/cash_register_stats.pl +++ a/reports/cash_register_stats.pl @@ -17,16 +17,15 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use CGI; +use CGI (); use C4::Context; use C4::Reports qw( GetDelimiterChoices ); use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::Circulation; use DateTime; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Text::CSV::Encoded; -use List::Util qw/any/; +use List::Util qw( any ); use Koha::Account::CreditTypes; use Koha::Account::DebitTypes; --- a/reports/cat_issues_top.pl +++ a/reports/cat_issues_top.pl @@ -27,7 +27,7 @@ use C4::Koha qw( GetAuthorisedValues ); use C4::Circulation; use C4::Reports qw( GetDelimiterChoices ); use C4::Members; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::ItemTypes; =head1 NAME --- a/reports/catalogue_out.pl +++ a/reports/catalogue_out.pl @@ -24,7 +24,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); # use Date::Manip; # TODO: add not borrowed since date X criteria -use Data::Dumper; +use Data::Dumper qw( Dumper ); =head1 catalogue_out --- a/reports/catalogue_stats.pl +++ a/reports/catalogue_stats.pl @@ -26,10 +26,10 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Koha qw( GetAuthorisedValues ); use C4::Reports qw( GetDelimiterChoices ); use C4::Circulation; -use C4::Biblio qw( GetMarcSubfieldStructure GetMarcSubfieldStructureFromKohaField ); +use C4::Biblio qw( GetMarcSubfieldStructureFromKohaField ); use Koha::AuthorisedValues; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::ItemTypes; =head1 NAME --- a/reports/dictionary.pl +++ a/reports/dictionary.pl @@ -16,13 +16,12 @@ # # You should have received a copy of the GNU General Public License # along with Koha; if not, see . -use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use Modern::Perl; use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); use C4::Reports::Guided qw( get_from_dictionary get_columns get_column_type get_distinct_values save_dictionary delete_definition get_report_areas ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); =head1 NAME --- a/reports/guided_reports.pl +++ a/reports/guided_reports.pl @@ -21,23 +21,23 @@ use Modern::Perl; use CGI qw/-utf8/; use Text::CSV::Encoded; use Encode qw( decode ); -use URI::Escape; -use File::Temp; +use URI::Escape (); +use File::Temp (); use C4::Reports::Guided qw( delete_report get_report_areas convert_sql update_sql get_saved_reports get_results ValidateSQLParameters format_results get_report_types get_columns get_from_dictionary get_criteria build_query save_report execute_query nb_rows get_report_groups ); use Koha::Reports; use C4::Auth qw( get_template_and_user get_session ); use C4::Output qw( pagination_bar output_html_with_http_headers ); use C4::Context; use Koha::Caches; -use C4::Log; -use Koha::DateUtils qw/dt_from_string output_pref/; +use C4::Log qw( logaction ); +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::AuthorisedValue; use Koha::AuthorisedValues; use Koha::BiblioFrameworks; use Koha::Libraries; use Koha::Patron::Categories; use Koha::SharedContent; -use Koha::Util::OpenDocument; +use Koha::Util::OpenDocument qw( generate_ods ); =head1 NAME --- a/reports/issues_avg_stats.pl +++ a/reports/issues_avg_stats.pl @@ -23,13 +23,12 @@ use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::Circulation; use C4::Reports qw( GetDelimiterChoices ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::ItemTypes; use Koha::Patron::Categories; -use Date::Calc qw(Delta_Days); +use Date::Calc qw( Delta_Days ); =head1 NAME --- a/reports/issues_stats.pl +++ a/reports/issues_stats.pl @@ -20,7 +20,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Date::Manip; use C4::Auth qw( get_template_and_user ); use C4::Context; @@ -31,7 +30,7 @@ use C4::Reports qw( GetDelimiterChoices ); use C4::Members; use Koha::AuthorisedValues; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::ItemTypes; use Koha::Patron::Attribute::Types; --- a/reports/itemslost.pl +++ a/reports/itemslost.pl @@ -28,15 +28,12 @@ This script displays lost items. use Modern::Perl; use CGI qw ( -utf8 ); -use Text::CSV_XS; +use Text::CSV_XS (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; -use C4::Items; use Koha::AuthorisedValues; use Koha::CsvProfiles; -use Koha::DateUtils; my $query = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/reports/orders_by_fund.pl +++ a/reports/orders_by_fund.pl @@ -31,11 +31,9 @@ use CGI qw( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Budgets; -use C4::Biblio; -use C4::Reports; use C4::Acquisition; #GetBasket() use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $query = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --- a/reports/reserves_stats.pl +++ a/reports/reserves_stats.pl @@ -28,11 +28,11 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Reports qw( GetDelimiterChoices ); use C4::Members; use Koha::AuthorisedValues; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::ItemTypes; use Koha::Libraries; use Koha::Patron::Categories; -use List::MoreUtils qw/any/; +use List::MoreUtils qw( any ); =head1 NAME --- a/reports/serials_stats.pl +++ a/reports/serials_stats.pl @@ -22,7 +22,6 @@ use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; use C4::Reports qw( GetDelimiterChoices ); use C4::Serials qw( GetExpirationDate HasSubscriptionExpired ); --- a/reserve/placerequest.pl +++ a/reserve/placerequest.pl @@ -24,12 +24,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Biblio; -use C4::Items; use C4::Output; use C4::Reserves qw( CanItemBeReserved AddReserve CanBookBeReserved ); use C4::Circulation; -use C4::Members; use C4::Auth qw( checkauth ); use Koha::Items; --- a/reserve/request.pl +++ a/reserve/request.pl @@ -29,23 +29,21 @@ script to place reserves/requests use Modern::Perl; use CGI qw ( -utf8 ); -use List::MoreUtils qw/uniq/; -use Date::Calc qw/Date_to_Days/; +use List::MoreUtils qw( uniq ); +use Date::Calc qw( Date_to_Days ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Reserves qw( RevertWaitingStatus AlterPriority ToggleLowestPriority ToggleSuspend CanBookBeReserved GetMaxPatronHoldsForRecord ItemsAnyAvailableAndNotRestricted GetReservesControlBranch CanItemBeReserved IsAvailableForItemLevelRequest ); -use C4::Biblio; -use C4::Items qw( get_hostitemnumbers_of sub ); +use C4::Items qw( get_hostitemnumbers_of ); use C4::Koha qw( getitemtypeimagelocation ); use C4::Serials qw( CountSubscriptionFromBiblionumber ); use C4::Circulation qw( GetTransfers _GetCircControlBranch GetBranchItemRule ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use C4::Utils::DataTables::Members; -use C4::Members; use C4::Search qw( enabled_staff_search_views ); use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Checkouts; use Koha::Holds; use Koha::CirculationRules; --- a/reviews/reviewswaiting.pl +++ a/reviews/reviewswaiting.pl @@ -21,7 +21,6 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( pagination_bar output_html_with_http_headers ); use C4::Context; -use C4::Biblio; use Koha::Biblios; use Koha::Patrons; use Koha::Reviews; --- a/rotating_collections/addItems.pl +++ a/rotating_collections/addItems.pl @@ -22,7 +22,6 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::RotatingCollections; -use C4::Items; use Koha::Items; --- a/serials/acqui-search-result.pl +++ a/serials/acqui-search-result.pl @@ -42,11 +42,10 @@ acqui-search-result.pl use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use C4::Biblio; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); use C4::Acquisition qw( SearchOrders ); -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::Acquisition::Booksellers; --- a/serials/checkexpiration.pl +++ a/serials/checkexpiration.pl @@ -48,7 +48,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Serials qw( SearchSubscriptions GetExpirationDate ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use DateTime; --- a/serials/claims.pl +++ a/serials/claims.pl @@ -24,8 +24,7 @@ use C4::Serials qw( GetSuppliersWithLateIssues GetLateOrMissingIssues updateClai use C4::Acquisition; use C4::Output qw( output_html_with_http_headers ); use C4::Context; -use C4::Letters qw( SendAlerts GetLetters ); -use C4::Koha qw( GetAuthorisedValues ); +use C4::Letters qw( GetLetters SendAlerts ); use Koha::AdditionalFields; use Koha::CsvProfiles; --- a/serials/create-numberpattern.pl +++ a/serials/create-numberpattern.pl @@ -20,9 +20,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Context; -use C4::Serials::Numberpattern; +use C4::Serials::Numberpattern qw( + AddSubscriptionNumberpattern + ModSubscriptionNumberpattern +); use C4::Auth qw( check_cookie_auth ); -use URI::Escape; my $input = CGI->new; --- a/serials/lateissues-export.pl +++ a/serials/lateissues-export.pl @@ -25,7 +25,7 @@ use C4::Context; use Koha::CsvProfiles; -use Text::CSV_XS; +use Text::CSV_XS (); my $query = CGI->new; my $supplierid = $query->param('supplierid'); --- a/serials/routing-preview.pl +++ a/serials/routing-preview.pl @@ -27,11 +27,9 @@ use C4::Acquisition; use C4::Reserves qw( AddReserve ModReserve ); use C4::Circulation; use C4::Context; -use C4::Members; -use C4::Biblio; -use C4::Items qw( sub GetItemsInfo ); +use C4::Items qw( GetItemsInfo ); use C4::Serials qw( delroutingmember getroutinglist GetSubscription GetSerials check_routing ); -use URI::Escape; +use URI::Escape (); use Koha::Biblios; use Koha::Libraries; --- a/serials/routing.pl +++ a/serials/routing.pl @@ -34,11 +34,10 @@ use C4::Acquisition; use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Context; -use C4::Members; use C4::Serials qw( GetSubscription delroutingmember addroutingmember getroutinglist GetSerials GetLatestSerials check_routing ); use Koha::Patrons; -use URI::Escape; +use URI::Escape (); my $query = CGI->new; my $subscriptionid = $query->param('subscriptionid'); --- a/serials/serials-collection.pl +++ a/serials/serials-collection.pl @@ -22,16 +22,14 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Serials qw( ModSerialStatus GetSubscription GetNextExpected GetNextSeq GetNextDate NewIssue HasSubscriptionExpired abouttoexpire check_routing GetFullSubscription PrepareSerialsData CountSubscriptionFromBiblionumber GetSubscriptionsFromBiblionumber GetFullSubscriptionsFromBiblionumber ); -use C4::Letters; use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Context; use Koha::Serial::Items; use Koha::DateUtils qw( dt_from_string ); -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); my $query = CGI->new; --- a/serials/serials-edit.pl +++ a/serials/serials-edit.pl @@ -63,21 +63,20 @@ op can be : use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw( decode is_utf8 ); +use Encode (); use C4::Auth qw( get_template_and_user haspermission ); -use C4::Biblio qw( TransformHtmlToXml GetMarcFromKohaField ); -use C4::Items qw( sub PrepareItemrecordDisplay AddItemFromMarc ModItemFromMarc ); -use C4::Koha; +use C4::Biblio qw( GetMarcFromKohaField TransformHtmlToXml ); +use C4::Items qw( AddItemFromMarc ModItemFromMarc PrepareItemrecordDisplay ); use C4::Output qw( output_html_with_http_headers ); use C4::Context; use C4::Serials qw( GetSerials GetSerials2 GetSerialInformation HasSubscriptionExpired GetSubscription abouttoexpire NewIssue ModSerialStatus GetPreviousSerialid AddItem2Serial ); use C4::Search qw( enabled_staff_search_views ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Items; use Koha::Serial::Items; -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); my $query = CGI->new(); my $dbh = C4::Context->dbh; --- a/serials/serials-search.pl +++ a/serials/serials-search.pl @@ -32,12 +32,11 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Koha qw( GetAuthorisedValues ); use C4::Output qw( output_html_with_http_headers ); use C4::Serials qw( CloseSubscription ReopenSubscription SearchSubscriptions check_routing ); use Koha::AdditionalFields; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::SharedContent; my $query = CGI->new; --- a/serials/showpredictionpattern.pl +++ a/serials/showpredictionpattern.pl @@ -31,12 +31,12 @@ publication date, based on frequency and first publication date. use Modern::Perl; use CGI qw ( -utf8 ); -use Date::Calc qw(Today Day_of_Year Week_of_Year Day_of_Week Days_in_Year Delta_Days Add_Delta_Days Add_Delta_YM); +use Date::Calc qw( Add_Delta_Days Add_Delta_YM Day_of_Week Delta_Days ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Serials qw( GetSubscription GetFictiveIssueNumber GetSeq GetSubscriptionIrregularities GetNextDate GetNextSeq ); use C4::Serials qw( GetSubscription GetFictiveIssueNumber GetSeq GetSubscriptionIrregularities GetNextDate GetNextSeq ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { --- a/serials/subscription-add.pl +++ a/serials/subscription-add.pl @@ -18,7 +18,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Date::Calc qw(Today Day_of_Year Week_of_Year Add_Delta_Days Add_Delta_YM); +use Date::Calc qw( Add_Delta_Days Add_Delta_YM ); use C4::Koha qw( GetAuthorisedValues ); use C4::Biblio qw( GetMarcBiblio ); use C4::Auth qw( get_template_and_user ); @@ -31,9 +31,9 @@ use C4::Serials qw( GetSubscription GetNextExpected GetSerials GetSubscriptionLe use C4::Letters qw( GetLetters ); use Koha::AdditionalFields; use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::ItemTypes; -use Carp; +use Carp qw( carp ); use Koha::Subscription::Numberpattern; use Koha::Subscription::Frequency; --- a/serials/subscription-batchedit.pl +++ a/serials/subscription-batchedit.pl @@ -27,7 +27,7 @@ use C4::Serials qw( can_edit_subscription ); use Koha::Subscriptions; use Koha::Acquisition::Booksellers; use Koha::AdditionalFields; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); my $cgi = CGI->new; --- a/serials/subscription-detail.pl +++ a/serials/subscription-detail.pl @@ -20,7 +20,6 @@ use CGI qw ( -utf8 ); use C4::Acquisition; use C4::Auth qw( get_template_and_user checkauth ); use C4::Budgets; -use C4::Koha; use C4::Serials qw( CloseSubscription ReopenSubscription GetSubscription GetExpirationDate GetSerials HasSubscriptionStrictlyExpired CountIssues HasItems DelSubscription check_routing abouttoexpire can_edit_subscription ); use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Context; @@ -28,12 +27,11 @@ use C4::Search qw( enabled_staff_search_views ); use Koha::AdditionalFields; use Koha::AuthorisedValues; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); use Koha::Acquisition::Bookseller; use Koha::Subscriptions; -use Date::Calc qw/Today Day_of_Year Week_of_Year Add_Delta_Days/; -use Carp; +use Carp qw( carp ); use Koha::SharedContent; --- a/serials/subscription-frequency.pl +++ a/serials/subscription-frequency.pl @@ -20,7 +20,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Context; -use C4::Serials::Frequency; +use C4::Serials::Frequency qw( GetSubscriptionFrequency ); use C4::Auth qw( check_cookie_auth ); use JSON qw( to_json ); --- a/serials/subscription-history.pl +++ a/serials/subscription-history.pl @@ -33,10 +33,9 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; use C4::Serials qw( ModSubscriptionHistory ModSubscription GetSubscriptionHistoryFromSubscriptionId GetSubscription ); use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( output_pref ); my $input = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { --- a/serials/subscription-numberpattern.pl +++ a/serials/subscription-numberpattern.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Serials::Numberpattern; +use C4::Serials::Numberpattern qw( GetSubscriptionNumberpattern ); use C4::Auth qw( check_cookie_auth ); use JSON qw( to_json ); --- a/serials/subscription-numberpatterns.pl +++ a/serials/subscription-numberpatterns.pl @@ -32,8 +32,16 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); -use C4::Serials::Numberpattern; -use C4::Serials::Frequency; +use C4::Serials::Numberpattern qw( + AddSubscriptionNumberpattern + DelSubscriptionNumberpattern + GetSubscriptionNumberpattern + GetSubscriptionNumberpatternByName + GetSubscriptionNumberpatterns + GetSubscriptionsWithNumberpattern + ModSubscriptionNumberpattern +); +use C4::Serials::Frequency qw( GetSubscriptionFrequencies ); my $input = CGI->new; my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { --- a/serials/subscription-renew.pl +++ a/serials/subscription-renew.pl @@ -46,14 +46,14 @@ Id of the subscription this script has to renew use Modern::Perl; use CGI qw ( -utf8 ); -use Carp; +use Carp qw( carp ); use C4::Koha; use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Serials qw( GetSubscription GetSubscriptionLength NewSubscription ReNewSubscription ); -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $query = CGI->new; my $dbh = C4::Context->dbh; --- a/suggestion/suggestion.pl +++ a/suggestion/suggestion.pl @@ -33,7 +33,7 @@ use Koha::Acquisition::Currencies; use Koha::Libraries; use Koha::Patrons; -use URI::Escape; +use URI::Escape qw( uri_escape ); sub Init{ my $suggestion= shift @_; --- a/svc/cataloguing/automatic_linker.pl +++ a/svc/cataloguing/automatic_linker.pl @@ -18,10 +18,10 @@ # along with Koha; if not, see . use Modern::Perl; -use CGI; -use JSON; +use CGI (); +use JSON qw( to_json ); use C4::Auth qw( check_cookie_auth ); -use C4::Biblio qw( TransformHtmlToMarc BiblioAutoLink ); +use C4::Biblio qw( BiblioAutoLink TransformHtmlToMarc ); use C4::Context; my $input = CGI->new; --- a/t/Koha/sleep.pl +++ a/t/Koha/sleep.pl @@ -4,7 +4,6 @@ use Modern::Perl; use Koha::Script; use Fcntl qw(:flock); -use Try::Tiny; # # Lock execution my $script = Koha::Script->new({ script => 'sleep.pl' }); --- a/t/Koha/wait.pl +++ a/t/Koha/wait.pl @@ -4,7 +4,6 @@ use Modern::Perl; use Koha::Script; use Fcntl qw(:flock); -use Try::Tiny; # # Lock execution my $script = Koha::Script->new({ script => 'sleep.pl' }); --- a/t/db_dependent/zebra_config.pl +++ a/t/db_dependent/zebra_config.pl @@ -2,11 +2,11 @@ use Modern::Perl; -use File::Copy; -use File::Path qw(make_path); -use File::Find; -use File::Basename; -use File::Spec; +use File::Copy qw( copy ); +use File::Path qw( make_path ); +use File::Find qw( find ); +use File::Basename qw( dirname ); +use File::Spec (); use C4::Context; --- a/tags/list.pl +++ a/tags/list.pl @@ -24,8 +24,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Biblio qw( GetBiblioData ); use C4::Context; use C4::Items qw( GetItemsInfo ); -use C4::Koha; -use C4::Tags qw( remove_tag get_tag_rows get_tag get_tags ); +use C4::Tags qw( get_tag_rows get_tags remove_tag ); use C4::Output qw( output_html_with_http_headers ); my $needed_flags = { tools => 'moderate_tags' --- a/tags/review.pl +++ a/tags/review.pl @@ -20,16 +20,22 @@ # along with Koha; if not, see . use Modern::Perl; -use Data::Dumper; -use POSIX; +use Data::Dumper qw( Dumper ); +use POSIX qw( ceil exit ); use CGI qw ( -utf8 ); use CGI::Cookie; # need to check cookies before having CGI parse the POST request -use URI::Escape; +use URI::Escape qw( uri_escape_utf8 ); use C4::Auth qw( check_cookie_auth get_template_and_user ); use C4::Context; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use C4::Output qw( output_with_http_headers is_ajax pagination_bar output_html_with_http_headers ); -use C4::Tags qw( is_approved whitelist blacklist approval_counts get_approval_rows ); +use C4::Tags qw( + approval_counts + blacklist + get_approval_rows + is_approved + whitelist +); my $script_name = "/cgi-bin/koha/tags/review.pl"; my $needed_flags = { tools => 'moderate_tags' }; # FIXME: replace when more specific permission is created. --- a/tools/access_files.pl +++ a/tools/access_files.pl @@ -24,13 +24,12 @@ use Modern::Perl; use C4::Auth qw( get_template_and_user ); -use CGI; +use CGI (); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Koha; -use File::stat qw(stat); -use Digest::MD5 qw(md5_hex); -use Encode; +use File::stat qw( stat ); +use Digest::MD5 qw( md5_hex ); +use Encode qw( decode ); my $input = CGI->new; my $file_id = $input->param("id"); --- a/tools/automatic_item_modification_by_age.pl +++ a/tools/automatic_item_modification_by_age.pl @@ -31,12 +31,11 @@ This script allows a user to update the new status for items. use Modern::Perl; -use CGI; -use JSON qw( to_json from_json ); +use CGI (); +use JSON qw( to_json ); use C4::Auth qw( get_template_and_user ); use C4::Context; -use C4::Items qw( sub ); use C4::Output qw( output_html_with_http_headers ); use C4::Koha; --- a/tools/background-job-progress.pl +++ a/tools/background-job-progress.pl @@ -20,7 +20,6 @@ use Modern::Perl; # standard or CPAN modules used -use IO::File; use CGI qw ( -utf8 ); use CGI::Session; use C4::Context; --- a/tools/batchMod.pl +++ a/tools/batchMod.pl @@ -20,26 +20,33 @@ use CGI qw ( -utf8 ); use Modern::Perl; -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user haspermission ); use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio qw( GetMarcStructure GetMarcFromKohaField TransformHtmlToXml DelBiblio IsMarcStructureInternal GetAuthorisedValueDesc ); -use C4::Items qw( sub Item2Marc ModItemFromMarc GetItemsInfo ); +use C4::Biblio qw( + DelBiblio + GetAuthorisedValueDesc + GetMarcFromKohaField + GetMarcStructure + IsMarcStructureInternal + TransformHtmlToXml +); +use C4::Items qw( GetItemsInfo Item2Marc ModItemFromMarc ); use C4::Circulation qw( LostItem IsItemIssued ); use C4::Context; use C4::Koha; use C4::BackgroundJob; -use C4::ClassSource qw( GetClassSources GetClassSource ); +use C4::ClassSource qw( GetClassSources ); use C4::Members; use MARC::File::XML; -use List::MoreUtils qw/uniq/; +use List::MoreUtils qw( uniq ); use Koha::Database; use Koha::Exceptions::Exception; use Koha::AuthorisedValues; use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Items; use Koha::ItemTypes; use Koha::Patrons; --- a/tools/batch_delete_records.pl +++ a/tools/batch_delete_records.pl @@ -20,13 +20,13 @@ use Modern::Perl; -use CGI; +use CGI (); use List::MoreUtils qw( uniq ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetMarcBiblio CountItemsIssued DelBiblio ); +use C4::Biblio qw( GetMarcBiblio ); use Koha::Virtualshelves; use Koha::Authorities; --- a/tools/batch_extend_due_dates.pl +++ a/tools/batch_extend_due_dates.pl @@ -20,7 +20,7 @@ use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/tools/batch_record_modification.pl +++ a/tools/batch_record_modification.pl @@ -20,16 +20,17 @@ use Modern::Perl; -use CGI; +use CGI (); use List::MoreUtils qw( uniq ); -use JSON qw( encode_json ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetMarcBiblio ModBiblio ); -use C4::MarcModificationTemplates qw( GetModificationTemplateActions GetModificationTemplates ); +use C4::MarcModificationTemplates qw( + GetModificationTemplateActions + GetModificationTemplates +); use Koha::Biblios; use Koha::BackgroundJob::BatchUpdateBiblio; --- a/tools/batch_records_ajax.pl +++ a/tools/batch_records_ajax.pl @@ -32,10 +32,9 @@ the records from an import batch. use Modern::Perl; use CGI qw ( -utf8 ); -use JSON qw/ to_json /; +use JSON qw( to_json ); use C4::Context; -use C4::Charset; use C4::Auth qw( check_cookie_auth ); use C4::ImportBatch qw( GetImportBatch GetImportRecordsRange GetImportRecordMatches ); --- a/tools/cleanborrowers.pl +++ a/tools/cleanborrowers.pl @@ -41,9 +41,8 @@ use C4::Circulation; # AnonymiseIssueHistory. use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patron::Categories; use Koha::Patrons; -use Date::Calc qw/Today Add_Delta_YM/; use Koha::Patrons; -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); my $cgi = CGI->new; --- a/tools/csv-profiles.pl +++ a/tools/csv-profiles.pl @@ -35,13 +35,12 @@ This script allow the user to define a new profile for CSV export =cut use Modern::Perl; -use Encode; +use Encode (); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use CGI qw ( -utf8 ); -use C4::Koha; use Koha::CsvProfiles; my $input = CGI->new; --- a/tools/exceptionHolidays.pl +++ a/tools/exceptionHolidays.pl @@ -9,7 +9,7 @@ use C4::Output; use DateTime; use C4::Calendar; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); my $input = CGI->new; my $dbh = C4::Context->dbh(); --- a/tools/export.pl +++ a/tools/export.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); use MARC::File::XML; -use List::MoreUtils qw(uniq); +use List::MoreUtils qw( uniq ); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); @@ -27,7 +27,7 @@ use Koha::Authority::Types; use Koha::Biblioitems; use Koha::CsvProfiles; use Koha::Database; -use Koha::DateUtils qw( dt_from_string output_pref ); +use Koha::DateUtils qw( dt_from_string ); use Koha::Exporter::Record; use Koha::ItemTypes; use Koha::Libraries; --- a/tools/holidays.pl +++ a/tools/holidays.pl @@ -24,7 +24,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); use C4::Calendar; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; --- a/tools/import_borrowers.pl +++ a/tools/import_borrowers.pl @@ -40,14 +40,14 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit output_html_with_http_headers ); use C4::Templates; use Koha::Patrons; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Token; use Koha::Libraries; use Koha::Patron::Categories; use Koha::Patron::Attribute::Types; -use Koha::List::Patron; +use Koha::List::Patron qw( AddPatronList AddPatronsToList ); -use Koha::Patrons::Import; +use Koha::Patrons::Import (); my $Import = Koha::Patrons::Import->new(); use Text::CSV; --- a/tools/inventory.pl +++ a/tools/inventory.pl @@ -29,15 +29,14 @@ my $barcodelist = $input->param('barcodelist'); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Biblio; -use C4::Items qw( GetItemsForInventory sub ); +use C4::Items qw( GetItemsForInventory ); use C4::Koha qw( GetAuthorisedValues ); use C4::Circulation qw( AddReturn ); use C4::Reports::Guided qw( _get_column_defs ); use C4::Charset qw( NormalizeString ); use Koha::Biblios; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::AuthorisedValues; use Koha::BiblioFrameworks; use Koha::ClassSources; --- a/tools/koha-news.pl +++ a/tools/koha-news.pl @@ -25,13 +25,18 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::NewsChannels; +use C4::NewsChannels qw( + add_opac_new + del_opac_new + get_opac_new + get_opac_news + upd_opac_new +); use C4::Languages qw( getTranslatedLanguages ); -use Date::Calc qw/Date_to_Days Today/; -use Koha::DateUtils; +use Date::Calc qw( Date_to_Days Today ); +use Koha::DateUtils qw( dt_from_string output_pref ); my $cgi = CGI->new; --- a/tools/letter.pl +++ a/tools/letter.pl @@ -45,8 +45,8 @@ use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); -use C4::Letters qw( GetLetterTemplates GetMessageTransportTypes GetMessage getletter ); -use C4::Log; +use C4::Letters qw( GetMessageTransportTypes ); +use C4::Log qw( logaction ); use Koha::Notice::Templates; use Koha::Patron::Attribute::Types; --- a/tools/manage-marc-import.pl +++ a/tools/manage-marc-import.pl @@ -30,7 +30,6 @@ use C4::Koha; use C4::Auth qw( get_template_and_user ); 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 sub GetImportBatch GetImportBatchOverlayAction GetImportBatchNoMatchAction GetImportBatchItemAction SetImportBatchOverlayAction SetImportBatchNoMatchAction SetImportBatchItemAction BatchFindDuplicates SetImportBatchMatcher GetItemNumbersFromImportBatch GetImportBatchRangeDesc GetNumberOfNonZ3950ImportBatches BatchCommitRecords BatchRevertRecords ); use C4::Matcher; use C4::BackgroundJob; --- a/tools/marc_modification_templates.pl +++ a/tools/marc_modification_templates.pl @@ -21,9 +21,17 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); -use C4::MarcModificationTemplates; +use C4::MarcModificationTemplates qw( + AddModificationTemplate + AddModificationTemplateAction + DelModificationTemplate + DelModificationTemplateAction + GetModificationTemplateActions + GetModificationTemplates + ModModificationTemplateAction + MoveModificationTemplateAction +); my $cgi = CGI->new; --- a/tools/modborrowers.pl +++ a/tools/modborrowers.pl @@ -31,12 +31,11 @@ use C4::Auth qw( get_template_and_user ); use C4::Koha qw( GetAuthorisedValues ); use C4::Members; use C4::Output qw( output_html_with_http_headers ); -use List::MoreUtils qw /any uniq/; use Koha::DateUtils qw( dt_from_string ); -use Koha::List::Patron; +use Koha::List::Patron qw( GetPatronLists ); use Koha::Libraries; use Koha::Patron::Categories; -use Koha::Patron::Debarments; +use Koha::Patron::Debarments qw( AddDebarment DelDebarment GetDebarments ); use Koha::Patrons; my $input = CGI->new; --- a/tools/newHolidays.pl +++ a/tools/newHolidays.pl @@ -26,7 +26,7 @@ use C4::Output; use C4::Calendar; use DateTime; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string output_pref ); my $input = CGI->new; my $dbh = C4::Context->dbh(); --- a/tools/overduerules.pl +++ a/tools/overduerules.pl @@ -22,8 +22,7 @@ use CGI qw ( -utf8 ); use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); -use C4::Koha; -use C4::Letters qw( GetLetters GetLettersAvailableForALibrary GetMessageTransportTypes GetMessage ); +use C4::Letters (); use C4::Members; use C4::Overdues qw( GetOverdueMessageTransportTypes ); use Koha::Libraries; --- a/tools/picture-upload.pl +++ a/tools/picture-upload.pl @@ -21,10 +21,9 @@ use Modern::Perl; -use File::Temp; -use File::Copy; +use File::Temp (); use CGI qw ( -utf8 ); -use GD; +use GD (); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_and_exit output_html_with_http_headers ); --- a/tools/quotes-upload.pl +++ a/tools/quotes-upload.pl @@ -23,7 +23,6 @@ use CGI qw ( -utf8 ); use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw( get_template_and_user ); -use C4::Koha; use C4::Context; use C4::Output qw( output_html_with_http_headers ); --- a/tools/quotes.pl +++ a/tools/quotes.pl @@ -18,7 +18,7 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Try::Tiny; +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); use C4::Context; --- a/tools/scheduler.pl +++ a/tools/scheduler.pl @@ -19,12 +19,12 @@ use Modern::Perl; use C4::Context; -use C4::Scheduler qw( add_at_job remove_at_job get_jobs ); +use C4::Scheduler qw( add_at_job get_jobs remove_at_job ); use C4::Reports::Guided qw( get_saved_reports ); use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use C4::Output qw( output_html_with_http_headers ); -use Koha::DateUtils;; +use Koha::DateUtils qw( dt_from_string output_pref );; use vars qw($debug); --- a/tools/stage-marc-import.pl +++ a/tools/stage-marc-import.pl @@ -35,12 +35,11 @@ use MARC::File::USMARC; use C4::Context; 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 RecordsFromMarcPlugin BatchStageMarcRecords BatchFindDuplicates SetImportBatchMatcher SetImportBatchOverlayAction SetImportBatchNoMatchAction SetImportBatchItemAction sub ); use C4::Matcher; use Koha::UploadedFiles; use C4::BackgroundJob; -use C4::MarcModificationTemplates; +use C4::MarcModificationTemplates qw( GetModificationTemplates ); use Koha::Plugins; use Koha::ImportBatches; --- a/tools/stockrotation.pl +++ a/tools/stockrotation.pl @@ -25,7 +25,7 @@ =cut use Modern::Perl; -use CGI; +use CGI (); use C4::Auth qw( get_template_and_user ); use C4::Context; --- a/tools/upload-cover-image.pl +++ a/tools/upload-cover-image.pl @@ -39,9 +39,9 @@ resized, maintaining aspect ratio. use Modern::Perl; -use File::Temp; +use File::Temp (); use CGI qw ( -utf8 ); -use GD; +use GD (); use C4::Context; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); @@ -49,7 +49,7 @@ use Koha::Biblios; use Koha::CoverImages; use Koha::Items; use Koha::UploadedFiles; -use C4::Log; +use C4::Log qw( logaction ); my $debug = 1; --- a/tools/upload-file.pl +++ a/tools/upload-file.pl @@ -21,9 +21,9 @@ use Modern::Perl; use CGI qw ( -utf8 ); use CGI::Cookie; -use Encode; -use JSON; -use URI::Escape; +use Encode (); +use JSON (); +use URI::Escape qw( uri_unescape ); use C4::Context; use C4::Auth qw( check_cookie_auth get_session ); --- a/tools/upload.pl +++ a/tools/upload.pl @@ -19,7 +19,7 @@ use Modern::Perl; use CGI qw/-utf8/; -use JSON; +use JSON (); use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); --- a/tools/viewlog.pl +++ a/tools/viewlog.pl @@ -24,15 +24,13 @@ use C4::Auth qw( get_template_and_user ); use CGI qw ( -utf8 ); use Text::CSV::Encoded; use C4::Context; -use C4::Koha; use C4::Output qw( output_html_with_http_headers ); -use C4::Items qw( sub ); use C4::Serials qw( CountSubscriptionFromBiblionumber ); use C4::Search qw( enabled_staff_search_views ); use Koha::ActionLogs; use Koha::Database; -use Koha::DateUtils; +use Koha::DateUtils qw( dt_from_string ); use Koha::Items; use Koha::Patrons; --- a/virtualshelves/addbybiblionumber.pl +++ a/virtualshelves/addbybiblionumber.pl @@ -59,7 +59,6 @@ addbybiblionumber.pl use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Biblio; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); --- a/virtualshelves/downloadshelf.pl +++ a/virtualshelves/downloadshelf.pl @@ -20,14 +20,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw(encode); use C4::Auth qw( get_template_and_user ); use C4::Biblio qw( GetMarcBiblio ); -use C4::Items; use C4::Output qw( output_html_with_http_headers ); use C4::Record; -use C4::Ris; +use C4::Ris qw( marc2ris ); use Koha::CsvProfiles; use Koha::Virtualshelves; --- a/virtualshelves/sendshelf.pl +++ a/virtualshelves/sendshelf.pl @@ -20,13 +20,19 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use Encode qw( encode ); -use Carp; -use Try::Tiny; +use Encode (); +use Carp qw( carp ); +use Try::Tiny qw( catch try ); use C4::Auth qw( get_template_and_user ); -use C4::Biblio qw( GetBiblioData GetMarcBiblio GetMarcAuthors GetMarcSubjects GetMarcISBN ); -use C4::Items qw( sub GetItemsInfo ); +use C4::Biblio qw( + GetBiblioData + GetMarcAuthors + GetMarcBiblio + GetMarcISBN + GetMarcSubjects +); +use C4::Items qw( GetItemsInfo ); use C4::Output qw( output_html_with_http_headers ); use Koha::Email; use Koha::Virtualshelves; --- a/virtualshelves/shelves.pl +++ a/virtualshelves/shelves.pl @@ -21,8 +21,13 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth qw( get_template_and_user ); use C4::Biblio qw( GetMarcBiblio ); -use C4::Koha qw( getitemtypeimagelocation GetNormalizedUPC GetNormalizedEAN GetNormalizedOCLCNumber GetNormalizedISBN ); -use C4::Items qw( sub GetItemsLocationInfo ); +use C4::Koha qw( + GetNormalizedEAN + GetNormalizedISBN + GetNormalizedOCLCNumber + GetNormalizedUPC +); +use C4::Items qw( GetItemsLocationInfo ); use C4::Members; use C4::Output qw( pagination_bar output_html_with_http_headers ); use C4::XSLT; --- a/xt/yaml_valid.pl +++ a/xt/yaml_valid.pl @@ -18,8 +18,8 @@ # along with Koha; if not, see . use Modern::Perl; -use Getopt::Long; -use YAML::XS; +use Getopt::Long qw( GetOptions ); +use YAML::XS (); my $usage = <