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

(-)a/Koha/Patron.pm (+12 lines)
Lines 45-50 use Koha::Patron::Debarments; Link Here
45
use Koha::Patron::HouseboundProfile;
45
use Koha::Patron::HouseboundProfile;
46
use Koha::Patron::HouseboundRole;
46
use Koha::Patron::HouseboundRole;
47
use Koha::Patron::Images;
47
use Koha::Patron::Images;
48
use Koha::Patron::Files;
48
use Koha::Patron::Messages;
49
use Koha::Patron::Messages;
49
use Koha::Patron::Modifications;
50
use Koha::Patron::Modifications;
50
use Koha::Patron::Relationships;
51
use Koha::Patron::Relationships;
Lines 436-441 sub image { Link Here
436
    return Koha::Patron::Images->find( $self->borrowernumber );
437
    return Koha::Patron::Images->find( $self->borrowernumber );
437
}
438
}
438
439
440
=head3 filecount
441
442
=cut
443
444
sub filecount {
445
    my ( $self ) = @_;
446
447
    my $files = Koha::Patron::Files->new( borrowernumber => $self->borrowernumber )->GetFilesInfo();
448
    return $files;
449
}
450
439
=head3 library
451
=head3 library
440
452
441
Returns a Koha::Library object representing the patron's home library.
453
Returns a Koha::Library object representing the patron's home library.
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-2 / +1 lines)
Lines 159-165 Link Here
159
    [% END %]
159
    [% END %]
160
    [% IF CAN_user_borrowers_edit_borrowers %]
160
    [% IF CAN_user_borrowers_edit_borrowers %]
161
        [% IF ( EnableBorrowerFiles ) %]
161
        [% IF ( EnableBorrowerFiles ) %]
162
            [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files</a></li>
162
            [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files ([% patron.filecount.size | html%])</a></li>
163
        [% END %]
163
        [% END %]
164
    [% END %]
164
    [% END %]
165
165
166
- 

Return to bug 30553