Bugzilla – Attachment 49824 Details for
Bug 13438
Convert normarc framework plugins to new style (see also 10480)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13438: Follow-up for removing date_entered
Bug-13438-Follow-up-for-removing-dateentered.patch (text/plain), 1.22 KB, created by
Marcel de Rooy
on 2016-04-03 14:48:42 UTC
(
hide
)
Description:
Bug 13438: Follow-up for removing date_entered
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-04-03 14:48:42 UTC
Size:
1.22 KB
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13438
:
49823
| 49824 |
51453