Bug 41570

Summary: Tidy kohaTable block - course_reserves
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: TemplatesAssignee: Jonathan Druart <jonathan.druart>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 41324    
Attachments: Bug 41570: Tidy kohaTable - course_reserves/course-details.tt
Bug 41570: Tidy kohaTable - course_reserves/course-reserves.tt
Bug 41570: course_reserves - auto tidy
Bug 41570: Tidy kohaTable - course_reserves/course-details.tt
Bug 41570: Tidy kohaTable - course_reserves/course-reserves.tt
Bug 41570: course_reserves - auto tidy
Bug 41570: (follow-up) i18n correction, course deletion fix

Description Jonathan Druart 2026-01-09 13:58:05 UTC

    
Comment 1 Jonathan Druart 2026-01-09 14:48:10 UTC
Created attachment 191127 [details] [review]
Bug 41570: Tidy kohaTable - course_reserves/course-details.tt

Patch from commit 78c174e
Comment 2 Jonathan Druart 2026-01-09 14:48:11 UTC
Created attachment 191128 [details] [review]
Bug 41570: Tidy kohaTable - course_reserves/course-reserves.tt

Patch from commit 4cb6d9d
Comment 3 Jonathan Druart 2026-01-09 14:48:12 UTC
Created attachment 191129 [details] [review]
Bug 41570: course_reserves - auto tidy

Patch from commit 8f0d9c9
Comment 4 Owen Leonard 2026-01-13 19:43:42 UTC
Created attachment 191389 [details] [review]
Bug 41570: Tidy kohaTable - course_reserves/course-details.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 5 Owen Leonard 2026-01-13 19:43:45 UTC
Created attachment 191390 [details] [review]
Bug 41570: Tidy kohaTable - course_reserves/course-reserves.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 6 Owen Leonard 2026-01-13 19:43:48 UTC
Created attachment 191391 [details] [review]
Bug 41570: course_reserves - auto tidy

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 7 Owen Leonard 2026-01-13 19:43:51 UTC
Created attachment 191392 [details] [review]
Bug 41570: (follow-up) i18n correction, course deletion fix

The template's i18n function, I18N.tnx, doesn't work with JavaScript
variables, so I've updated it to use the template variable.

I also found that I couldn't properly test the course deletion function
without fixing a problem which exists in main: The delete course button
didn't trigger the confirmation, and the event which was supposed to
trigger the confirmation was attached to the whole form.

The confirmation is now triggered on form submit.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>