@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 6 +++++- members/moremember.pl | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -246,7 +246,11 @@ function validate1(date) { [% ELSIF guarantor %]
  • Guarantor: - [% guarantor.firstname %] [% guarantor.surname %] + [% IF guarantor.borrowernumber %] + [% guarantor.firstname %] [% guarantor.surname %] + [% ELSE %] + [% guarantor.firstname %] [% guarantor.surname %] + [% END %]
  • [% END %] --- a/members/moremember.pl +++ a/members/moremember.pl @@ -169,6 +169,11 @@ if ( my $guarantor = $patron->guarantor ) { $template->param( guarantor => $guarantor ); push @relatives, $guarantor->borrowernumber; push @relatives, $_->borrowernumber for $patron->siblings; +} elsif ( $patron->contactname || $patron->contactfirstname ) { + $template->param( guarantor => { + firstname => $patron->contactfirstname, + surname => $patron->contactname, + }); } else { my @guarantees = $patron->guarantees; $template->param( guarantees => \@guarantees ); --