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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (+17 lines)
Lines 1-4 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE date %]
2
[% IF ( borrowernumber ) %]
3
[% IF ( borrowernumber ) %]
3
<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
4
<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
4
<!--[if IE 6]>
5
<!--[if IE 6]>
Lines 13-18 Link Here
13
            <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
14
            <li id="patronbasics"><img src="[% interface %]/[% theme %]/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
14
        [% END %]
15
        [% END %]
15
    [% END %]
16
    [% END %]
17
    [% IF ( dateofbirth ) %]
18
        [%- calc = date.calc
19
            YMD = dateofbirth.split("-")
20
            ageymd = calc.Delta_YMD(
21
                YMD.0, YMD.1, YMD.2,
22
                date.format(date.now, "%Y"),
23
                date.format(date.now, "%m"),
24
                date.format(date.now, "%d")
25
            )
26
            age = ageymd.0
27
        -%]
28
        <li>Age: [% age %]</li>
29
    [% END %]
16
    [% IF Koha.Preference( 'AddressFormat' ) %]
30
    [% IF Koha.Preference( 'AddressFormat' ) %]
17
        [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
31
        [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
18
    [% ELSE %]
32
    [% ELSE %]
Lines 50-55 Link Here
50
    [% UNLESS ( email or emailpro) %]
64
    [% UNLESS ( email or emailpro) %]
51
        <li> <span class="empty">No email stored.</span></li>
65
        <li> <span class="empty">No email stored.</span></li>
52
    [% END %]
66
    [% END %]
67
    [% UNLESS ( dateofbirth ) %]
68
        <li> <span class="empty">No birth date stored.</span></li>
69
    [% END %]
53
70
54
    [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
71
    [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %]
55
        [% IF ( extendedattribute.display_checkout ) %]
72
        [% IF ( extendedattribute.display_checkout ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (+13 lines)
Lines 1-4 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE date %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE ColumnsSettings %]
5
[% USE ColumnsSettings %]
Lines 571-580 No patron matched <span class="ex">[% message %]</span> Link Here
571
                <th>Category</th>
572
                <th>Category</th>
572
                <th>Library</th>
573
                <th>Library</th>
573
                <th>Address</th>
574
                <th>Address</th>
575
                <th>Age</th>
574
            </tr>
576
            </tr>
575
        </thead>
577
        </thead>
576
        <tbody>
578
        <tbody>
577
            [% FOREACH borrower IN borrowers %]
579
            [% FOREACH borrower IN borrowers %]
580
            [%- calc = date.calc
581
                YMD = borrower.dateofbirth.split("-")
582
                ageymd = calc.Delta_YMD(
583
                    YMD.0, YMD.1, YMD.2,
584
                    date.format(date.now, "%Y"),
585
                    date.format(date.now, "%m"),
586
                    date.format(date.now, "%d")
587
                )
588
                age = ageymd.0
589
            -%]
578
            <tr>
590
            <tr>
579
                <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td>
591
                <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td>
580
                <td>[% borrower.surname %], [% borrower.firstname %]</td>
592
                <td>[% borrower.surname %], [% borrower.firstname %]</td>
Lines 582-587 No patron matched <span class="ex">[% message %]</span> Link Here
582
                <td>[% borrower.categorycode %]</td>
594
                <td>[% borrower.categorycode %]</td>
583
                <td>[% borrower.branchcode %]</td>
595
                <td>[% borrower.branchcode %]</td>
584
                <td>[% borrower.address %]</td>
596
                <td>[% borrower.address %]</td>
597
                <td>[% age %]</td>
585
            </tr>
598
            </tr>
586
            [% END %]
599
            [% END %]
587
        </tbody>
600
        </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt (-2 / +14 lines)
Lines 1-4 Link Here
1
[% USE To %]
1
[% USE To %]
2
[% USE date %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
{
4
{
4
    "sEcho": [% sEcho %],
5
    "sEcho": [% sEcho %],
Lines 6-11 Link Here
6
    "iTotalDisplayRecords": [% iTotalDisplayRecords %],
7
    "iTotalDisplayRecords": [% iTotalDisplayRecords %],
7
    "aaData": [
8
    "aaData": [
8
        [% FOREACH data IN aaData %]
9
        [% FOREACH data IN aaData %]
10
        [% IF ( data.dateofbirth ) %]
11
            [%- calc = date.calc
12
                YMD = data.dateofbirth.split("-")
13
                ageymd = calc.Delta_YMD(
14
                    YMD.0, YMD.1, YMD.2,
15
                    date.format(date.now, "%Y"),
16
                    date.format(date.now, "%m"),
17
                    date.format(date.now, "%d")
18
                )
19
                age = ageymd.0
20
            -%]
21
        [% END %]
9
            {
22
            {
10
                [% IF CAN_user_tools_manage_patron_lists %]
23
                [% IF CAN_user_tools_manage_patron_lists %]
11
                "dt_borrowernumber":
24
                "dt_borrowernumber":
Lines 14-20 Link Here
14
                "dt_cardnumber":
27
                "dt_cardnumber":
15
                    "[% data.cardnumber | html %]",
28
                    "[% data.cardnumber | html %]",
16
                "dt_name":
29
                "dt_name":
17
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %]</span>",
30
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a>[% IF age %]([% age%])[% END %]<br />[% INCLUDE escape_address data = data %]</span>",
18
                "dt_category":
31
                "dt_category":
19
                    "[% data.category_description |html %] ([% data.category_type |html %])",
32
                    "[% data.category_description |html %] ([% data.category_type |html %])",
20
                "dt_branch":
33
                "dt_branch":
21
- 

Return to bug 15400