From 1f8c225fe432533f0ca98db5ba3f9f06e355a13c Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Thu, 18 Apr 2019 08:37:38 +0000 Subject: [PATCH] Bug 21757: (folow-up) Restore patron brief detail page Test plan 1) Try to create patron with same name/datefobirth to trigger the duplicate patron check 2) Click on "View existing record" link on "Duplicate patron record?" alert message 3) You should see the patron data, but withou toolbar, menu, and so on. Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/moremember-brief.tt | 84 ++++++++++++++++++++++ members/moremember.pl | 13 +++- 2 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt 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 new file mode 100644 index 0000000000..c68fd9d63c --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt @@ -0,0 +1,84 @@ +[% USE Koha %] +[% USE KohaDates %] +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] +Koha › Check duplicate patron +[% INCLUDE 'doc-head-close.inc' %] + + + +
+
+
+

[% INCLUDE 'patron-title.inc' %]

+
+
+
+
+
+ + [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %] +
+
    + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% ELSE %] + [% INCLUDE 'member-display-address-style-us.inc' %] + [% END %] +
+
+
+
    + [% IF ( patron.phone ) %]
  1. Primary phone: [% patron.phone | html %]
  2. [% END %] + [% IF ( patron.phonepro ) %]
  3. Secondary phone: [% patron.phonepro | html %]
  4. [% END %] + [% IF ( patron.mobile ) %]
  5. Other phone: [% patron.mobile | html %]
  6. [% END %] + [% IF ( patron.fax ) %]
  7. Fax: [% patron.fax | html %]
  8. [% END %] + [% IF ( patron.email ) %][% END %] + [% IF ( patron.emailpro ) %][% END %] + [% UNLESS ( I ) %] + [% IF ( patron.initials ) %]
  9. Initials: [% patron.initials | html %]
  10. [% END %] + [% IF ( patron.dateofbirth ) %]
  11. Date of birth:[% patron.dateofbirth | $KohaDates %]
  12. [% END %] + [% IF ( patron.sex ) %]
  13. Gender:[% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]
  14. [% END %] + [% END %] + [% IF ( guarantees ) %] +
  15. Guarantees:
  16. + [% END %] + [% IF ( guarantor ) %] +
  17. Guarantor:[% guarantor.surname | html %], [% guarantor.firstname | html %]
  18. + [% END %] +
+
+
+
+ +
+
+

Library use

+
+
    +
  1. Card number: [% patron.cardnumber | html %]
  2. +
  3. Borrowernumber: [% patron.borrowernumber | html %]
  4. +
  5. Category: [% patron.category.description | html %] ([% patron.category.categorycode | html %])
  6. +
  7. Registration date: [% patron.dateenrolled | $KohaDates %]
  8. +
  9. Expiration date: + [% IF ( was_renewed ) %] + [% patron.dateexpiry | $KohaDates %] + [% ELSE %] + [% patron.dateexpiry | $KohaDates %] + [% END %] +
  10. +
  11. Library: [% patron.library.branchname | html %]
  12. + [% IF ( patron.sort1 ) %]
  13. Sort field 1:[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]
  14. [% END %] + [% IF ( patron.sort2 ) %]
  15. Sort field 2:[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]
  16. [% END %] +
+
+
+
+
+
+
+
+
+
+ +[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] diff --git a/members/moremember.pl b/members/moremember.pl index d68e6ef146..a874c2d1c9 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -53,9 +53,20 @@ BEGIN { my $input = CGI->new; $debug or $debug = $input->param('debug') || 0; + +my $print = $input->param('print'); + +my $template_name; + +if (defined $print and $print eq "brief") { + $template_name = "members/moremember-brief.tt"; +} else { + $template_name = "members/moremember.tt"; +} + my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "members/moremember.tt", + template_name => $template_name, query => $input, type => "intranet", authnotrequired => 0, -- 2.11.0