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

(-)a/installer/data/mysql/updatedatabase.pl (-6 lines)
Lines 8724-8735 if ( CheckVersion($DBversion) ) { Link Here
8724
    print "Upgrade to $DBversion done (Bug 10402: Move bookseller contacts to separate table)\n";
8724
    print "Upgrade to $DBversion done (Bug 10402: Move bookseller contacts to separate table)\n";
8725
    SetVersion($DBversion);
8725
    SetVersion($DBversion);
8726
}
8726
}
8727
$DBversion = "XXX";
8728
if ( CheckVersion($DBversion) ) {
8729
    $dbh->do("ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL;");
8730
    print "Upgrade to $DBversion done (Bug 11879: Add a new borrower field : main contact method)\n";
8731
    SetVersion($DBversion);
8732
}
8733
8727
8734
$DBversion = "3.17.00.017";
8728
$DBversion = "3.17.00.017";
8735
if ( CheckVersion($DBversion) ) {
8729
if ( CheckVersion($DBversion) ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +3 lines)
Lines 568-574 $(document).ready(function() { Link Here
568
568
569
   [% END %]
569
   [% END %]
570
    <li>
570
    <li>
571
       <label for="primary_contact_method">Main Contact Method</label>
571
       <label for="primary_contact_method">Main contact method:</label>
572
       <select id="primary_contact_method" name="primary_contact_method">
572
       <select id="primary_contact_method" name="primary_contact_method">
573
       <option value=""></option>
573
       <option value=""></option>
574
         [% FOREACH contactprincipalloo IN contactprincipalloop %]
574
         [% FOREACH contactprincipalloo IN contactprincipalloop %]
Lines 588-596 $(document).ready(function() { Link Here
588
            [% END %]
588
            [% END %]
589
            [% IF ( contactprincipalloo.currentis_mobile ) %]
589
            [% IF ( contactprincipalloo.currentis_mobile ) %]
590
               [% IF ( primary_contact_method == 'mobile' ) %]
590
               [% IF ( primary_contact_method == 'mobile' ) %]
591
                 <option value="mobile" selected="selected">Mobile phone</option>
591
                 <option value="mobile" selected="selected">Other phone</option>
592
               [% ELSE %]
592
               [% ELSE %]
593
                 <option value="mobile">Mobile phone</option>
593
                 <option value="mobile">Other phone</option>
594
               [% END %]
594
               [% END %]
595
            [% END %]
595
            [% END %]
596
            [% IF ( contactprincipalloo.currentis_email ) %]
596
            [% IF ( contactprincipalloo.currentis_email ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +14 lines)
Lines 265-271 function validate1(date) { Link Here
265
            [% END %]
265
            [% END %]
266
        </li>
266
        </li>
267
    [% END %]
267
    [% END %]
268
    <li><span class="label">Main contact method: </span>[% primary_contact_method %]</li>
268
    [% SWITCH primary_contact_method %]
269
    [% CASE 'phone' %]
270
    <li><span class="label">Main contact method: </span>Phone</li>
271
    [% CASE 'phonepro' %]
272
    <li><span class="label">Main contact method: </span>Secondary phone</li>
273
    [% CASE 'mobile' %]
274
    <li><span class="label">Main contact method: </span>Other Phone</li>
275
    [% CASE 'email' %]
276
    <li><span class="label">Main contact method: </span>Primary email</li>
277
    [% CASE 'emailpro' %]
278
    <li><span class="label">Main contact method: </span>Secondary email</li>
279
    [% CASE 'fax' %]
280
    <li><span class="label">Main contact method: </span>Fax</li>
281
    [% END %]
269
</ol>
282
</ol>
270
</div>
283
</div>
271
      <div class="action">
284
      <div class="action">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-2 / +1 lines)
Lines 544-550 Link Here
544
                                </li>
544
                                </li>
545
                            [% END %]
545
                            [% END %]
546
                            <li>
546
                            <li>
547
                               <label for="borrower_primary_contact_method">Main Contact Method</label>
547
                               <label for="borrower_primary_contact_method">Main contact method:</label>
548
                               <select id="borrower_primary_contact_method" name="borrower_primary_contact_method">
548
                               <select id="borrower_primary_contact_method" name="borrower_primary_contact_method">
549
                               <option value=""></option>
549
                               <option value=""></option>
550
                                 [% FOREACH contactprincipalloo IN contactprincipalloop %]
550
                                 [% FOREACH contactprincipalloo IN contactprincipalloop %]
551
- 

Return to bug 11879