From d1a403bc4486ee9508d417556690626b5ea10736 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 13 Apr 2020 18:22:04 +0000 Subject: [PATCH] Bug 24819: (follow-up) Rename suggestor to suggester I believe I suggested a typo - trying to fix it here. Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- .../suggestion/tables/{suggestor_search.tt => suggester_search.tt} | 0 koha-tmpl/intranet-tmpl/prog/js/suggestions.js | 4 ++-- suggestion/{suggestor_search.pl => suggester_search.pl} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/{suggestor_search.tt => suggester_search.tt} (100%) rename suggestion/{suggestor_search.pl => suggester_search.pl} (96%) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 2794a0abec..800d7ddc13 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -378,7 +378,7 @@ [% INCLUDE 'date-format.inc' %] [% IF ( suggestedby_patron.borrowernumber ) %][% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %]) [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %])[% END %] - Set to patron + Set to patron diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestor_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggester_search.tt similarity index 100% rename from koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestor_search.tt rename to koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggester_search.tt diff --git a/koha-tmpl/intranet-tmpl/prog/js/suggestions.js b/koha-tmpl/intranet-tmpl/prog/js/suggestions.js index d884b6af09..cff05bd094 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/suggestions.js +++ b/koha-tmpl/intranet-tmpl/prog/js/suggestions.js @@ -9,9 +9,9 @@ function select_user(borrowernumber, borrower) { } $(document).ready(function(){ - $('body').on('click', '#suggestor_search', function(e) { + $('body').on('click', '#suggester_search', function(e) { e.preventDefault(); - var newin = window.open('suggestor_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); + var newin = window.open('suggester_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); }); }); diff --git a/suggestion/suggestor_search.pl b/suggestion/suggester_search.pl similarity index 96% rename from suggestion/suggestor_search.pl rename to suggestion/suggester_search.pl index 05a831fd01..bdbb281137 100755 --- a/suggestion/suggestor_search.pl +++ b/suggestion/suggester_search.pl @@ -48,7 +48,7 @@ my $patron_categories = Koha::Patron::Categories->search_limited; $template->param( view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ], - json_template => 'suggestion/tables/suggestor_search.tt', + json_template => 'suggestion/tables/suggester_search.tt', selection_type => 'select', alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => $patron_categories, -- 2.11.0