https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42654

            Bug ID: 42654
           Summary: Bug 33907 regression: section missing from OPAC course
                    reserve detail page
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Bug 33907 ("Improve translation of title tags: OPAC part 1") introduced a
regression against Bug 35978 ("Add 'sections' to Course Reserves").

When Bug 33907 replaced the hard-coded strings in opac-course-details.tt with
tx() calls, it dropped the conditional section suffix from three places:

  - <title> tag
  - Active breadcrumb item
  - <h1> heading

This patch restores the section display using the correct i18n approach: two
separate tx() keys, one with section and one without, selected via
[%- IF course.section -%].

Test plan:
1. Enable UseCourseReserves.
2. Create a course with a Section value (e.g. "Residential").
3. Navigate to the OPAC course reserves detail page for that course.
4. Confirm the page <title>, breadcrumb, and <h1> all include the section.
5. Create a course without a Section value.
6. Confirm the page <title>, breadcrumb, and <h1> show only the course name.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to