Bug 10691: (follow-up) replace HTML comments with TT contents
authorGalen Charlton <gmc@esilibrary.com>
Thu, 16 Jan 2014 22:44:25 +0000 (22:44 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 16 Jan 2014 22:44:25 +0000 (22:44 +0000)
Comments on the usage of Template Toolkit blocks don't need
to appear in the rendered HTML, so this patch converts HTML
comments to TT comments and thereby saves a tiny amount of
bandwidth.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc
koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc

index 7d96264..c784801 100644 (file)
@@ -1,11 +1,11 @@
 [% BLOCK showreference %]
-<!--
+[%#
     Parameters:
     heading: the heading itself
     linkType: currently 'seefrom' or 'seealso', controls the label for the entry
     type:
     authid: if it is a linked authority, its authid
--->
+%]
     [% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
     [% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
 
index 6a9f9d0..5a88ca2 100644 (file)
@@ -1,11 +1,11 @@
 [% BLOCK showreference %]
-<!--
+[%#
     Parameters:
     heading: the heading itself
     linkType: currently 'seefrom' or 'seealso', controls the label for the entry
     type:
     authid: if it is a linked authority, its authid
--->
+%]
     [% SET authidurl = '/cgi-bin/koha/opac-authoritiesdetail.pl?authid=' %]
     [% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_or=and&orderby=HeadingAsc&value=' %]
     [% IF marcflavour == 'UNIMARC' %]
index dcd2efc..a6acc09 100644 (file)
@@ -1,11 +1,11 @@
 [% BLOCK showreference %]
-<!--
+[%#
     Parameters:
     heading: the heading itself
     linkType: currently 'seefrom' or 'seealso', controls the label for the entry
     type:
     authid: if it is a linked authority, its authid
--->
+%]
     [% SET authidurl = '/cgi-bin/koha/opac-authoritiesdetail.pl?authid=' %]
     [% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_or=and&orderby=HeadingAsc&value=' %]
     [% IF marcflavour == 'UNIMARC' %]