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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-3 / +3 lines)
Lines 246-259 Using this account is not recommended because some parts of Koha will not functi Link Here
246
                                                    <td class="date_due overdue">
246
                                                    <td class="date_due overdue">
247
                                                        <span title="[% ISSUE.date_due %]">
247
                                                        <span title="[% ISSUE.date_due %]">
248
                                                            <span class="tdlabel">Date due:</span>
248
                                                            <span class="tdlabel">Date due:</span>
249
                                                            [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
249
                                                            [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
250
                                                        </span>
250
                                                        </span>
251
                                                    </td>
251
                                                    </td>
252
                                                [% ELSE %]
252
                                                [% ELSE %]
253
                                                    <td class="date_due">
253
                                                    <td class="date_due">
254
                                                        <span title="[% ISSUE.date_due %]">
254
                                                        <span title="[% ISSUE.date_due %]">
255
                                                            <span class="tdlabel">Date due:</span>
255
                                                            <span class="tdlabel">Date due:</span>
256
                                                            [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %]
256
                                                            [% ISSUE.date_due | $KohaDates as_due_date => 1 %]
257
                                                        </span>
257
                                                        </span>
258
                                                    </td>
258
                                                    </td>
259
                                                [% END %]
259
                                                [% END %]
Lines 540-546 Using this account is not recommended because some parts of Koha will not functi Link Here
540
                                                <td>
540
                                                <td>
541
                                                    <span title="[% OVERDUE.date_due %]">
541
                                                    <span title="[% OVERDUE.date_due %]">
542
                                                        <span class="tdlabel">Date due:</span>
542
                                                        <span class="tdlabel">Date due:</span>
543
                                                        [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %]
543
                                                        [% OVERDUE.date_due | $KohaDates as_due_date => 1 %]
544
                                                    </span>
544
                                                    </span>
545
                                                </td>
545
                                                </td>
546
                                                [% IF ( OpacRenewalAllowed ) %]
546
                                                [% IF ( OpacRenewalAllowed ) %]
(-)a/opac/opac-user.pl (-5 / +5 lines)
Lines 180-188 my $overdues_count = 0; Link Here
180
my @overdues;
180
my @overdues;
181
my @issuedat;
181
my @issuedat;
182
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
182
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
183
my $issues = GetPendingIssues($borrowernumber);
183
my $pending_checkouts = $patron->pending_checkouts({}, { order_by => [ { -desc => 'date_due' }, { -asc => 'issue_id' } ] });
184
if ($issues){
184
if ( $pending_checkouts->count ) { # Useless test
185
    foreach my $issue ( sort { $b->{date_due}->datetime() cmp $a->{date_due}->datetime() } @{$issues} ) {
185
    while ( my $c = $pending_checkouts->next ) {
186
        my $issue = $c->unblessed_all_relateds;
186
        # check for reserves
187
        # check for reserves
187
        my $restype = GetReserveStatus( $issue->{'itemnumber'} );
188
        my $restype = GetReserveStatus( $issue->{'itemnumber'} );
188
        if ( $restype ) {
189
        if ( $restype ) {
Lines 247-253 if ($issues){ Link Here
247
            }
248
            }
248
        }
249
        }
249
250
250
        if ( $issue->{'overdue'} ) {
251
        if ( $c->is_overdue ) {
251
            push @overdues, $issue;
252
            push @overdues, $issue;
252
            $overdues_count++;
253
            $overdues_count++;
253
            $issue->{'overdue'} = 1;
254
            $issue->{'overdue'} = 1;
254
- 

Return to bug 19935