From 1f79886b4735df3bf81ad8571c30bbaecc8a69c9 Mon Sep 17 00:00:00 2001 From: Timothy Alexis Vass Date: Mon, 4 May 2020 15:51:35 +0200 Subject: [PATCH] Bug 25304: Some of the markup needs to be corrected To test: 1) Open an item in OPAC and see if everything works as it should. --- .../bootstrap/en/modules/opac-detail.tt | 147 +++++++++--------- 1 file changed, 73 insertions(+), 74 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 5966d1bf9d..b51d86d235 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -8,7 +8,7 @@ [% USE AuthorisedValues %] [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %] [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %] -[% IF Koha.Preference('AmazonAssocTag') %] +[% IF ( Koha.Preference('AmazonAssocTag') ) %] [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %] [% ELSE %] [% AmazonAssocTag = '' %] @@ -17,11 +17,11 @@ [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] [% ShowCourseReservesHeader = 0 %] -[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %] +[% IF ( Koha.Preference( 'UseCourseReserves' ) == 1 ) %] [% FOREACH ITEM_RESULT IN itemloop %] - [% IF ITEM_RESULT.course_reserves %] + [% IF ( ITEM_RESULT.course_reserves ) %] [% FOREACH r IN ITEM_RESULT.course_reserves %] - [% IF r.course.enabled == 'yes' %] + [% IF ( r.course.enabled == 'yes' ) %] [% ShowCourseReservesHeader = 1 %] [% END %] [% END %] @@ -88,14 +88,14 @@
[% END %] - [% IF OpenLibraryCovers %] + [% IF ( OpenLibraryCovers ) %]
[% END %] [% bt_id = ( normalized_upc || normalized_isbn ) %] [% IF ( BakerTaylorEnabled && bt_id ) %] - [% IF BakerTaylorBookstoreURL %] + [% IF ( BakerTaylorBookstoreURL ) %] [% IF ( OPACURLOpenInNewWindow ) %] See Baker & Taylor [% ELSE %] @@ -106,7 +106,7 @@ [% END %] [% END %] - [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] + [% IF ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) %] [% IF ( OPACURLOpenInNewWindow ) %] Cover image [% ELSE %] @@ -164,7 +164,7 @@ [% END %] - [% IF IDREF and MARCAUTHOR.unimarc3 %] + [% IF ( IDREF and MARCAUTHOR.unimarc3 ) %] IdRef [% END %] @@ -281,16 +281,16 @@