[Koha-patches] [PATCH] Bug 6212 : Fix for tags label showing with no tags

Chris Cormack chrisc at catalyst.net.nz
Wed Apr 20 23:44:13 CEST 2011


---
 .../opac-tmpl/prog/en/modules/opac-results.tt      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
index e389758..31ae76a 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt
@@ -479,7 +479,7 @@ $(document).ready(function(){
 				[% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
 				[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
                                 [% IF ( TagsShowOnList ) %]
-                                [% IF ( SEARCH_RESULT.TagLoop ) %]
+                                [% IF ( SEARCH_RESULT.TagLoop.size ) %]
                                     <div class="results_summary">
                                         <span class="label">Tags:</span>
                                         <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&amp;q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
-- 
1.7.1



More information about the Koha-patches mailing list