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

(-)a/svc/checkin.pl (-2 lines)
Lines 27-34 use C4::Items qw(GetBarcodeFromItemnumber); Link Here
27
use C4::Context;
27
use C4::Context;
28
use C4::Auth qw(check_cookie_auth);
28
use C4::Auth qw(check_cookie_auth);
29
29
30
use Koha::DateUtils qw(output_pref_due);
31
32
my $input = new CGI;
30
my $input = new CGI;
33
31
34
my ( $auth_status, $sessionID ) =
32
my ( $auth_status, $sessionID ) =
(-)a/svc/checkouts.pl (-3 / +7 lines)
Lines 103-109 $sql .= " ORDER BY $sorting_column $sorting_direction "; Link Here
103
103
104
my $dbh = C4::Context->dbh();
104
my $dbh = C4::Context->dbh();
105
my $sth = $dbh->prepare($sql);
105
my $sth = $dbh->prepare($sql);
106
$sth->execute( @parameters );
106
$sth->execute(@parameters);
107
107
108
my $item_level_itypes = C4::Context->preference('item-level_itypes');
108
my $item_level_itypes = C4::Context->preference('item-level_itypes');
109
109
Lines 142-149 while ( my $c = $sth->fetchrow_hashref() ) { Link Here
142
            renewals_remaining => $renewals_remaining,
142
            renewals_remaining => $renewals_remaining,
143
            issuedate_formatted =>
143
            issuedate_formatted =>
144
              output_pref( dt_from_string( $c->{issuedate} ) ),
144
              output_pref( dt_from_string( $c->{issuedate} ) ),
145
            date_due_formatted =>
145
            date_due_formatted => output_pref(
146
              output_pref_due( dt_from_string( $c->{date_due} ) ),
146
                {
147
                    dt => dt_from_string( $c->{date_due} ),
148
                    as_due_date => 1
149
                }
150
            ),
147
            subtitle => GetRecordValue(
151
            subtitle => GetRecordValue(
148
                'subtitle',
152
                'subtitle',
149
                GetMarcBiblio( $c->{biblionumber} ),
153
                GetMarcBiblio( $c->{biblionumber} ),
(-)a/svc/holds.pl (-6 / +9 lines)
Lines 95-108 while ( my $h = $holds_rs->next() ) { Link Here
95
            'subtitle', GetMarcBiblio($biblionumber),
95
            'subtitle', GetMarcBiblio($biblionumber),
96
            GetFrameworkCode($biblionumber)
96
            GetFrameworkCode($biblionumber)
97
        ),
97
        ),
98
        reservedate_formatted => $h->reservedate()
98
        reservedate_formatted => $h->reservedate() ? output_pref(
99
        ? output_pref_due( dt_from_string( $h->reservedate() ) )
99
            { dt => dt_from_string( $h->reservedate() ), as_due_date => 1 }
100
          )
100
        : q{},
101
        : q{},
101
        suspend_until_formatted => $h->suspend_until()
102
        suspend_until_formatted => $h->suspend_until() ? output_pref(
102
        ? output_pref_due( dt_from_string( $h->suspend_until() ) )
103
            { dt => dt_from_string( $h->suspend_until() ), as_due_date => 1 }
104
          )
103
        : q{},
105
        : q{},
104
        expirationdate_formatted => $h->expirationdate()
106
        expirationdate_formatted => $h->expirationdate() ? output_pref(
105
        ? output_pref_due( dt_from_string( $h->expirationdate() ) )
107
            { dt => dt_from_string( $h->expirationdate() ), as_due_date => 1 }
108
          )
106
        : q{},
109
        : q{},
107
    };
110
    };
108
111
(-)a/svc/renew.pl (-3 / +2 lines)
Lines 26-32 use C4::Circulation; Link Here
26
use C4::Context;
26
use C4::Context;
27
use C4::Auth qw(check_cookie_auth);
27
use C4::Auth qw(check_cookie_auth);
28
28
29
use Koha::DateUtils qw(output_pref_due dt_from_string);
29
use Koha::DateUtils qw(output_pref dt_from_string);
30
30
31
my $input = new CGI;
31
my $input = new CGI;
32
32
Lines 63-69 $data->{branchcode} = $branchcode; Link Here
63
63
64
if ( $data->{renew_okay} ) {
64
if ( $data->{renew_okay} ) {
65
    $date_due = AddRenewal( $borrowernumber, $itemnumber, $branchcode, $date_due );
65
    $date_due = AddRenewal( $borrowernumber, $itemnumber, $branchcode, $date_due );
66
    $data->{date_due} = output_pref_due( $date_due );
66
    $data->{date_due} = output_pref( { dt => $date_due, as_due_date => 1 } );
67
}
67
}
68
68
69
print to_json($data);
69
print to_json($data);
70
- 

Return to bug 11703