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

--- Comment #13 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 192860
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192860&action=edit
Bug 35972: Implement dynamic course type display in OPAC

This patch updates the OPAC to use dynamic display text from
authorized values instead of hardcoded "Research tables" terminology.

Changes to OPAC scripts:

1. opac-thesis-tables.pl:
   - Uses course_type='RESEARCH_TABLE' instead of thesis_table='yes'
   - Retrieves display text from authorised_values.lib_opac
   - Passes course_type_display to template

2. opac-thesis-table-details.pl:
   - Retrieves course type from course record
   - Looks up dynamic display text from authorized values
   - Passes course_type_display to template

Changes to OPAC templates:

1. opac-thesis-tables.tt:
   - Replaced all hardcoded "Research tables" text
   - Now uses [% course_type_display | html %] variable
   - Displays terminology from CR_TYPE authorized values

2. opac-thesis-table-details.tt:
   - Updated breadcrumb to use dynamic display text

3. masthead.inc:
   - Moved "Research tables" link next to "Course reserves"
   - Removed duplicate link from suggestions section
   - Shows when UseCourseReserves preference is enabled
   - More logical navigation structure

Benefits:
- Libraries can customize terminology without code changes
- Multilingual support via lib_opac field
- Consistent with overall course type architecture
- Supports future course types (On Display, etc.)

-- 
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