From 0cf404bc9fc4be1af45bff04cffde8953910474d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 18 Aug 2017 00:14:52 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 19129 - Follow-up - Add changes to patron duplicate warning Adds logic from the previous fix to the brief patron summary shown when checking a possible patron duplicate. Bonus: Also fixes missing patron category description there. To Test: - Add 2 patrons - Add a patron with the same surname and firstname as an existing patron in order to trigger the duplicate message - Click "View existing patron" - Verify display is correct when existing patron is - an organisation - not an organisation - Verify that the patron category description shows Signed-off-by: Aleisha Amohia --- .../prog/en/modules/members/moremember-brief.tt | 28 +++++++--------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt index b95a4c0..9cf356d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt @@ -26,27 +26,17 @@
    - [% IF ( I ) %] - [% IF ( phonepro ) %]
  1. Organization phone: [% phonepro %]
  2. [% END %] - [% IF ( emailpro ) %]
  3. Organization email: [% emailpro %]
  4. [% END %] - [% ELSE %] [% IF ( phone ) %]
  5. Primary phone: [% phone %]
  6. [% END %] [% IF ( phonepro ) %]
  7. Secondary phone: [% phonepro %]
  8. [% END %] [% IF ( mobile ) %]
  9. Other phone: [% mobile %]
  10. [% END %] - [% END %] - - [% IF ( P ) %] - [% IF ( phone ) %]
  11. Primary phone: [% phone %]
  12. [% END %] - [% IF ( mobile ) %]
  13. Other phone: [% mobile %]
  14. [% END %] - [% END %] - [% IF ( fax ) %]
  15. Fax: [% fax %]
  16. [% END %] - [% UNLESS ( I ) %] - [% IF ( email ) %][% END %] - [% IF ( emailpro ) %][% END %] - [% END %] -
  17. Initials: [% initials %]
  18. -
  19. Date of birth:[% dateofbirth | $KohaDates %]
  20. -
  21. Gender:[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
  22. [% END %] + [% IF ( fax ) %]
  23. Fax: [% fax %]
  24. [% END %] + [% IF ( email ) %][% END %] + [% IF ( emailpro ) %][% END %] + [% UNLESS ( I ) %] + [% IF ( inititals ) %]
  25. Initials: [% initials %]
  26. [% END %] + [% IF ( dateofbirth ) %]
  27. Date of birth:[% dateofbirth | $KohaDates %]
  28. [% END %] + [% IF ( sex ) %]
  29. Gender:[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
  30. [% END %][% END %] + [% END %] [% IF ( isguarantee ) %] [% IF ( guaranteeloop ) %]
  31. Guarantees:
  32. @@ -67,7 +57,7 @@
    1. Card number: [% cardnumber %]
    2. Borrowernumber: [% borrowernumber %]
    3. -
    4. Category: [% description %] ([% categorycode %])
    5. +
    6. Category: [% categoryname %] ([% categorycode %])
    7. Registration date: [% dateenrolled | $KohaDates %]
    8. Expiration date: [% IF ( was_renewed ) %] -- 2.1.4