From 501fcdf13ce282dd990b4cb539c88e82a4cdc915 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 18 Aug 2021 14:17:44 +0100 Subject: [PATCH] Bug 35978: Add 'sections' to Course Reserves We use Section to distinguish Residential from ETF Open University; This patch adds Section to the breadcrumb and title where appropriate. --- .../prog/en/modules/course_reserves/add_items-step1.tt | 2 +- .../prog/en/modules/course_reserves/add_items-step2.tt | 6 +++--- .../prog/en/modules/course_reserves/batch_add_items.tt | 2 +- .../prog/en/modules/course_reserves/course-details.tt | 4 ++-- .../prog/en/modules/course_reserves/course-reserves.tt | 2 +- .../intranet-tmpl/prog/en/modules/course_reserves/course.tt | 4 ++-- .../opac-tmpl/bootstrap/en/modules/opac-course-details.tt | 6 +++--- .../opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt | 2 +- 8 files changed, 14 insertions(+), 14 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 0eec76dc0b4..371350f6705 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 @@ -22,7 +22,7 @@ Course reserves [% END %] [% WRAPPER breadcrumb_item %] - [% course.course_name | html %] + [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Add reserves 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 18b1b9c3be5..a47d5706fde 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 @@ -29,7 +29,7 @@ Course reserves [% END %] [% WRAPPER breadcrumb_item %] - [% course.course_name | html %] + [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% IF is_edit || course_reserve %] @@ -68,9 +68,9 @@
[% IF is_edit || course_reserve %] - Edit [% biblio.title | html %] in [% course.course_name | html %] + 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 %] + Add [% biblio.title | html %] to [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] [% END %]
  1. 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 0ecc016d2e8..71c419b6026 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 @@ -26,7 +26,7 @@ Course reserves [% END %] [% WRAPPER breadcrumb_item %] - [% course.course_name | html %] + [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Add reserves diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index dee719c6a49..fe87d1bcbd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -9,7 +9,7 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% tx("Course details for {course_name}", { course_name = course.course_name }) | html %] › + [% tx("Course details for {course_name}", { course_name = course.course_name }) | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] › [% t("Course reserves") | html %] › [% t("Koha") | html %] [% END %] @@ -42,7 +42,7 @@ Course reserves [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Course details for [% course.course_name | html | $HtmlTags tag="em" %] + Course details for [% course.course_name | html | $HtmlTags tag="em" %][%- IF course.section -%] - [% course.section | html | $HtmlTags tag="em" %][%- END -%] [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt index 8c06c578c84..a2cb419c4c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt @@ -64,7 +64,7 @@ [% FOREACH c IN courses %] - [% c.course_name | html %] + [% c.course_name | html %][%- IF c.section -%] - [% c.section | html %][%- END -%] [% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %] [% c.course_number | html %] [% c.section | html %] 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 aafe826931e..1f431ba6b65 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 @@ -5,7 +5,7 @@ [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% IF ( course_name ) %] - [% tx("Edit {course_name}", { course_name = course_name }) | html %] + [% tx("Edit {course_name}", { course_name = course_name }) | html %][% IF course.section %] - [% course.section | html %][% END %] [% ELSE %] [% t("New course") | html %] [% END %] › @@ -36,7 +36,7 @@ [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% IF course_name %] - <span>Edit [% course_name | html | $HtmlTags tag="em" %]</span> + <span>Edit [% course_name | html | $HtmlTags tag="em" %][%- IF course.section -%] - [% course.section | html | $HtmlTags tag="em" %][%- END -%]</span> [% ELSE %] <span>New course</span> [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt index b7354fdb96c..2b5ffa8bdda 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt @@ -8,7 +8,7 @@ [% USE TablesSettings %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] -<title>Course reserves for [% course.course_name | html %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog +Course reserves for [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %] [% Asset.css("css/datatables.css") | $raw %] @@ -24,7 +24,7 @@ Course reserves [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Course reserves for  [% course.course_name | html %] + Course reserves for  [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%] [% END %] [% END #/ WRAPPER breadcrumbs %] @@ -33,7 +33,7 @@
    -

    Course reserves for [% course.course_name | html %]

    +

    Course reserves for [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]

      [% IF ( course.term ) %]
    1. [% tp('Semester', 'Term:') | html %] [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]
    2. [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt index 8924690baaa..5338b8fbb79 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt @@ -47,7 +47,7 @@ [% FOREACH c IN courses %] - [% c.course_name | html %] + [% c.course_name | html %][%- IF c.section -%] - [% c.section | html %][%- END -%] [% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %] [% c.course_number | html %] [% c.section | html %] -- 2.43.0