From a353ce7b977da1634adad0b947fd555536afe20e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Aug 2013 10:06:29 -0400 Subject: [PATCH] Bug 10661 - Mandatory item fields should be formatted the same on all forms Content-Type: text/plain; charset="utf-8" Mandatory item fields are not indicated the same way in all places. This patch corrects two places where required fields were shown in bold rather than using the standard "required" class: When adding an order from a staged file and when adding an item for a new issue of a serial. Unrelated changes: Added $KohaDates formatting of date and time and corrected capitalization on a heading on the add order from staged file page. It would be nice to be able to use the same method for displaying the item form as we use on neworderentry.tt -- pulling in the form from a separate include. However that system is designed for handling multiple items and would need to be adapted for these cases. To test, you must have a staged file from which to add an order. Open an existing basket or create a new one and choose to add an order "From a staged file." Choose a staged file from which to order. The item entry form under the "Import all" heading should show required fields in red. To test in serials: Begin the process for receiving an item from an existing subscription. On the serials-edit page, find the "Click to add item" links and click to open the item edit forms. There should be one under the numbered issue and the supplemental issue forms. In both cases the item edit screen should show the mandatory item fields in red. Revision: Left out the "required" note which should appear after each required field. --- .../prog/en/modules/acqui/addorderiso2709.tt | 12 ++++++++---- .../prog/en/modules/serials/serials-edit.tt | 17 ++++++++++++----- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 3223dc2..e8c44af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -52,7 +52,7 @@
[% IF ( batch_details ) %]

Add orders from [% comments %] - ([% file_name %] staged on [% upload_timestamp %]) + ([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %])

@@ -123,7 +123,7 @@
[% IF ( import_batch_id ) %]
-

Import All

+

Import all

Import all the lines in the basket with the following parameters:

@@ -148,14 +148,18 @@
    [% FOREACH iteminformatio IN item.iteminformation %]
  1. - - + [% IF (iteminformatio.mandatory) %] + + [% ELSE %] + + [% END %] [% iteminformatio.marc_value %] + [% IF ( iteminformatio.mandatory ) %] Required[% END %]
  2. [% 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 8f9ea5f..1599bfd 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 @@ -236,8 +236,11 @@ $(document).ready(function() {
    [% FOREACH iteminformatio IN item.iteminformation %]
  1. - - + [% IF (iteminformatio.mandatory) %] + + [% ELSE %] + + [% END %] [% iteminformatio.marc_value %] @@ -249,7 +252,7 @@ $(document).ready(function() { Clone [% END %] - + [% IF ( iteminformatio.mandatory ) %] Required[% END %]
  2. [% END %]
@@ -344,8 +347,11 @@ $(document).ready(function() {
    [% FOREACH iteminformatio IN newserialloo.iteminformation %]
  1. - - + [% IF (iteminformatio.mandatory) %] + + [% ELSE %] + + [% END %] [% iteminformatio.marc_value %] @@ -357,6 +363,7 @@ $(document).ready(function() { Clone [% END %] + [% IF ( iteminformatio.mandatory ) %] Required[% END %]
  2. [% END %]
-- 1.7.9.5