Bugzilla – Attachment 157135 Details for
Bug 33703
Entering dates should be more flexible accepting different entry formats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33703: Add cleave to dateaccessioned.pl
Bug-33703-Add-cleave-to-dateaccessionedpl.patch (text/plain), 1.66 KB, created by
Lucas Gass (lukeg)
on 2023-10-13 19:44:43 UTC
(
hide
)
Description:
Bug 33703: Add cleave to dateaccessioned.pl
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-10-13 19:44:43 UTC
Size:
1.66 KB
patch
obsolete
>From 97696be5c1789f599ba5043cc7ce2b2f6ff7c8d5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 13 Oct 2023 19:44:23 +0000 >Subject: [PATCH] Bug 33703: Add cleave to dateaccessioned.pl > >--- > cataloguing/value_builder/dateaccessioned.pl | 9 ++++++++- > .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 1 + > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl >index 0c14b96f11b..4e3a925e534 100755 >--- a/cataloguing/value_builder/dateaccessioned.pl >+++ b/cataloguing/value_builder/dateaccessioned.pl >@@ -35,7 +35,14 @@ my $builder = sub { > if (dateStr == '') { > instance.setDate(new Date()); > } >- } >+ }, >+ onOpen: function( selectedDates, dateStr, instance ) { >+ new Cleave( instance.altInput, { >+ date: true, >+ delimiter: delimiter, >+ datePattern: altinput_dateformat, >+ }); >+ }, > }); > }); > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index 9326db28b65..3a04ce73a2d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -35,6 +35,7 @@ > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'str/cataloging_additem.inc' %] > [% Asset.js("js/cataloging_additem.js") | $raw %] >+[% Asset.js("lib/cleave/cleave.min.js") | $raw %] > <script> > var has_item_groups = "[% item_groups.size | html %]"; > </script> >-- >2.30.2
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 33703
:
150894
|
150895
|
155719
|
155720
|
155861
|
155862
|
156411
|
156412
|
156413
|
157132
|
157135
|
157206
|
157746
|
161619
|
161663
|
162722
|
162723
|
162724
|
162725
|
162726
|
162727
|
162728
|
162729
|
162730
|
162731
|
163078
|
163079
|
163080
|
163081
|
163082
|
163083
|
163319
|
163320
|
163321
|
163322
|
163323
|
163324
|
163978
|
163979
|
163980
|
163981
|
163982
|
163983
|
165307
|
165308
|
165309
|
165310
|
165311
|
165312
|
165399