From 08d5b0018b75fbc7358fac4b052f284a0dc23503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 15 Mar 2015 08:20:15 +0100 Subject: [PATCH] Bug 13813 - Remove C4::Dates from C4/VirtualShelves/Page.pm To test: Apply patch In staff client, go to Home > Lists Verify that list of lists displays as before In OPAC, go to Lists Verify that Public and Private Lists display as before Note: 'dateadded' is not displayed in lists of lists. --- C4/VirtualShelves/Page.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 6117ea9..da27c26 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -34,7 +34,7 @@ use C4::Koha; use C4::Auth qw/get_session/; use C4::Members; use C4::Output; -use C4::Dates qw/format_date/; +use Koha::DateUtils; use C4::Tags qw(get_tags); use C4::Csv; use C4::XSLT; @@ -270,7 +270,7 @@ sub shelfpage { # and itemtypes tables, so I'm commenting them out for now to quiet the log -crn #$this_item->{imageurl} = $imgdir."/".$itemtypes->{ $this_item->{itemtype} }->{'imageurl'}; #$this_item->{'description'} = $itemtypes->{ $this_item->{itemtype} }->{'description'}; - $this_item->{'dateadded'} = format_date( $this_item->{'dateadded'} ); + $this_item->{'dateadded'} = output_pref({ dt => dt_from_string( $this_item->{'dateadded'} ), dateformat => 'iso', dateonly => 1 }); $this_item->{'imageurl'} = getitemtypeinfo( $this_item->{'itemtype'}, $type )->{'imageurl'}; $this_item->{'coins'} = GetCOinSBiblio( $record ); $this_item->{'subtitle'} = GetRecordValue('subtitle', $record, GetFrameworkCode($this_item->{'biblionumber'})); -- 1.7.10.4