Bugzilla – Attachment 135755 Details for
Bug 29963
Date accessioned plugin should not automatically fill today's date on cataloguing screens
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29963: Display a hint that the 952$d will be filled with current date if blank
Bug-29963-Display-a-hint-that-the-952d-will-be-fil.patch (text/plain), 3.23 KB, created by
Alex Buckley
on 2022-06-07 12:05:08 UTC
(
hide
)
Description:
Bug 29963: Display a hint that the 952$d will be filled with current date if blank
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2022-06-07 12:05:08 UTC
Size:
3.23 KB
patch
obsolete
>From a4215c9e68cf551a79c95cd0c58dc9839efb6014 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Tue, 7 Jun 2022 23:48:42 +1200 >Subject: [PATCH] Bug 29963: Display a hint that the 952$d will be filled with > current date if blank > >This hint will show when: >- Adding an item >- Editing an item >- Receiving a serial issue > >Test plan: >1. Apply patch > >2. Add an item to a biblio record, notice there is a hint message for the >952$d (date acquired) subfield > >3. Edit an item, notice there is a hint message displaying for the 952$d >subfield > >4. Receive a serial (The subscription must be setup to create an item >upon receival to test this). > >5. Notice there is a hint message displaying for the 952$d (Date acquired) subfield in both the main issue you are receiving and the supplemental issue form as well > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc | 7 +++++-- > .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 3 +++ > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >index a991f0ce50..7d41df7cdb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >@@ -198,8 +198,11 @@ > </a> > [% END %] > >- <span class="hint" id="hint[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]"></span> >- >+ [% IF subfield.kohafield == 'items.dateaccessioned' %] >+ <span class="hint" id="hint[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]">Today's date will be saved in this field if you leave it blank.</span> >+ [% ELSE %] >+ <span class="hint" id="hint[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]"></span> >+ [% END %] > </div> > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >index d1b93145f4..99ec118225 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >@@ -270,6 +270,7 @@ $(document).ready(function() { > </a> > [% END %] > [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] >+ [% IF iteminformatio.kohafield == 'items.dateaccessioned' %] <span class="hint">Today's date will be saved in this field if you leave it blank.</span>[% END %] > </div></li> > > [% END %]</ol></div><!-- /iteminformation --> >@@ -422,6 +423,8 @@ $(document).ready(function() { > </a> > [% END %] > [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %] >+ [% IF iteminformatio.kohafield == 'items.dateaccessioned' %] <span class="hint">Today's date will be saved in this field if you leave it blank.</span>[% END %] >+ > </div> > </li>[% END %]</ol> > >-- >2.20.1
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 29963
:
135581
|
135582
|
135674
|
135683
|
135684
|
135744
|
135745
|
135746
|
135755
|
136153