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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-2 / +25 lines)
Lines 46-51 Link Here
46
                        <tr>
46
                        <tr>
47
                            <th>&nbsp;</th>
47
                            <th>&nbsp;</th>
48
                            <th>Date</th>
48
                            <th>Date</th>
49
                            <th>Item last seen date</th>
49
                            <th>Action</th>
50
                            <th>Action</th>
50
                            <th>Barcode</th>
51
                            <th>Barcode</th>
51
                            <th>Card number or username</th>
52
                            <th>Card number or username</th>
Lines 59-64 Link Here
59
                                <td>
60
                                <td>
60
                                    <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | $KohaDates with_hours=1 %]</label>
61
                                    <label for="operationid[% operation.operationid | html %]">[% operation.timestamp | $KohaDates with_hours=1 %]</label>
61
                                </td>
62
                                </td>
63
                                <td>
64
                                    [% UNLESS operation.outdated %]
65
                                        [% operation.datelastseen | $KohaDates with_hours=1 %]
66
                                    [% ELSE %]
67
                                        <span class="error"
68
                                            ><i
69
                                                data-bs-toggle="tooltip"
70
                                                title="This item has been updated since the offline circulation action was taken. Use caution when processing this action."
71
                                                data-bs-placement="right"
72
                                                class="fa fa-exclamation-triangle"
73
                                                style="color:gold"
74
                                                tabindex="0"
75
                                            ></i>
76
                                            [% operation.datelastseen | $KohaDates with_hours=1 %]</span
77
                                        >
78
                                    [% END %]
79
                                </td>
62
                                <td>
80
                                <td>
63
                                    [% SWITCH ( operation.action ) -%]
81
                                    [% SWITCH ( operation.action ) -%]
64
                                    [% CASE "issue" -%]
82
                                    [% CASE "issue" -%]
Lines 72-79 Link Here
72
                                    [% END -%]
90
                                    [% END -%]
73
                                </td>
91
                                </td>
74
                                <td>
92
                                <td>
75
                                    [% IF ( operation.biblionumber ) %]
93
                                    [% IF ( operation.itemnumber ) %]
76
                                        <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber | uri %]" title="[% operation.bibliotitle | html %]">[% operation.barcode | html %]</a>
94
                                        <a
95
                                            href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% operation.biblionumber | uri %]&itemnumber=[% operation.itemnumber | uri %]#item[% operation.itemnumber | uri %]"
96
                                            target="_blank"
97
                                            title="[% operation.bibliotitle | html %]"
98
                                            >[% operation.barcode | html %]</a
99
                                        >
77
                                    [% ELSE %]
100
                                    [% ELSE %]
78
                                        <span class="error">[% operation.barcode | html %]</span>
101
                                        <span class="error">[% operation.barcode | html %]</span>
79
                                    [% END %]
102
                                    [% END %]
(-)a/offline_circ/list.pl (-1 / +8 lines)
Lines 27-32 use C4::Context; Link Here
27
use C4::Circulation qw( GetOfflineOperations GetOfflineOperation );
27
use C4::Circulation qw( GetOfflineOperations GetOfflineOperation );
28
use C4::Members;
28
use C4::Members;
29
use Koha::Patrons;
29
use Koha::Patrons;
30
use Koha::DateUtils qw( dt_from_string );
31
use DateTime;
30
32
31
use Koha::Items;
33
use Koha::Items;
32
34
Lines 49-54 for (@$operations) { Link Here
49
        my $biblio = $item->biblio;
51
        my $biblio = $item->biblio;
50
        $_->{'bibliotitle'}  = $biblio->title;
52
        $_->{'bibliotitle'}  = $biblio->title;
51
        $_->{'biblionumber'} = $biblio->biblionumber;
53
        $_->{'biblionumber'} = $biblio->biblionumber;
54
        $_->{'itemnumber'}   = $item->itemnumber;
55
        $_->{'datelastseen'} = $item->datelastseen;
56
        $_->{'outdated'} =
57
            DateTime->compare( dt_from_string( $item->datelastseen ), dt_from_string( $_->{'timestamp'} ) ) == 1
58
            ? 1
59
            : 0;
52
    }
60
    }
53
61
54
    my $patron =
62
    my $patron =
55
- 

Return to bug 40492