@@ -, +, @@ --- .../borrowers_primary_contact_method.sql | 2 +- .../prog/en/modules/members/memberentrygen.tt | 11 ++++++++++ .../en/modules/members/moremember-brief.tt | 2 +- members/moremember.pl | 3 --- opac/opac-memberentry.pl | 22 +++++++++---------- 5 files changed, 24 insertions(+), 16 deletions(-) --- a/installer/data/mysql/atomicupdate/borrowers_primary_contact_method.sql +++ a/installer/data/mysql/atomicupdate/borrowers_primary_contact_method.sql @@ -1,3 +1,3 @@ -ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `lastseen`; +ALTER TABLE `borrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `overdrive_auth_token`; ALTER TABLE `deletedborrowers` ADD COLUMN `primary_contact_method` VARCHAR(45) NULL DEFAULT NULL AFTER `overdrive_auth_token`; 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 +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -577,6 +577,17 @@ [% IF ( mandatoryemailpro ) %]Required[% END %] [% END %] + [% UNLESS nofax %] +
  • + [% IF ( mandatoryfax ) %] +
  • [% UNLESS nofax %]
  • --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt @@ -18,7 +18,7 @@
    - [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %] + [% UNLESS ( I ) %][% IF ( patron.othernames ) %]“[% patron.othernames %]”[% END %]
      [% IF Koha.Preference( 'AddressFormat' ) %] --- a/members/moremember.pl +++ a/members/moremember.pl @@ -204,9 +204,6 @@ $template->param( fines => $patron->account->balance, translated_language => $translated_language, detailview => 1, - borrowernumber => $borrowernumber, - othernames => $data->{'othernames'}, - categoryname => $patron->category->description, primary_contact_method => $data->{'primary_contact_method'}, was_renewed => scalar $input->param('was_renewed') ? 1 : 0, $category_type => 1, # [% IF ( I ) %] = institutional/organisation --- a/opac/opac-memberentry.pl +++ a/opac/opac-memberentry.pl @@ -95,18 +95,18 @@ $template->param( OPACPatronDetails => C4::Context->preference('OPACPatronDetails'), ); my $check_BorrowerMandatoryField=C4::Context->preference("BorrowerMandatoryField"); - my @field_check=split(/\|/,$check_BorrowerMandatoryField); - my @contactprincipalloop; - my @fieldArray = qw(phone phonepro mobile email emailpro fax); - foreach my $field (@fieldArray) { - if ( !(grep { $field eq $_ } @field_check)){ - push @contactprincipalloop,{ - 'currentis_' . $field => 1 - }; - } - } +my @field_check=split(/\|/,$check_BorrowerMandatoryField); +my @contactprincipalloop; +my @fieldArray = qw(phone phonepro mobile email emailpro fax); +foreach my $field (@fieldArray) { + if ( !(grep { $field eq $_ } @field_check)){ + push @contactprincipalloop,{ + 'currentis_' . $field => 1 + }; + } +} - $template->param('contactprincipalloop' => \@contactprincipalloop); +$template->param('contactprincipalloop' => \@contactprincipalloop); my $attributes = ParsePatronAttributes($borrowernumber,$cgi); my $conflicting_attribute = 0; --