Bugzilla – Attachment 87173 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.72 KB, created by
Marcel de Rooy
on 2019-03-29 10:41:02 UTC
(
hide
)
Description:
Bug 22127: Update date accessioned plugin - remove unused routine
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-03-29 10:41:02 UTC
Size:
1.72 KB
patch
obsolete
>From 47503b6d3f5d98b43a94284765d3bc928ff9a606 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 >Content-Type: text/plain; charset=utf-8 > >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 > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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