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

(-)a/installer/data/mysql/atomicupdate/borrowers_primary_contact_method.sql (-1 / +1 lines)
Lines 1-3 Link Here
1
ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `lastseen`;
1
ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `overdrive_auth_token`;
2
ALTER TABLE `deletedborrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `overdrive_auth_token`;
2
ALTER TABLE `deletedborrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `overdrive_auth_token`;
3
ALTER TABLE `borrower_modifications` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `extended_attributes`;
3
ALTER TABLE `borrower_modifications` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `extended_attributes`;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +2 lines)
Lines 432-439 Link Here
432
432
433
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
433
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
434
  <fieldset class="rows" id="memberentry_contact">
434
  <fieldset class="rows" id="memberentry_contact">
435
    <legend id="contact_lgd">Contact</legend>
435
    <legend id="contact_lgd">Contact</legend><ol>
436
<ol>
437
        [% UNLESS nophone %]
436
        [% UNLESS nophone %]
438
      <li>
437
      <li>
439
      [% IF ( mandatoryphone ) %]
438
      [% IF ( mandatoryphone ) %]
Lines 496-502 Link Here
496
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
495
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
497
    </li>
496
    </li>
498
        [% END %]
497
        [% END %]
499
    [% UNLESS nofax %]
498
        [% UNLESS nofax %]
500
    <li>
499
    <li>
501
      [% IF ( mandatoryfax ) %]
500
      [% IF ( mandatoryfax ) %]
502
      <label for="fax" class="required">
501
      <label for="fax" class="required">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-4 / +4 lines)
Lines 19-25 Link Here
19
            <div class="col-xs-6">
19
            <div class="col-xs-6">
20
                <div id="patron-information">
20
                <div id="patron-information">
21
21
22
     [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames | html %]&rdquo;[% END %]
22
     [% UNLESS ( I ) %][% IF ( patron.othernames ) %]&ldquo;[% patron.othernames %]&rdquo;[% END %]
23
        <div class = "address">
23
        <div class = "address">
24
            <ul>
24
            <ul>
25
                [% IF Koha.Preference( 'AddressFormat' ) %]
25
                [% IF Koha.Preference( 'AddressFormat' ) %]
Lines 61-69 Link Here
61
	<h3>Library use</h3>
61
	<h3>Library use</h3>
62
	<div class="rows">
62
	<div class="rows">
63
	<ol>
63
	<ol>
64
    <li><span class="label">Card number: </span>[% cardnumber | html %]</li>
64
    <li><span class="label">Card number: </span>[% patron.cardnumber %]</li>
65
	<li><span class="label">Borrowernumber: </span> [% borrowernumber | html %]</li>
65
    <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
66
    <li><span class="label">Category: </span>[% categoryname | html %] ([% categorycode | html %])</li>
66
    <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
67
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
67
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
68
    <li><span class="label">Expiration date: </span>
68
    <li><span class="label">Expiration date: </span>
69
    [% IF ( was_renewed ) %]
69
    [% IF ( was_renewed ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-9 lines)
Lines 255-269 Link Here
255
                                                    [% END %]
255
                                                    [% END %]
256
                                                </ul>
256
                                                </ul>
257
                                            </li>
257
                                            </li>
258
                                        [% ELSIF guarantor %]
259
                                            <li>
260
                                                <span class="label">Guarantor:</span>
261
                                                [% IF guarantor.borrowernumber AND logged_in_user.can_see_patron_infos( guarantor ) %]
262
                                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
263
                                                [% ELSE %]
264
                                                    [% guarantor.firstname | html %] [% guarantor.surname | html %]
265
                                                [% END %]
266
                                            </li>
267
                                        [% END %]
258
                                        [% END %]
268
259
269
                                        [% IF ( primary_contact_method ) %]
260
                                        [% IF ( primary_contact_method ) %]
(-)a/members/moremember.pl (-3 lines)
Lines 319-327 $template->param( Link Here
319
    patron          => $patron,
319
    patron          => $patron,
320
    translated_language => $translated_language,
320
    translated_language => $translated_language,
321
    detailview      => 1,
321
    detailview      => 1,
322
    borrowernumber  => $borrowernumber,
323
    othernames      => $data->{'othernames'},
324
    categoryname    => $patron->category->description,
325
    primary_contact_method  => $data->{'primary_contact_method'},
322
    primary_contact_method  => $data->{'primary_contact_method'},
326
    was_renewed     => scalar $input->param('was_renewed') ? 1 : 0,
323
    was_renewed     => scalar $input->param('was_renewed') ? 1 : 0,
327
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
324
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
(-)a/opac/opac-memberentry.pl (-12 / +11 lines)
Lines 95-112 $template->param( Link Here
95
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
95
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
96
);
96
);
97
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
97
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
98
        my @field_check=split(/\|/,$check_BorrowerMandatoryField);
98
my @field_check=split(/\|/,$check_BorrowerMandatoryField);
99
        my @contactprincipalloop;
99
my @contactprincipalloop;
100
        my @fieldArray = qw(phone phonepro mobile email emailpro fax);
100
my @fieldArray = qw(phone phonepro mobile email emailpro fax);
101
        foreach my $field (@fieldArray) {
101
foreach my $field (@fieldArray) {
102
           if ( !(grep { $field eq $_ } @field_check)){
102
   if ( !(grep { $field eq $_ } @field_check)){
103
                push @contactprincipalloop,{
103
        push @contactprincipalloop,{
104
                    'currentis_' . $field => 1
104
            'currentis_' . $field => 1
105
                };
105
        };
106
            }
106
    }
107
        }
107
}
108
108
109
        $template->param('contactprincipalloop' => \@contactprincipalloop);
109
$template->param('contactprincipalloop' => \@contactprincipalloop);
110
110
111
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
111
my $attributes = ParsePatronAttributes($borrowernumber,$cgi);
112
my $conflicting_attribute = 0;
112
my $conflicting_attribute = 0;
113
- 

Return to bug 11879