From 8253128fbc07cfac50562fa42a46e4a9e6455005 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 12 Feb 2026 15:41:47 -0500 Subject: [PATCH] Bug 42099: Update course reserve pages to use grid layout for forms This patch updates course reserve templates with new markup and CSS for layout forms using CSS grids. To test, apply the patch rebuild the staff interface CSS. Check the following pages, confirming that the "New" and "Edit" versions of the form look correct in each case: - Course reserves -> New course - Course reserves -> Course -> Add reserves - Course reserves -> Course -> Batch add reserves - Course reserves -> Course -> Batch remove reserves Sponsored-by: Athens County Public Libraries --- .../course_reserves/add_items-step1.tt | 30 +++-- .../course_reserves/add_items-step2.tt | 75 ++++++++---- .../course_reserves/batch_add_items.tt | 103 +++++++++++----- .../modules/course_reserves/batch_rm_items.tt | 15 ++- .../prog/en/modules/course_reserves/course.tt | 114 +++++++++++++----- 5 files changed, 231 insertions(+), 106 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt index 682818bff87..cf1c813a6d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt @@ -49,24 +49,28 @@ -
- Add items: scan barcode -
    -
  1. +
    + Add items by barcode +
    +
    - -
  2. -
+ +
+ +
+
-
+
Or use biblionumber of a bibliographic record -
    -
  1. +
    +
    - -
  2. -
+ +
+ +
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt index f4d88f3e274..a369d02e3fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt @@ -62,23 +62,29 @@ [% IF item # adding an item to course items %] -
+
[% IF is_edit || course_reserve %] Edit [% biblio.title | html %] in [% course.course_name | html %][%- IF course.section -%]- [% course.section | html %][%- END -%] [% ELSE %] Add [% biblio.title | html %] to [% course.course_name | html %][%- IF course.section -%]- [% course.section | html %][%- END -%] [% END %] -
    -
  1. + +
    +
    Barcode: +
    +
    [% item.barcode | html %] -
  2. + + - [% IF item_level_itypes %] -
  3. + [% IF item_level_itypes %] +
    +
    - +
    +
    [% IF course_item.itype_enabled %] [% ELSE %] @@ -95,12 +101,15 @@ [% END %] [% END %] -
  4. - [% END %] + + + [% END %] -
  5. +
    +
    - +
    +
    [% IF course_item.ccode_enabled %] [% ELSE %] @@ -117,11 +126,15 @@ [% END %] [% END %] -
  6. + + -
  7. +
    +
    +
    +
    [% IF course_item.location_enabled %] [% ELSE %] @@ -138,11 +151,15 @@ [% END %] [% END %] -
  8. + + -
  9. +
    +
    +
    +
    [% IF course_item.homebranch_enabled %] [% ELSE %] @@ -159,11 +176,15 @@ [% END %] [% END %] -
  10. + + -
  11. +
    +
    +
    +
    [% IF course_item.holdingbranch_enabled %] [% ELSE %] @@ -180,18 +201,26 @@ [% END %] [% END %] -
  12. + + -
  13. +
    +
    +
    +
    -
  14. + + -
  15. +
    +
    +
    +
    -
  16. -
+ +

Checking the box next to the field label will enable changes to that field. Leave boxes unchecked to make no change.
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt index 60e19583d27..1fcecbc8d00 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt @@ -47,16 +47,23 @@ -

+
Add items: scan barcodes -
    -
  1. + +
    +
    +
    +
    -
  2. - [% IF item_level_itypes %] -
  3. + + + [% IF item_level_itypes %] +
    +
    +
    +
    -
  4. - [% END %] + + + [% END %] -
  5. +
    +
    +
    +
    -
  6. + + -
  7. +
    +
    +
    +
    -
  8. + + -
  9. +
    +
    +
    +
    -
  10. + + -
  11. +
    +
    +
    +
    -
  12. + + -
  13. +
    +
    +
    +
    -
  14. + + -
  15. +
    +
    +
    +
    -
  16. -
+ +

@@ -129,24 +160,34 @@ Any items with existing course reserves will have their on reserve values updated.

-
+
Or use biblionumbers of bibliographic records -
    -
  1. +
    +
    +
    +
    -
  2. + + -
  3. +
    +
    +
    +
    -
  4. + + -
  5. +
    +
    +
    +
    -
  6. -
+ +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt index 7d5eae22de8..82e48db378c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt @@ -35,14 +35,17 @@
[% INCLUDE 'csrf-token.inc' %] -
- Remove items: scan barcodes -
    -
  1. +
    + Remove items by barcode + +
    +
    +
    +
    -
  2. -
+ +

All course reserve items will be deleted from all courses to which they are attached.

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt index 07418859ca7..047e822d06f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt @@ -66,11 +66,19 @@ [% ELSE %] [% END %] -
- [% IF course_id %]Edit course[% ELSE %]Create course[% END %] -
    -
  1. +
    + + [% IF course_name %] + [% tx("Edit {course_name}", { course_name = course_em }) | $raw %] + [% ELSE %] + New course + [% END %] + +
    +
    +
    +
    - Required -
  2. + +
    Required
    + -
  3. +
    +
    +
    +
    - Required -
  4. + +
    Required
    + -
  5. +
    +
    +
    +
    -
  6. + + -
  7. +
    +
    +
    +
    - Required -
  8. + +
    Required
    + -
  9. - [% IF terms %] +
    + [% IF terms %] +
    +
    +
    - [% ELSE %] +
    + [% ELSE %] +
    [% tp('Semester', 'Term:') | html %] +
    +
    No TERM authorised values found! Please create one or more authorised values with the category TERM. - [% END %] -
  10. + + [% END %] + -
  11. +
    +
    Instructors: - +
    +
    [% FOREACH i IN instructors %] @@ -139,31 +170,48 @@
    -
  12. + + + +
    +
    +
    +
    -
  13. + + -
  14. +
    +
    +
    +
    -
  15. + + -
  16. +
    +
    - -
  17. + +
    + +
    + -
  18. - +
    +
    + +
    +
    [% IF enabled == 'no' %] [% ELSE %] [% END %] -
  19. -
+ +
-- 2.39.5