From 58d5d7d87fd4283750c2e57b6e6ad29fe684bb3c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 18 Feb 2023 17:10:28 +0000 Subject: [PATCH] Bug 31450: (follow-up) Add hint about empty publication date This patch adds a hint to the additional contents form when the user is adding a news item, "News without a publication date will not display." This patch also makes to extra changes: Changing the grammatically incorrect heading "Modify an additional content" to "Modify additional content." The patch also splits the expiration date hint into two separate div.hint containers for better readability. To test, apply the patch and add a new news item. You should see the new hint under the publication date field. Try adding an HTML customization. The hint should not appear. --- .../prog/en/modules/tools/additional-contents.tt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 2edc683570..5a9d845494 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -265,16 +265,23 @@
[% INCLUDE 'date-format.inc' %]
+ [% IF ( category == 'news' ) %] +
+ News without a publication date will not display +
+ [% END %]
  • [% INCLUDE 'date-format.inc' %] - [% IF category == 'news' %] -
    News will still be accessible by direct URL if expired. - [% END %]
    + [% IF category == 'news' %] +
    + News will still be accessible by direct URL if expired. +
    + [% END %]
  • [% UNLESS category == 'pages' %]
  • -- 2.39.2