View | Details | Raw Unified | Return to bug 20859
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +33 lines)
Lines 214-220 Link Here
214
214
215
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
215
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
216
216
217
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' ] %]
217
                [% FOREACH field = ['streetnumber' 'streettype'  'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'smsalertnumber' 'sms_provider_id' ] %]
218
                    [% IF mandatory.defined( field ) %]
218
                    [% IF mandatory.defined( field ) %]
219
                        [% SET required.$field = 'required' %]
219
                        [% SET required.$field = 'required' %]
220
                    [% END %]
220
                    [% END %]
Lines 902-908 Link Here
902
                            </div> <!-- /.col -->
902
                            </div> <!-- /.col -->
903
                        </div> <!-- /.row -->
903
                        </div> <!-- /.row -->
904
                    [% END %]
904
                    [% END %]
905
                    [% IF ( Koha.Preference('SMSSendDriver') ) && !hidden.defined('smsalertnumber') && !hidden.defined('sms_provider_id') && action != 'edit' %]
906
                        <div class="row">
907
                            <div class="col">
908
                                <fieldset class="rows" id="memberentry_sms">
909
                                     <legend id="sms_legend">SMS number</legend>
910
                                    <ol>
911
                                        [% UNLESS hidden.defined('smsalertnumber') %]
912
                                            <li>
913
                                                <label for="borrower_smsalertnumber" class="[% required.smsalertnumber | html %]">SMS number:</label>
905
914
915
                                                <input type="text" id="borrower_smsalertnumber" name="borrower_smsalertnumber" value="[% borrower.smsalertnumber | html %]" class="[% required.smsalertnumber | html %]" />
916
                                                <div class="required_label [% required.smsalertnumber | html %]">Required</div>
917
                                                <span class="hint smsalertnumber_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span>
918
                                            </li>
919
                                        [% END %]
920
                                        [% UNLESS hidden.defined('sms_provider_id') %]
921
                                            <li>
922
                                                <label for="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]">SMS provider:</label>
923
                                                <select id="borrower_sms_provider_id" name="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]">
924
                                                    <option value="">Unknown</option>
925
                                                    [% FOREACH s IN sms_providers %]
926
                                                            <option value="[% s.id | html %]">[% s.name | html %]</option>
927
                                                    [% END %]
928
                                                </select>
929
                                                <div class="required_label [% required.sms_provider_id | html %]">Required</div>
930
                                                <span class="hint sms_provider_id_help">Please contact a library staff member if you are unsure of your mobile service provider, or you do not see your provider in this list.</span>
931
                                            </li>
932
                                        [% END %]
933
                                    </ol>
934
                                </fieldset>
935
                            </div>
936
                        </div>
937
                    [% END %]
906
                    [% UNLESS action == 'edit' || hidden.defined('password') %]
938
                    [% UNLESS action == 'edit' || hidden.defined('password') %]
907
                        <div class="row">
939
                        <div class="row">
908
                            <div class="col">
940
                            <div class="col">
(-)a/opac/opac-memberentry.pl (-2 / +9 lines)
Lines 45-50 use Koha::Patron::Images; Link Here
45
use Koha::Patron::Categories;
45
use Koha::Patron::Categories;
46
use Koha::Token;
46
use Koha::Token;
47
use Koha::AuthorisedValues;
47
use Koha::AuthorisedValues;
48
use Koha::SMS::Providers;
48
my $cgi = CGI->new;
49
my $cgi = CGI->new;
49
my $dbh = C4::Context->dbh;
50
my $dbh = C4::Context->dbh;
50
51
Lines 98-103 if ( defined $min ) { Link Here
98
99
99
my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
100
my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
100
101
102
if( C4::Context->preference("SMSSendDriver") eq 'Email' ) {
103
    my @providers = Koha::SMS::Providers->search( {}, { order_by => 'name' } )->as_list;
104
    $template->param(
105
        sms_providers => \@providers,
106
    );
107
}
108
101
$template->param(
109
$template->param(
102
    action            => $action,
110
    action            => $action,
103
    hidden            => GetHiddenFields( $mandatory, $action ),
111
    hidden            => GetHiddenFields( $mandatory, $action ),
Lines 562-568 sub ParseCgiForBorrower { Link Here
562
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
570
    $borrower{gdpr_proc_consent} = dt_from_string if  $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed';
563
571
564
    delete $borrower{$_} for qw/borrowernumber date_renewed debarred debarredcomment flags privacy privacy_guarantor_fines privacy_guarantor_checkouts checkprevcheckout updated_on lastseen lang login_attempts overdrive_auth_token anonymized/; # See also members/memberentry.pl
572
    delete $borrower{$_} for qw/borrowernumber date_renewed debarred debarredcomment flags privacy privacy_guarantor_fines privacy_guarantor_checkouts checkprevcheckout updated_on lastseen lang login_attempts overdrive_auth_token anonymized/; # See also members/memberentry.pl
565
    delete $borrower{$_} for qw/dateenrolled dateexpiry borrowernotes opacnote sort1 sort2 sms_provider_id autorenew_checkouts gonenoaddress lost relationship/; # On OPAC only
573
    delete $borrower{$_} for qw/dateenrolled dateexpiry borrowernotes opacnote sort1 sort2 autorenew_checkouts gonenoaddress lost relationship/; # On OPAC only
566
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
574
    delete $borrower{$_} for split( /\s*\|\s*/, C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{} );
567
575
568
    return %borrower;
576
    return %borrower;
569
- 

Return to bug 20859