View | Details | Raw Unified | Return to bug 21757
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (+84 lines)
Line 0 Link Here
1
[% USE Koha %]
2
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Check duplicate patron</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
9
<body id="pat_moremember-brief" class="pat">
10
    <div class="container-fluid">
11
        <div class="row">
12
            <div class="col-xs-12">
13
                <h3>[% INCLUDE 'patron-title.inc' %]</h3>
14
            </div>
15
        </div>
16
        <div class="row">
17
            <div class="col-xs-6">
18
                <div id="patron-information">
19
20
        [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
21
        <div class = "address">
22
            <ul>
23
                [% IF Koha.Preference( 'AddressFormat' ) %]
24
                    [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
25
                [% ELSE %]
26
                    [% INCLUDE 'member-display-address-style-us.inc' %]
27
                [% END %]
28
            </ul>
29
        </div>
30
    <div class="rows">
31
        <ol>
32
            [% IF ( patron.phone ) %]<li><span class="label">Primary phone: </span>[% patron.phone | html %]</li>[% END %]
33
            [% IF ( patron.phonepro ) %]<li><span class="label">Secondary phone: </span>[% patron.phonepro | html %]</li>[% END %]
34
            [% IF ( patron.mobile ) %]<li><span class="label">Other phone: </span>[% patron.mobile | html %]</li>[% END %]
35
            [% IF ( patron.fax ) %]<li><span class="label">Fax: </span>[% patron.fax | html %]</li>[% END %]
36
            [% IF ( patron.email ) %]<li class="email"><span class="label">Primary email:</span><a href="mailto:[% email | uri %]">[% patron.email | html %]</a></li>[% END %]
37
            [% IF ( patron.emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a href="mailto:[% emailpro | uri %]">[% patron.emailpro | html %]</a></li>[% END %]
38
            [% UNLESS ( I ) %]
39
                [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %]
40
                [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %]</li>[% END %]
41
                [% IF ( patron.sex ) %]<li><span class="label">Gender:</span>[% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex | html %][% END %]</li>[% END %]
42
            [% END %]
43
            [% IF ( guarantees ) %]
44
                <li><span class="label">Guarantees:</span><ul>[% FOREACH guarantee IN guarantees %]<li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber | uri %]">[% INCLUDE 'patron-title.inc' patron=guarantee %]</a></li>[% END %]</ul></li>
45
            [% END %]
46
            [% IF ( guarantor ) %]
47
                <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]">[% guarantor.surname | html %], [% guarantor.firstname | html %]</a></li>
48
            [% END %]
49
        </ol>
50
    </div>
51
</div>
52
</div>
53
54
    <div class="col-xs-6">
55
    <div id="patron-library-details">
56
    <h3>Library use</h3>
57
    <div class="rows">
58
        <ol>
59
            <li><span class="label">Card number: </span>[% patron.cardnumber | html %]</li>
60
            <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber | html %]</li>
61
            <li><span class="label">Category: </span>[% patron.category.description | html %] ([% patron.category.categorycode | html %])</li>
62
            <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
63
            <li><span class="label">Expiration date: </span>
64
            [% IF ( was_renewed ) %]
65
                <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
66
            [% ELSE %]
67
                [% patron.dateexpiry | $KohaDates %]
68
            [% END %]
69
            </li>
70
            <li><span class="label">Library: </span>[% patron.library.branchname | html %]</li>
71
            [% IF ( patron.sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) | html %]</li>[% END %]
72
            [% IF ( patron.sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) | html %]</li>[% END %]
73
        </ol>
74
    </div>
75
    </div>
76
    </div>
77
</div>
78
<div class="row">
79
    <div class="col-xs-12">
80
        <fieldset class="action"><input type="button" class="close" value="Close window" /></fieldset>
81
    </div>
82
</div>
83
84
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/members/moremember.pl (-2 / +12 lines)
Lines 53-61 BEGIN { Link Here
53
my $input = CGI->new;
53
my $input = CGI->new;
54
$debug or $debug = $input->param('debug') || 0;
54
$debug or $debug = $input->param('debug') || 0;
55
55
56
57
my $print = $input->param('print');
58
59
my $template_name;
60
61
if (defined $print and $print eq "brief") {
62
        $template_name = "members/moremember-brief.tt";
63
} else {
64
        $template_name = "members/moremember.tt";
65
}
66
56
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
67
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
57
    {
68
    {
58
        template_name   => "members/moremember.tt",
69
        template_name   => $template_name,
59
        query           => $input,
70
        query           => $input,
60
        type            => "intranet",
71
        type            => "intranet",
61
        authnotrequired => 0,
72
        authnotrequired => 0,
62
- 

Return to bug 21757