@@ -, +, @@ --- .../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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt +++ a/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 %] --- a/members/moremember.pl +++ a/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, --