From b5feabfc7464124b9881ebacb6cc1799f26c003e Mon Sep 17 00:00:00 2001 From: Timothy Alexis Vass Date: Mon, 4 May 2020 17:29:14 +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 | 166 +++++++++--------- 1 file changed, 82 insertions(+), 84 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 a177fdea16..21116e4df0 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 %] @@ -94,14 +94,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 %] @@ -112,7 +112,7 @@ [% END %] [% END %] - [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %] + [% IF ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) %] [% IF ( OPACURLOpenInNewWindow ) %] Cover image [% ELSE %] @@ -170,7 +170,7 @@ [% END %] - [% IF IDREF and MARCAUTHOR.unimarc3 %] + [% IF ( IDREF and MARCAUTHOR.unimarc3 ) %] IdRef [% END %] @@ -287,16 +287,16 @@