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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt (-101 lines)
Lines 1-100 Link Here
1
[%# duplicates circ-menu.inc but assumes all borrower attributes are in a borrower variable rather than
2
in the global namespace %]
3
[% IF borrower %]
4
<div class="patroninfo"><h5>[% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %] ([% borrower.cardnumber %])</h5>
5
<!--[if IE 6]>
6
<style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
7
}</style>
8
<![endif]-->
9
<ul class="patronbriefinfo">
10
    [% IF ( patronimages ) %]
11
        [% IF borrower.has_picture %]
12
        <li><img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrower.borrowernumber %]" id="patronimage" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li>
13
        [% ELSE %]
14
            <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
15
        [% END %]
16
    [% END %]
17
18
    [% IF Koha.Preference( 'AddressFormat' ) %]
19
        [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
20
    [% ELSE %]
21
        [% INCLUDE 'member-display-address-style-us.inc' %]
22
    [% END %]
23
24
    [% IF ( phone ) %]<li class="patronphone">
25
        [% phone %]
26
    [% ELSE %]
27
        [% IF ( mobile ) %]
28
            [% mobile %]
29
        [% ELSE %]
30
            [% IF ( phonepro ) %]
31
                [% phonepro %]
32
            [% END %]
33
        [% END %]</li>
34
    [% END %]
35
    [% IF ( email ) %]
36
        <li class="email"> <a href="mailto:[% email %]" title="[% email %]">[% email %]</a></li>
37
    [% ELSE %]
38
        [% IF ( emailpro ) %]
39
            <li class="email"> <a href="mailto:[% emailpro %]" title="[% emailpro %]">[% emailpro %]</a></li>
40
        [% END %]
41
    [% END %]
42
43
    [% UNLESS ( address or address2 ) %]
44
        <li><span class="empty" id="noaddressstored">No address stored.</span></li>
45
    [% END %]
46
    [% UNLESS ( city ) %]
47
        <li><span class="empty" id="nocitystored">No city stored.</span></li>
48
    [% END %]
49
    [% UNLESS ( phone or mobile or phonepro) %]
50
        <li> <span class="empty">No phone stored.</span></li>
51
    [% END %]
52
    [% UNLESS ( email or emailpro) %]
53
        <li> <span class="empty">No email stored.</span></li>
54
    [% END %]
55
56
57
58
    [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN borrower.extendedattributes %]
59
        [% IF ( extendedattribute.display_checkout ) %]
60
            [% IF ( extendedattribute.value ) %]
61
                <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li>
62
            [% END %]
63
        [% END %]
64
    [% END %][% END %]
65
    <li class="patroncategory">Category: [% borrower.description %] ([% borrower.categorycode %])</li>
66
    <li class="patronlibrary">Home library: [% IF ( borrower.branchname ) %][% borrower.branchname %][% ELSE %][% borrower.branch %][% END %]</li>
67
</ul></div>
68
<div id="menu">
69
<ul>
70
    [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">Check out</a></li>
71
	[% IF ( CAN_user_borrowers ) %]
72
	[% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]">Details</a></li>
73
	[% END %]
74
	 [% IF ( CAN_user_updatecharges ) %]
75
	[% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Fines</a></li>
76
	[% END %]
77
    [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrower.borrowernumber %]">Routing lists</a></li>[% END %]
78
    <!-- Added check for borrowers permission as this is needed to access Cirulation History -->
79
    [% IF ( intranetreadinghistory && CAN_user_borrowers ) %]
80
        [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrower.borrowernumber %]">Circulation history</a></li>
81
    [% END %]
82
    [% IF ( CAN_user_parameters ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% borrower.borrowernumber %]&amp;src=circ">Modification log</a></li>[% END %]
83
    [% IF ( EnhancedMessagingPreferences ) %]
84
    [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrower.borrowernumber %]">Notices</a></li>
85
    [% END %]
86
    [% IF ( CAN_user_borrowers ) %]
87
        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrower.borrowernumber %]">Statistics</a></li>
88
    [% END %]
89
    [% IF EnableBorrowerFiles %]
90
        [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrower.borrowernumber %]">Files</a></li>
91
    [% END %]
92
    [% IF ( CAN_user_borrowers ) %]
93
        [% IF (  suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrower.borrowernumber %]">Purchase<br/>suggestions</a></li>
94
    [% END %]
95
    [% IF CAN_user_borrowers && useDischarge %]
96
        [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
97
    [% END %]
98
</ul></div>
99
[% END %]
100
101
- 

Return to bug 11804