From 8c43845a584f3df7e208ba476b58e7c140aa0b9f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 3 Jun 2024 14:14:50 +0000 Subject: [PATCH] Bug 33195: (follow-up) Add markup comments This patch adds comments to the template to highlight the markup structure. This patch should have no effect on the page's appearance or functionality. Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/modules/catalogue/detail.tt | 140 +++++++++--------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index ec603d8141..cdfb5b8b7f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -237,7 +237,7 @@ [%# .page-section %] [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %] - +
[% IF ( LocalCoverImages ) %] @@ -397,7 +397,7 @@ [% plugins_intranet_catalog_biblio_tab.title | html %] [% END %] - +
[% IF Koha.Preference('EnableItemGroups') %] @@ -417,7 +417,7 @@
- [% END %] + [% END # /IF EnableItemGroups %]
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] @@ -443,7 +443,7 @@ [% ELSE %]
No physical items for this record
[% END %] - [% END %] + [% END # /IF all_items_count %] [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %] [% END %] -
+
[% IF Koha.Preference('SeparateHoldings') %]
@@ -545,16 +545,16 @@ [% END %] - [% END %] + [% END # /IF subscription.latestserials %] [% IF ( CAN_user_serials ) %]

Subscription details

[% END %] - [% END %] -
-
- [% END %] + [% END # /FOREACH subscription %] + + + [% END # IF subscriptionsnumber %] [% IF Koha.Preference('AcquisitionDetails') %]
@@ -652,12 +652,12 @@ [% END %] - + [% ELSE %] There is no order for this bibliographic record. - [% END %] -
- [% END %] + [% END # /IF orders.count %] + + [% END # /IF AcquisitionDetails %] [% IF suggestions.count %]
@@ -729,11 +729,11 @@ [% END %] - [% END %] + [% END # /FOREACH suggestion %] - -
- [% END %] + + + [% END # /IF suggestions.count %] [% IF ( FRBRizeEditions ) %] [% IF ( XISBNS ) %] @@ -770,11 +770,11 @@ [% IF ( XISBN.size ) %], [% END %][% XISBN.size | html %] - [% END %] + [% END # /FOREACH XISBN %] - - [% END %] - [% END %] + + [% END # /IF XISBNS %] + [% END # /IF FRBRizeEditions %] [% IF ( ( Koha.Preference('CatalogConcerns') || Koha.Preference('OpacCatalogConcerns') ) && CAN_user_editcatalogue_edit_catalogue ) %]
@@ -794,8 +794,8 @@ -
- [% END %] + + [% END # /IF CatalogConcerns %] [% IF ( LocalCoverImages ) %]
@@ -812,9 +812,9 @@ Delete image [% END %] - [% END %] - [% END %] - + [% END # /IF image %] + [% END # /FOREACH image %] + [% ELSE # - No image passed JavaScript takes care %] No images have been uploaded for this bibliographic record yet. [% END %] @@ -822,8 +822,8 @@

Upload an image file: Upload

[% END %] -
- [% END %] + + [% END # /IF LocalCoverImages %] [% IF ( HTML5MediaEnabled ) %]
@@ -839,8 +839,8 @@ [% END %]

[% END %] -
- [% END %] + + [% END # /IF HTML5MediaEnabled %] [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
@@ -882,7 +882,7 @@ -
+ - + - + @@ -956,10 +956,10 @@ - - - - + + + + - - + + + - - + + + - - + + + - - + + + [% IF bundlesEnabled %] + + [% END %] [% IF ( Koha.Preference('CatalogConcerns') ) %] @@ -1282,7 +1282,7 @@ }); [% Asset.js("js/modals/display_ticket.js") | $raw %] - [% END %] + [% END # /IF CatalogConcerns %] [% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && ( normalized_isbn || normalized_upc ) ) %] @@ -1875,7 +1875,7 @@ bundle_changed = 0; }); // End bundle handling - [% END %] + [% END # /IF bundlesEnabled %] let items_tab_ids = [ 'holdings', 'otherholdings' ]; items_tab_ids.forEach( function( tab_id, index ) { @@ -1905,7 +1905,7 @@ button.addClass('active'); } }); - [% END %] + [% END # /IF bundlesEnabled %] }); [% IF Koha.Preference('AcquisitionDetails') %] @@ -2177,7 +2177,7 @@ $('#modal-item-group-unset').modal('hide'); }); - [% END %] + [% END # /IF EnableItemGroups %] @@ -2186,5 +2186,5 @@ [% PROCESS build_items_table_js biblio => biblio %] [% CoverImagePlugins | $raw %] -[% END %] +[% END # /jsinclude %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5