[% IF Koha.Preference( 'AddressFormat' ) %]
@@ -61,9 +61,9 @@
Library use
- - Card number: [% cardnumber %]
- - Borrowernumber: [% borrowernumber %]
- - Category: [% categoryname %] ([% categorycode %])
+ - Card number: [% patron.cardnumber %]
+ - Borrowernumber: [% patron.borrowernumber %]
+ - Category: [% patron.category.description %] ([% patron.categorycode %])
- Registration date: [% dateenrolled | $KohaDates %]
- Expiration date:
[% IF ( was_renewed ) %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -166,38 +166,28 @@
[% ELSE %]
[% guarantor.firstname | html %] [% guarantor.surname | html %]
[% END %]
-
-
- [% ELSIF guarantor %]
- -
- Guarantor:
- [% IF guarantor.borrowernumber %]
- [% guarantor.firstname | html %] [% guarantor.surname | html %]
- [% ELSE %]
- [% guarantor.firstname | html %] [% guarantor.surname | html %]
- [% END %]
-
- [% END %]
- [% IF ( primary_contact_method ) %]
- -
- Main contact method:
- [% SWITCH primary_contact_method %]
- [% CASE 'phone' %]
- Primary phone
- [% CASE 'phonepro' %]
- Secondary phone
- [% CASE 'mobile' %]
- Other phone
- [% CASE 'email' %]
- Primary email
- [% CASE 'emailpro' %]
- Secondary email
- [% CASE 'fax' %]
- Fax
- [% END %]
-
- [% END %]
-
+
+ [% END %]
+ [% IF ( primary_contact_method ) %]
+
-
+ Main contact method:
+ [% SWITCH primary_contact_method %]
+ [% CASE 'phone' %]
+ Primary phone
+ [% CASE 'phonepro' %]
+ Secondary phone
+ [% CASE 'mobile' %]
+ Other phone
+ [% CASE 'email' %]
+ Primary email
+ [% CASE 'emailpro' %]
+ Secondary email
+ [% CASE 'fax' %]
+ Fax
+ [% END %]
+
+ [% END %]
+
[% IF ( guarantor.borrowernumber ) %]
--- a/members/moremember.pl
+++ a/members/moremember.pl
@@ -339,9 +339,6 @@ $template->param(
patron => $patron,
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,
todaysdate => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
--- a/opac/opac-memberentry.pl
+++ a/opac/opac-memberentry.pl
@@ -94,18 +94,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;
--