Bugzilla – Attachment 83885 Details for
Bug 22127
Update dateaccessioned value builder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22127: Update date accessioned plugin - remove unused routine
Bug-22127-Update-date-accessioned-plugin---remove-.patch (text/plain), 1.57 KB, created by
Josef Moravec
on 2019-01-14 11:38:32 UTC
(
hide
)
Description:
Bug 22127: Update date accessioned plugin - remove unused routine
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-01-14 11:38:32 UTC
Size:
1.57 KB
patch
obsolete
>From 4f21ac48c37df77fa20e99df87606ee7079c45fd Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 14 Jan 2019 11:27:32 +0000 >Subject: [PATCH] Bug 22127: Update date accessioned plugin - remove unused > routine > >Test plan: >1) Apply the patch >2) Have set dateaccessioned plugin to an item subfield (it is set on 952$d by default) >3) Confirm the functionality of this plugin is same as before patch >--- > cataloguing/value_builder/dateaccessioned.pl | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) > >diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl >index 7a86e2d67c..7bc6db2a13 100755 >--- a/cataloguing/value_builder/dateaccessioned.pl >+++ b/cataloguing/value_builder/dateaccessioned.pl >@@ -20,7 +20,6 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use C4::Biblio qw/GetMarcFromKohaField/; > use Koha::DateUtils; > > my $builder = sub { >@@ -29,12 +28,8 @@ my $builder = sub { > > my $date = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); > >- # find the tag/subfield mapped to items.dateaccessioned >- my ($tag,$subfield) = GetMarcFromKohaField("items.dateaccessioned",""); >- my $res = <<END_OF_JS; >-<script type="text/javascript"> >-//<![CDATA[ >-// >+ my $res = <<END_OF_JS; >+<script> > // from: cataloguing/value_builder/dateaccessioned.pl > > function Focus$function_name(event) { >@@ -53,7 +48,6 @@ function set_to_today( id, force ) { > \$("#" + id).val("$date"); > } > } >-//]]> > </script> > END_OF_JS > return $res; >-- >2.11.0
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 22127
:
83885
|
87027
|
87173