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

(-)a/Koha/Schema/Result/Borrower.pm (-1 / +3 lines)
Lines 401-407 __PACKAGE__->table("borrowers"); Link Here
401
  default_value: 1
401
  default_value: 1
402
  is_nullable: 0
402
  is_nullable: 0
403
403
404
=head2 privacy_guarantor_checkouts
404
=head2 primary_contact_method
405
405
406
  data_type: 'tinyint'
406
  data_type: 'tinyint'
407
  default_value: 0
407
  default_value: 0
Lines 616-621 __PACKAGE__->add_columns( Link Here
616
    datetime_undef_if_invalid => 1,
616
    datetime_undef_if_invalid => 1,
617
    is_nullable => 1,
617
    is_nullable => 1,
618
  },
618
  },
619
  "primary_contact_method",
620
  { data_type => "varchar", is_nullable => 1, size => 45 },
619
);
621
);
620
622
621
=head1 PRIMARY KEY
623
=head1 PRIMARY KEY
(-)a/Koha/Schema/Result/BorrowerModification.pm (+9 lines)
Lines 406-411 __PACKAGE__->table("borrower_modifications"); Link Here
406
406
407
=cut
407
=cut
408
408
409
=head2 primary_contact_method
410
411
  data_type: 'tinyint'
412
  default_value: 0
413
  is_nullable: 0
414
415
=cut
409
__PACKAGE__->add_columns(
416
__PACKAGE__->add_columns(
410
  "timestamp",
417
  "timestamp",
411
  {
418
  {
Lines 566-571 __PACKAGE__->add_columns( Link Here
566
  { data_type => "varchar", is_nullable => 1, size => 50 },
573
  { data_type => "varchar", is_nullable => 1, size => 50 },
567
  "privacy",
574
  "privacy",
568
  { data_type => "integer", is_nullable => 1 },
575
  { data_type => "integer", is_nullable => 1 },
576
  "primary_contact_method",
577
  { data_type => "varchar", is_nullable => 1, size => 45 },
569
);
578
);
570
579
571
=head1 PRIMARY KEY
580
=head1 PRIMARY KEY
(-)a/Koha/Schema/Result/Deletedborrower.pm (-1 / +3 lines)
Lines 398-404 __PACKAGE__->table("deletedborrowers"); Link Here
398
  default_value: 1
398
  default_value: 1
399
  is_nullable: 0
399
  is_nullable: 0
400
400
401
=head2 privacy_guarantor_checkouts
401
=head2 primary_contact_method
402
402
403
  data_type: 'tinyint'
403
  data_type: 'tinyint'
404
  default_value: 0
404
  default_value: 0
Lines 601-606 __PACKAGE__->add_columns( Link Here
601
    datetime_undef_if_invalid => 1,
601
    datetime_undef_if_invalid => 1,
602
    is_nullable => 1,
602
    is_nullable => 1,
603
  },
603
  },
604
  "primary_contact_method",
605
  { data_type => "varchar", is_nullable => 1, size => 45 },
604
);
606
);
605
607
606
608
(-)a/installer/data/mysql/atomicupdate/borrowers_primary_contact_method.sql (+3 lines)
Line 0 Link Here
1
ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `privacy_guarantor_checkouts`;
2
ALTER TABLE `deletedborrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `privacy_guarantor_checkouts`;
3
ALTER TABLE `borrower_modifications` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `privacy`;
(-)a/installer/data/mysql/kohastructure.sql (+91 lines)
Lines 194-199 CREATE TABLE `biblioitems` ( -- information related to bibliographic records in Link Here
194
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
194
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
195
195
196
--
196
--
197
-- Table structure for table `borrowers`
198
--
199
200
DROP TABLE IF EXISTS `borrowers`;
201
CREATE TABLE `borrowers` ( -- this table includes information about your patrons/borrowers/members
202
  `borrowernumber` int(11) NOT NULL auto_increment, -- primary key, Koha assigned ID number for patrons/borrowers
203
  `cardnumber` varchar(16) default NULL, -- unique key, library assigned ID number for patrons/borrowers
204
  `surname` mediumtext NOT NULL, -- patron/borrower's last name (surname)
205
  `firstname` text, -- patron/borrower's first name
206
  `title` mediumtext, -- patron/borrower's title, for example: Mr. or Mrs.
207
  `othernames` mediumtext, -- any other names associated with the patron/borrower
208
  `initials` text, -- initials for your patron/borrower
209
  `streetnumber` varchar(10) default NULL, -- the house number for your patron/borrower's primary address
210
  `streettype` varchar(50) default NULL, -- the street type (Rd., Blvd, etc) for your patron/borrower's primary address
211
  `address` mediumtext NOT NULL, -- the first address line for your patron/borrower's primary address
212
  `address2` text, -- the second address line for your patron/borrower's primary address
213
  `city` mediumtext NOT NULL, -- the city or town for your patron/borrower's primary address
214
  `state` text default NULL, -- the state or province for your patron/borrower's primary address
215
  `zipcode` varchar(25) default NULL, -- the zip or postal code for your patron/borrower's primary address
216
  `country` text, -- the country for your patron/borrower's primary address
217
  `email` mediumtext, -- the primary email address for your patron/borrower's primary address
218
  `phone` text, -- the primary phone number for your patron/borrower's primary address
219
  `mobile` varchar(50) default NULL, -- the other phone number for your patron/borrower's primary address
220
  `fax` mediumtext, -- the fax number for your patron/borrower's primary address
221
  `emailpro` text, -- the secondary email addres for your patron/borrower's primary address
222
  `phonepro` text, -- the secondary phone number for your patron/borrower's primary address
223
  `B_streetnumber` varchar(10) default NULL, -- the house number for your patron/borrower's alternate address
224
  `B_streettype` varchar(50) default NULL, -- the street type (Rd., Blvd, etc) for your patron/borrower's alternate address
225
  `B_address` varchar(100) default NULL, -- the first address line for your patron/borrower's alternate address
226
  `B_address2` text default NULL, -- the second address line for your patron/borrower's alternate address
227
  `B_city` mediumtext, -- the city or town for your patron/borrower's alternate address
228
  `B_state` text default NULL, -- the state for your patron/borrower's alternate address
229
  `B_zipcode` varchar(25) default NULL, -- the zip or postal code for your patron/borrower's alternate address
230
  `B_country` text, -- the country for your patron/borrower's alternate address
231
  `B_email` text, -- the patron/borrower's alternate email address
232
  `B_phone` mediumtext, -- the patron/borrower's alternate phone number
233
  `dateofbirth` date default NULL, -- the patron/borrower's date of birth (YYYY-MM-DD)
234
  `branchcode` varchar(10) NOT NULL default '', -- foreign key from the branches table, includes the code of the patron/borrower's home branch
235
  `categorycode` varchar(10) NOT NULL default '', -- foreign key from the categories table, includes the code of the patron category
236
  `dateenrolled` date default NULL, -- date the patron was added to Koha (YYYY-MM-DD)
237
  `dateexpiry` date default NULL, -- date the patron/borrower's card is set to expire (YYYY-MM-DD)
238
  `gonenoaddress` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
239
  `lost` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
240
  `debarred` date default NULL, -- until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYY-MM-DD)
241
  `debarredcomment` VARCHAR(255) DEFAULT NULL, -- comment on the stop of the patron
242
  `contactname` mediumtext, -- used for children and profesionals to include surname or last name of guarentor or organization name
243
  `contactfirstname` text, -- used for children to include first name of guarentor
244
  `contacttitle` text, -- used for children to include title (Mr., Mrs., etc) of guarentor
245
  `guarantorid` int(11) default NULL, -- borrowernumber used for children or professionals to link them to guarentors or organizations
246
  `borrowernotes` mediumtext, -- a note on the patron/borrower's account that is only visible in the staff client
247
  `relationship` varchar(100) default NULL, -- used for children to include the relationship to their guarentor
248
  `sex` varchar(1) default NULL, -- patron/borrower's gender
249
  `password` varchar(60) default NULL, -- patron/borrower's encrypted password
250
  `flags` int(11) default NULL, -- will include a number associated with the staff member's permissions
251
  `userid` varchar(75) default NULL, -- patron/borrower's opac and/or staff client log in
252
  `opacnote` mediumtext, -- a note on the patron/borrower's account that is visible in the OPAC and staff client
253
  `contactnote` varchar(255) default NULL, -- a note related to the patron/borrower's alternate address
254
  `sort1` varchar(80) default NULL, -- a field that can be used for any information unique to the library
255
  `sort2` varchar(80) default NULL, -- a field that can be used for any information unique to the library
256
  `altcontactfirstname` varchar(255) default NULL, -- first name of alternate contact for the patron/borrower
257
  `altcontactsurname` varchar(255) default NULL, -- surname or last name of the alternate contact for the patron/borrower
258
  `altcontactaddress1` varchar(255) default NULL, -- the first address line for the alternate contact for the patron/borrower
259
  `altcontactaddress2` varchar(255) default NULL, -- the second address line for the alternate contact for the patron/borrower
260
  `altcontactaddress3` varchar(255) default NULL, -- the city for the alternate contact for the patron/borrower
261
  `altcontactstate` text default NULL, -- the state for the alternate contact for the patron/borrower
262
  `altcontactzipcode` varchar(50) default NULL, -- the zipcode for the alternate contact for the patron/borrower
263
  `altcontactcountry` text default NULL, -- the country for the alternate contact for the patron/borrower
264
  `altcontactphone` varchar(50) default NULL, -- the phone number for the alternate contact for the patron/borrower
265
  `smsalertnumber` varchar(50) default NULL, -- the mobile phone number where the patron/borrower would like to receive notices (if SNS turned on)
266
  `sms_provider_id` int(11) DEFAULT NULL, -- the provider of the mobile phone number defined in smsalertnumber
267
  `privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their reading history
268
  `privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts
269
  `primary_contact_method` varchar(45) DEFAULT NULL, --  useful for reporting purposes
270
  UNIQUE KEY `cardnumber` (`cardnumber`),
271
  PRIMARY KEY `borrowernumber` (`borrowernumber`),
272
  KEY `categorycode` (`categorycode`),
273
  KEY `branchcode` (`branchcode`),
274
  UNIQUE KEY `userid` (`userid`),
275
  KEY `guarantorid` (`guarantorid`),
276
  KEY `surname_idx` (`surname`(255)),
277
  KEY `firstname_idx` (`firstname`(255)),
278
  KEY `othernames_idx` (`othernames`(255)),
279
  KEY `sms_provider_id` (`sms_provider_id`),
280
  CONSTRAINT `borrowers_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`),
281
  CONSTRAINT `borrowers_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`),
282
  CONSTRAINT `borrowers_ibfk_3` FOREIGN KEY (`sms_provider_id`) REFERENCES `sms_providers` (`id`) ON UPDATE CASCADE ON DELETE SET NULL
283
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
284
285
--
197
-- Table structure for table `borrower_attribute_types`
286
-- Table structure for table `borrower_attribute_types`
198
--
287
--
199
288
Lines 622-627 CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower Link Here
622
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
711
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
623
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- time of last change could be useful for synchronization with external systems (among others)
712
  `updated_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- time of last change could be useful for synchronization with external systems (among others)
624
  `lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface)
713
  `lastseen` datetime default NULL, -- last time a patron has been seed (connected at the OPAC or staff interface)
714
  `primary_contact_method` varchar(45) DEFAULT NULL, --  useful for reporting purposes
625
  KEY borrowernumber (borrowernumber),
715
  KEY borrowernumber (borrowernumber),
626
  KEY `cardnumber` (`cardnumber`),
716
  KEY `cardnumber` (`cardnumber`),
627
  KEY `sms_provider_id` (`sms_provider_id`)
717
  KEY `sms_provider_id` (`sms_provider_id`)
Lines 3397-3402 CREATE TABLE IF NOT EXISTS `borrower_modifications` ( Link Here
3397
  `altcontactphone` varchar(50) DEFAULT NULL,
3487
  `altcontactphone` varchar(50) DEFAULT NULL,
3398
  `smsalertnumber` varchar(50) DEFAULT NULL,
3488
  `smsalertnumber` varchar(50) DEFAULT NULL,
3399
  `privacy` int(11) DEFAULT NULL,
3489
  `privacy` int(11) DEFAULT NULL,
3490
  `primary_contact_method` varchar(45) DEFAULT NULL, --  useful for reporting purposes
3400
  PRIMARY KEY (`verification_token`,`borrowernumber`),
3491
  PRIMARY KEY (`verification_token`,`borrowernumber`),
3401
  KEY `verification_token` (`verification_token`),
3492
  KEY `verification_token` (`verification_token`),
3402
  KEY `borrowernumber` (`borrowernumber`)
3493
  KEY `borrowernumber` (`borrowernumber`)
(-)a/installer/data/mysql/updatedatabase.pl (+1 lines)
Lines 13104-13109 foreach my $file ( sort readdir $dirh ) { Link Here
13104
    }
13104
    }
13105
}
13105
}
13106
13106
13107
13107
=head1 FUNCTIONS
13108
=head1 FUNCTIONS
13108
13109
13109
=head2 TableExists($table)
13110
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-4 / +57 lines)
Lines 493-499 $(document).ready(function() { Link Here
493
493
494
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
494
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
495
  <fieldset class="rows" id="memberentry_contact">
495
  <fieldset class="rows" id="memberentry_contact">
496
    <legend id="contact_lgd">Contact</legend><ol>
496
    <legend id="contact_lgd">Contact</legend>
497
<ol>
497
        [% UNLESS nophone %]
498
        [% UNLESS nophone %]
498
      <li>
499
      <li>
499
      [% IF ( mandatoryphone ) %]
500
      [% IF ( mandatoryphone ) %]
Lines 556-562 $(document).ready(function() { Link Here
556
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
557
	  [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
557
    </li>
558
    </li>
558
        [% END %]
559
        [% END %]
559
        [% UNLESS nofax %]
560
    [% UNLESS nofax %]
560
    <li>
561
    <li>
561
      [% IF ( mandatoryfax ) %]
562
      [% IF ( mandatoryfax ) %]
562
      <label for="fax" class="required">
563
      <label for="fax" class="required">
Lines 567-574 $(document).ready(function() { Link Here
567
        <input type="text" id="fax" name="fax" value="[% fax %]" />
568
        <input type="text" id="fax" name="fax" value="[% fax %]" />
568
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
569
	  [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
569
    </li>
570
    </li>
570
        [% END %]
571
571
	</ol>
572
   [% END %]
573
    <li>
574
       <label for="primary_contact_method">Main contact method:</label>
575
       <select id="primary_contact_method" name="primary_contact_method">
576
       <option value=""></option>
577
         [% FOREACH contactprincipalloo IN contactprincipalloop %]
578
            [% IF ( contactprincipalloo.currentis_phone ) %]
579
               [% IF ( primary_contact_method == 'phone' ) %]
580
                 <option value="phone" selected="selected">Primary phone</option>
581
               [% ELSE %]
582
                 <option value="phone">Primary phone</option>
583
               [% END %]
584
            [% END %]
585
            [% IF ( contactprincipalloo.currentis_phonepro ) %]
586
               [% IF ( primary_contact_method == 'phonepro' ) %]
587
                 <option value="phonepro" selected="selected">Secondary phone</option>
588
               [% ELSE %]
589
                 <option value="phonepro">Secondary phone</option>
590
               [% END %]
591
            [% END %]
592
            [% IF ( contactprincipalloo.currentis_mobile ) %]
593
               [% IF ( primary_contact_method == 'mobile' ) %]
594
                 <option value="mobile" selected="selected">Other phone</option>
595
               [% ELSE %]
596
                 <option value="mobile">Other phone</option>
597
               [% END %]
598
            [% END %]
599
            [% IF ( contactprincipalloo.currentis_email ) %]
600
               [% IF ( primary_contact_method == 'email' ) %]
601
                 <option value="email" selected="selected">Primary email</option>
602
               [% ELSE %]
603
                 <option value="email">Primary email</option>
604
               [% END %]
605
            [% END %]
606
            [% IF ( contactprincipalloo.currentis_emailpro ) %]
607
               [% IF ( primary_contact_method == 'emailpro' ) %]
608
                 <option value="emailpro" selected="selected">Secondary email</option>
609
               [% ELSE %]
610
                 <option value="emailpro">Secondary email</option>
611
               [% END %]
612
            [% END %]
613
            [% IF ( contactprincipalloo.currentis_fax ) %]
614
               [% IF ( primary_contact_method == 'fax' ) %]
615
                 <option value="fax" selected="selected">Fax</option>
616
               [% ELSE %]
617
                 <option value="fax">Fax</option>
618
               [% END %]
619
            [% END %]
620
         [% END %]
621
       </select>
622
    </li>
623
    </ol>
624
572
  </fieldset>
625
  </fieldset>
573
[%END # hide fieldset %]
626
[%END # hide fieldset %]
574
627
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (+14 lines)
Lines 269-274 function validate1(date) { Link Here
269
            [% END %]
269
            [% END %]
270
        </li>
270
        </li>
271
    [% END %]
271
    [% END %]
272
    [% SWITCH primary_contact_method %]
273
    [% CASE 'phone' %]
274
    <li><span class="label">Main contact method: </span>Phone</li>
275
    [% CASE 'phonepro' %]
276
    <li><span class="label">Main contact method: </span>Secondary phone</li>
277
    [% CASE 'mobile' %]
278
    <li><span class="label">Main contact method: </span>Other Phone</li>
279
    [% CASE 'email' %]
280
    <li><span class="label">Main contact method: </span>Primary email</li>
281
    [% CASE 'emailpro' %]
282
    <li><span class="label">Main contact method: </span>Secondary email</li>
283
    [% CASE 'fax' %]
284
    <li><span class="label">Main contact method: </span>Fax</li>
285
    [% END %]
272
</ol>
286
</ol>
273
</div>
287
</div>
274
      <div class="action">
288
      <div class="action">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (+50 lines)
Lines 566-571 Link Here
566
                                    [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
566
                                    [% IF mandatory.defined('fax') %]<span class="required">Required</span>[% END %]
567
                                </li>
567
                                </li>
568
                            [% END %]
568
                            [% END %]
569
                            <li>
570
                               <label for="borrower_primary_contact_method">Main contact method:</label>
571
                               <select id="borrower_primary_contact_method" name="borrower_primary_contact_method">
572
                               <option value=""></option>
573
                                 [% FOREACH contactprincipalloo IN contactprincipalloop %]
574
                                    [% IF ( contactprincipalloo.currentis_phone ) %]
575
                                       [% IF ( borrower.primary_contact_method == 'phone' ) %]
576
                                         <option value="phone" selected="selected">Primary phone</option>
577
                                       [% ELSE %]
578
                                         <option value="phone">Primary phone</option>
579
                                       [% END %]
580
                                    [% END %]
581
                                    [% IF ( contactprincipalloo.currentis_phonepro ) %]
582
                                       [% IF ( borrower.primary_contact_method == 'phonepro' ) %]
583
                                         <option value="phonepro" selected="selected">Secondary phone</option>
584
                                       [% ELSE %]
585
                                         <option value="phonepro">Secondary phone</option>
586
                                       [% END %]
587
                                    [% END %]
588
                                    [% IF ( contactprincipalloo.currentis_mobile ) %]
589
                                       [% IF ( borrower.primary_contact_method == 'mobile' ) %]
590
                                         <option value="mobile" selected="selected">Other phone</option>
591
                                       [% ELSE %]
592
                                         <option value="mobile">Other phone</option>
593
                                       [% END %]
594
                                    [% END %]
595
                                    [% IF ( contactprincipalloo.currentis_email ) %]
596
                                       [% IF ( borrower.primary_contact_method == 'email' ) %]
597
                                         <option value="email" selected="selected">Primary email</option>
598
                                       [% ELSE %]
599
                                         <option value="email">Primary email</option>
600
                                       [% END %]
601
                                    [% END %]
602
                                    [% IF ( contactprincipalloo.currentis_emailpro ) %]
603
                                       [% IF ( borrower.primary_contact_method == 'emailpro' ) %]
604
                                         <option value="emailpro" selected="selected">Secondary email</option>
605
                                       [% ELSE %]
606
                                         <option value="emailpro">Secondary email</option>
607
                                       [% END %]
608
                                    [% END %]
609
                                    [% IF ( contactprincipalloo.currentis_fax ) %]
610
                                       [% IF ( borrower.primary_contact_method == 'fax' ) %]
611
                                         <option value="fax" selected="selected">Fax</option>
612
                                       [% ELSE %]
613
                                         <option value="fax">Fax</option>
614
                                       [% END %]
615
                                    [% END %]
616
                                 [% END %]
617
                               </select>
618
                            </li>
569
                        </ol>
619
                        </ol>
570
                    </fieldset>
620
                    </fieldset>
571
                [% END %]
621
                [% END %]
(-)a/members/memberentry.pl (-1 / +10 lines)
Lines 550-555 $template->param('typeloop' => \@typeloop, Link Here
550
        no_categories => $no_categories);
550
        no_categories => $no_categories);
551
if($no_categories){ $no_add = 1; }
551
if($no_categories){ $no_add = 1; }
552
552
553
my @contactprincipalloop;
554
my @fieldArray = qw(phone phonepro mobile email emailpro fax);
555
foreach my $field (@fieldArray) {
556
   if ( !(grep { $field eq $_ } @field_check)){
557
        push @contactprincipalloop,{
558
            'currentis_' . $field => 1
559
        };
560
    }
561
}
562
$template->param('contactprincipalloop' => \@contactprincipalloop);
553
563
554
my $cities = Koha::Cities->search( {}, { order_by => 'city_name' } );
564
my $cities = Koha::Cities->search( {}, { order_by => 'city_name' } );
555
my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
565
my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' );
Lines 557-563 $template->param( Link Here
557
    roadtypes => $roadtypes,
567
    roadtypes => $roadtypes,
558
    cities    => $cities,
568
    cities    => $cities,
559
);
569
);
560
561
my $default_borrowertitle = '';
570
my $default_borrowertitle = '';
562
unless ( $op eq 'duplicate' ) { $default_borrowertitle=$data{'title'} }
571
unless ( $op eq 'duplicate' ) { $default_borrowertitle=$data{'title'} }
563
572
(-)a/members/moremember.pl (-1 / +3 lines)
Lines 326-332 $template->param( Link Here
326
    borrowernumber  => $borrowernumber,
326
    borrowernumber  => $borrowernumber,
327
    othernames      => $data->{'othernames'},
327
    othernames      => $data->{'othernames'},
328
    categoryname    => $data->{'description'},
328
    categoryname    => $data->{'description'},
329
    was_renewed     => scalar $input->param('was_renewed') ? 1 : 0,
329
    primary_contact_method  => $data->{'primary_contact_method'},
330
    was_renewed     => $input->param('was_renewed') ? 1 : 0,
331
    branch          => $branch,
330
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
332
    todaysdate      => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
331
    totalprice      => sprintf("%.2f", $totalprice),
333
    totalprice      => sprintf("%.2f", $totalprice),
332
    totaldue        => sprintf("%.2f", $total),
334
    totaldue        => sprintf("%.2f", $total),
(-)a/opac/opac-memberentry.pl (-1 / +13 lines)
Lines 85-90 $template->param( Link Here
85
    libraries         => \@libraries,
85
    libraries         => \@libraries,
86
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
86
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
87
);
87
);
88
my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField");
89
        my @field_check=split(/\|/,$check_BorrowerMandatoryField);
90
        my @contactprincipalloop;
91
        my @fieldArray = qw(phone phonepro mobile email emailpro fax);
92
        foreach my $field (@fieldArray) {
93
           if ( !(grep { $field eq $_ } @field_check)){
94
                push @contactprincipalloop,{
95
                    'currentis_' . $field => 1
96
                };
97
            }
98
        }
99
100
        $template->param('contactprincipalloop' => \@contactprincipalloop);
88
101
89
if ( $action eq 'create' ) {
102
if ( $action eq 'create' ) {
90
103
91
- 

Return to bug 11879