Browse Source

Bug 24819: (follow-up) Rename suggestor to suggester

I believe I suggested a typo - trying to fix it here.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Katrin Fischer 3 years ago
committed by Martin Renvoize
parent
commit
e5001c5a37
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
  2. 0
      koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggester_search.tt
  3. 4
      koha-tmpl/intranet-tmpl/prog/js/suggestions.js
  4. 2
      suggestion/suggester_search.pl

2
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

@ -378,7 +378,7 @@
<td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td>
<td id="tdsuggestedby"><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/>[% IF ( suggestedby_patron.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %])[% END %]
</td>
<td><a href="#" id="suggestor_search" class="btn btn-default">Set to patron</a></td>
<td><a href="#" id="suggester_search" class="btn btn-default">Set to patron</a></td>
</tr>
<tr>
<th><label for="accepteddate">Accepted on:</label> </th>

0
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggestor_search.tt → koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/tables/suggester_search.tt

4
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');
});
});

2
suggestion/suggestor_search.pl → 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,
Loading…
Cancel
Save