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

(-)a/circ/bookcount.pl (-3 / +3 lines)
Lines 89-95 $template->param( Link Here
89
    biblioitemnumber        => $bi,
89
    biblioitemnumber        => $bi,
90
    homebranch              => $homebranch,
90
    homebranch              => $homebranch,
91
    holdingbranch           => $holdingbranch,
91
    holdingbranch           => $holdingbranch,
92
    lastdate                => $lastdate ?  format_date($lastdate) : $message,
92
    lastdate                => $lastdate ?  format_date($lastdate) : 0,
93
    count                   => $count,
93
    count                   => $count,
94
    branchloop              => $branchloop,
94
    branchloop              => $branchloop,
95
);
95
);
Lines 112-124 sub lastmove { Link Here
112
    );
112
    );
113
    $sth->execute($itemnumber);
113
    $sth->execute($itemnumber);
114
    my ($date) = $sth->fetchrow_array;
114
    my ($date) = $sth->fetchrow_array;
115
    return ( 0, "Item has no branch transfers record" ) if not $date;
115
    return ( 0, 1 ) if not $date;
116
    $sth = $dbh->prepare(
116
    $sth = $dbh->prepare(
117
"SELECT * FROM branchtransfers WHERE branchtransfers.itemnumber=? and branchtransfers.datearrived=?"
117
"SELECT * FROM branchtransfers WHERE branchtransfers.itemnumber=? and branchtransfers.datearrived=?"
118
    );
118
    );
119
    $sth->execute( $itemnumber, $date );
119
    $sth->execute( $itemnumber, $date );
120
    my ($data) = $sth->fetchrow_hashref;
120
    my ($data) = $sth->fetchrow_hashref;
121
    return ( 0, "Item has no branch transfers record" ) if not $data;
121
    return ( 0, 1 ) if not $data;
122
    return ( $data, "" );
122
    return ( $data, "" );
123
}
123
}
124
124
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt (-3 / +3 lines)
Lines 28-34 $(document).ready(function(){ Link Here
28
		
28
		
29
		<tr><td>[% homebranch %]</td>
29
		<tr><td>[% homebranch %]</td>
30
            <td>[% holdingbranch %]</td>
30
            <td>[% holdingbranch %]</td>
31
            <td>[% lastdate %]</td>
31
            <td>[% IF ( lastdate ) %][% lastdate %][% ELSE %]Item has no transfer record[% END %]</td>
32
            <td>[% count %]</td>
32
            <td>[% count %]</td>
33
        </tr>
33
        </tr>
34
</table>
34
</table>
Lines 50-56 $(document).ready(function(){ Link Here
50
                    <span style="display:none;">[% branchloo.seen %][% branchloo.seentime %]</span>
50
                    <span style="display:none;">[% branchloo.seen %][% branchloo.seentime %]</span>
51
                    <!-- invisible span for eventual use by tablesorter -->
51
                    <!-- invisible span for eventual use by tablesorter -->
52
                    [% branchloo.seen %] [% branchloo.seentime %]
52
                    [% branchloo.seen %] [% branchloo.seentime %]
53
                [% ELSE %]Never
53
                [% ELSE %]
54
                    <span>Never</span>
54
                [% END %]
55
                [% END %]
55
            </td>
56
            </td>
56
        </tr>
57
        </tr>
57
- 

Return to bug 9140