<th>First name</th>
<th>Library</th>
<th>Patron category</th>
+ <th>Street number</th>
+ <th>Address</th>
+ <th>Address 2</th>
<th>City</th>
<th>State</th>
<th>ZIP/Postal code</th>
<th>Country</th>
+ <th>Primary email</th>
+ <th>Phone</th>
+ <th>Mobile</th>
<th class="title-string">Registration date</th>
<th class="title-string">Expiry date</th>
<th>Circulation note</th>
<th>OPAC note</th>
- <th>Primary email</th>
<th>Restriction expiration</th>
<th>Restriction comment</th>
[% FOREACH attrh IN attributes_header %]
<td>[% borrower.firstname | html %]</td>
<td>[% Branches.GetName( borrower.branchcode ) | html %]</td>
<td>[% Categories.GetName(borrower.categorycode) | html %]</td>
+ <td>[% borrower.streetnumber | html %]</td>
+ <td>[% borrower.address | html %]</td>
+ <td>[% borrower.address2 | html %]</td>
<td>[% borrower.city | html %]</td>
<td>[% borrower.state | html %]</td>
<td>[% borrower.zipcode | html %]</td>
<td>[% borrower.country | html %]</td>
+ <td>[% borrower.email | html %]</td>
+ <td>[% borrower.phone | html %]</td>
+ <td>[% borrower.mobile | html %]</td>
<td><span title="[% borrower.dateenrolled | html %]">[% borrower.dateenrolled | $KohaDates %]</span></td>
<td><span title="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
<td>[% borrower.borrowernotes | html %]</td>
<td>[% borrower.opacnote | html %]</td>
- <td>[% borrower.email | html %]</td>
<td><span title="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</span></td>
<td>[% borrower.debarredcomment | html %]</td>
[% FOREACH pa IN borrower.patron_attributes %]
Library:
[% CASE 'categorycode' %]
Patron category:
+ [% CASE 'streetnumber' %]
+ Street number:
+ [% CASE 'address' %]
+ Address:
+ [% CASE 'address2' %]
+ Address 2:
[% CASE 'city' %]
City:
[% CASE 'state' %]
ZIP/Postal code:
[% CASE 'country' %]
Country:
+ [% CASE 'email' %]
+ Primary email:
+ [% CASE 'phone' %]
+ Phone:
+ [% CASE 'mobile' %]
+ Mobile:
[% CASE 'sort1' %]
Sort 1:
[% CASE 'sort2' %]
Circulation note:
[% CASE 'opacnote' %]
OPAC note:
- [% CASE 'email' %]
- Primary email:
[% CASE 'debarred' %]
Restriction expiration:
[% CASE 'debarredcomment' %]
}
,
{
+ name => "streetnumber",
+ type => "text",
+ mandatory => ( grep /streetnumber/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
+ name => "address",
+ type => "text",
+ mandatory => ( grep /address/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
+ name => "address2",
+ type => "text",
+ mandatory => ( grep /address2/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
name => "city",
type => "text",
mandatory => ( grep /city/, @mandatoryFields ) ? 1 : 0,
}
,
{
+ name => "email",
+ type => "text",
+ mandatory => ( grep /email/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
+ name => "phone",
+ type => "text",
+ mandatory => ( grep /phone/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
+ name => "mobile",
+ type => "text",
+ mandatory => ( grep /mobile/, @mandatoryFields ) ? 1 : 0,
+ }
+ ,
+ {
name => "sort1",
type => @sort1_option ? "select" : "text",
option => \@sort1_option,
}
,
{
- name => "email",
- type => "text",
- mandatory => ( grep /email/, @mandatoryFields ) ? 1 : 0,
- }
- ,
- {
name => "debarred",
type => "date",
mandatory => ( grep /debarred/, @mandatoryFields ) ? 1 : 0,
my @disabled = $input->multi_param('disable_input');
my $infos;
- for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote email/ ) {
+ for my $field ( qw/surname firstname branchcode categorycode streetnumber address address2 city state zipcode country email phone mobile sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote/ ) {
my $value = $input->param($field);
$infos->{$field} = $value if $value;
$infos->{$field} = "" if grep { /^$field$/ } @disabled;