Bug 6212 : Fix for tags label showing with no tags
authorChris Cormack <chrisc@catalyst.net.nz>
Wed, 20 Apr 2011 21:39:38 +0000 (09:39 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 20 Apr 2011 21:39:38 +0000 (09:39 +1200)
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt

index e389758..31ae76a 100644 (file)
@@ -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>