From 7fcd4687baea4fea58253f882af308c7106b62d8 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Fri, 6 Jun 2025 20:10:09 +0000 Subject: [PATCH] Bug 40080: QA Follow-up - Code tidy-up based on QA tool feedback --- .../en/modules/opac-course-details.tt | 112 +++++++++--------- 1 file changed, 56 insertions(+), 56 deletions(-) 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 9af6cc41da..61a2eec1fa 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 @@ -60,64 +60,64 @@ [% IF ( course_reserves ) %] -
- - - - - - - - - - - - - - - - - - - - - [% FOREACH cr IN course_reserves %] +
+
Courses
TitleAuthorItem typeLocationCollectionCall numberCopy numberStatusDate dueNotesLink
+ + - - - - - - - - - - - - + + + + + + + + + + + + - [% END %] - -
Courses
[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %][% cr.biblio.author | html %][% ItemTypes.GetDescription( cr.item.itype ) | html %][% Branches.GetName( cr.item.holdingbranch ) | html %]
- [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %][% cr.item.itemcallnumber | html %][% cr.item.copynumber | html %] - [% IF cr.item %] - [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %] - [% END %] - [% cr.issue.date_due | $KohaDates as_due_date => 1 %][% IF ( cr.public_note ) %] - [% cr.public_note | scrub_html type => 'note' | $raw %] - [% ELSIF ( cr.item.itemnotes ) %] - [% cr.item.itemnotes | $raw %] - [% END %] - [% IF (cr.item.uri) %] - Item URI - [% ELSIF (cr.biblioitem.url) %] - Record URL - [% END %] - TitleAuthorItem typeLocationCollectionCall numberCopy numberStatusDate dueNotesLink
+ + + + [% FOREACH cr IN course_reserves %] + + [% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %] + [% cr.biblio.author | html %] + [% ItemTypes.GetDescription( cr.item.itype ) | html %] + [% Branches.GetName( cr.item.holdingbranch ) | html %]
+ [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %] + [% cr.item.itemcallnumber | html %] + [% cr.item.copynumber | html %] + + [% IF cr.item %] + [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %] + [% END %] + + [% cr.issue.date_due | $KohaDates as_due_date => 1 %] + [% IF ( cr.public_note ) %] + [% cr.public_note | scrub_html type => 'note' | $raw %] + [% ELSIF ( cr.item.itemnotes ) %] + [% cr.item.itemnotes | $raw %] + [% END %] + + [% IF (cr.item.uri) %] + Item URI + [% ELSIF (cr.biblioitem.url) %] + Record URL + [% END %] + + + + [% END %] + +
[% ELSE %]
-- 2.39.5