From 79631808a9ff902d4af67254b737ba897718c832 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Sun, 3 Apr 2016 16:43:05 +0200
Subject: [PATCH] Bug 13438: Follow-up for removing date_entered
Content-Type: text/plain; charset=utf-8

Defining this sub in normarc_field_008.pl is not necessary.
Use the one from Koha::Util::FrameworkPlugin.

Test plan:
Run the 008 plugin again.
---
 cataloguing/value_builder/normarc_field_008.pl |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/cataloguing/value_builder/normarc_field_008.pl b/cataloguing/value_builder/normarc_field_008.pl
index 997a513..d944cb1 100755
--- a/cataloguing/value_builder/normarc_field_008.pl
+++ b/cataloguing/value_builder/normarc_field_008.pl
@@ -25,16 +25,7 @@ use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-
-sub date_entered {
-    # find today's date
-    my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
-        localtime(time);
-    $year += 1900;
-    $mon  += 1;
-    return substr($year, 2, 2) . sprintf("%0.2d", $mon) .
-        sprintf("%0.2d", $mday);
-}
+use Koha::Util::FrameworkPlugin qw|date_entered|;
 
 my $builder = sub {
     my ( $params ) = @_;
-- 
1.7.10.4