From 6eb56acba6a54f12c9d893206947045c2985c9b7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 7 Jun 2022 11:33:48 +0000 Subject: [PATCH] Bug 30917: Improve course reserves breadcrumbs This patch adds course name to the breadcrumbs and page title on the pages for adding items to a course. To test, apply the patch and go to course reserves. - Click a course to view it. - Click the "Add reserves" button. - In the breadcrumbs you should see: Home > Course reserves > [Course name] > Add reserves - [Course name] should link correctly to the course detail view. In the page title you should see: Add reserves > [Course name] > Course reserves > Home - Enter a barcode or biblionumber and proceed to the next step. Confirm that the same changes are in effect on the second page. - Perform the same tests in the "Batch add reserves" process. Signed-off-by: David Nind Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/course_reserves/add_items-step1.tt | 7 +++++-- .../prog/en/modules/course_reserves/add_items-step2.tt | 7 +++++-- .../prog/en/modules/course_reserves/batch_add_items.tt | 7 +++++-- 3 files changed, 15 insertions(+), 6 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 89d42663dd..18f41c9442 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 @@ -1,6 +1,6 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Add items › Course reserves › Koha +Add reserves › [% course.course_name | html %] › Course reserves › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -16,9 +16,12 @@
  • Course reserves
  • +
  • + [% course.course_name | html %] +
  • - Add reserves for [% course.course_name | html %] + 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 d9fb79eb53..dc4d9ad1d3 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 @@ -1,7 +1,7 @@ [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -[% IF is_edit || course_reserve %]Edit item[% ELSE %]Add items[% END %] › Course reserves › Koha +[% IF is_edit || course_reserve %]Edit reserve[% ELSE %]Add reserves[% END %] › [% course.course_name | html %] › Course reserves › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -18,10 +18,13 @@
  • Course reserves
  • +
  • + [% course.course_name | html %] +
  • [% IF is_edit || course_reserve %] Edit [% ELSE %] Reserve [% END %] - [% biblio.title | html %] for [% course.course_name | html %] + [% biblio.title | html %]
  • 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 0acb573fe9..2534b0bc85 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 @@ -5,7 +5,7 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Add items › Course reserves › Koha +Add reserves › [% course.course_name | html %] › Course reserves › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -21,9 +21,12 @@
  • Course reserves
  • +
  • + [% course.course_name | html %] +
  • - Add reserves for [% course.course_name | html %] + Add reserves
  • -- 2.39.5