b8989510ec
This patch removes double patron card numbers from patron search results. To test: Search patrons See card number 12345 in first column and in second column like Testman, John (12345) Apply patch Patron card number no longer dispays in second colum Further testing: Search for other places in intranet where patron-title.inc is used (git grep 'patron-title.inc') The card number still should display at the other places. Signed-off-by: Chris <chris@bigballofwax.co.nz> http://bugs.koha-community.org/show_bug.cgi?id=8096 Signed-off-by: Chris <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
[%- IF ( borrower.borrowernumber ) %]
|
|
[%- IF borrower.category_type == 'I' %]
|
|
[%- borrower.surname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[%- borrower.surname %], [% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %]
|
|
[%- END -%]
|
|
[%- END -%]
|
|
[% IF ( borrower.cardnumber ) %]
|
|
([% borrower.cardnumber %])
|
|
[% END %]
|
|
[%- ELSIF ( borrowernumber ) %]
|
|
[%- IF category_type == 'I' %]
|
|
[%- surname %] [% IF othernames %] ([% othernames %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[%- surname %], [% firstname %] [% IF othernames %] ([% othernames %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- firstname %] [% IF othernames %] ([% othernames %]) [% END %] [% surname %]
|
|
[%- END %]
|
|
[%- END -%]
|
|
[% IF ( cardnumber ) %]
|
|
([% cardnumber %])
|
|
[% END %]
|
|
[%- END -%]
|