<form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
- [% FOREACH field = ['streetnumber' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' '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' ] %]
+ [% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'dateofbirth' 'initials' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' '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' ] %]
[% IF mandatory.defined( field ) %]
[% SET required.$field = 'required' %]
[% END %]
<ol>
[% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
+ [% IF roadtypes %]
+ [% UNLESS hidden.defined('streettype') %]
+ <li>
+ <label for="borrower_streettype" class="[% required.streettype | html %]">Street type:</label>
+
+ <select name="borrower_streettype" name="borrower_streettype">
+ <option value=""></option>
+ [% FOR roadtype IN roadtypes %]
+ [% IF roadtype.authorised_value == patron.streettype %]
+ <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
+ [% ELSE %]
+ <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ <div class="required_label [% required.streettype | html %]">Required</div>
+ </li>
+ [% END %]
+ [% END %]
+
[% UNLESS hidden.defined('address') %]
<li>
<label for="borrower_address" class="[% required.address | html %]">Address:</label>
use Koha::Patron::Modifications;
use Koha::Patron::Categories;
use Koha::Token;
-
+use Koha::AuthorisedValues;
my $cgi = CGI->new;
my $dbh = C4::Context->dbh;
}
}
+my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
+$template->param(
+ roadtypes => $roadtypes,
+);
+
if ( $action eq 'create' ) {
my %borrower = ParseCgiForBorrower($cgi);