@@ -, +, @@ circ/bookcount.pl - Search for biblio with an item that has been checked out several times and that has been transferred - In left navigation click on 'Items' - In list of items click on 'View item's checkout history' - Verify that dates in 'Date arrived at current library' and in column 'Last seen' display properly. --- circ/bookcount.pl | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) --- a/circ/bookcount.pl +++ a/circ/bookcount.pl @@ -31,7 +31,7 @@ use C4::Koha; use C4::Auth; use C4::Branch; # GetBranches use C4::Biblio; # GetBiblioItemData -use C4::Dates qw/format_date/; +use Koha::DateUtils; my $input = new CGI; my $itm = $input->param('itm'); @@ -86,7 +86,7 @@ $template->param( biblioitemnumber => $bi, homebranch => $homebranch, holdingbranch => $holdingbranch, - lastdate => $lastdate ? format_date($lastdate) : 0, + lastdate => $lastdate ? $lastdate : 0, count => $count, branchloop => $branchloop, ); @@ -177,7 +177,7 @@ sub slashdate { my ($date) = @_; $date or return; return ( - format_date($date), + output_pref({ dt => dt_from_string( $date ), dateonly => 1 }), substr($date,11,5) ); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/bookcount.tt @@ -1,3 +1,4 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Circulation statistics for [% title |html %] [% INCLUDE 'doc-head-close.inc' %] @@ -28,7 +29,7 @@ $(document).ready(function(){ [% homebranch %] [% holdingbranch %] - [% IF ( lastdate ) %][% lastdate %][% ELSE %]Item has no transfer record[% END %] + [% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %] [% count %] --