[Koha-patches] [PATCH] Bug 6187 : Fixing template issue with opac-authoritesdetail.tt

Chris Cormack chrisc at catalyst.net.nz
Thu Apr 14 05:25:28 CEST 2011


---
 .../prog/en/modules/opac-authoritiesdetail.tt      |    6 +++---
 opac/opac-authoritiesdetail.pl                     |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiesdetail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiesdetail.tt
index a783511..02dfc25 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiesdetail.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiesdetail.tt
@@ -62,10 +62,10 @@ function showChildren(mynumber) {
 [% END %]
 <h1>Entry [% authtypetext %]</h1>
 	<p>Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an">[% count %] records</a></p>
-        [% FOREACH 0X IN 0XX %]
-        <p><b>[% 0X.tag %]</b></p>
+        [% FOREACH Tag0X IN Tab0XX %]
+        <p><b>[% Tag0X.tag %]</b></p>
         <ul>
-        [% FOREACH subfiel IN 0X.subfield %]
+        [% FOREACH subfiel IN Tag.0X.subfield %]
                 <p><b>[% subfiel.marc_lib %]:</b> [% subfiel.marc_value %]</p>
             [% END %]
         </ul>
diff --git a/opac/opac-authoritiesdetail.pl b/opac/opac-authoritiesdetail.pl
index 066a821..27ca8cc 100755
--- a/opac/opac-authoritiesdetail.pl
+++ b/opac/opac-authoritiesdetail.pl
@@ -168,7 +168,7 @@ foreach my $field (@fields) {
         push( @loop_data, \%tag_data );
     }
 }
-$template->param( "0XX" => \@loop_data );
+$template->param( "Tab0XX" => \@loop_data );
 
 my $authtypes = getauthtypes;
 my @authtypesloop;
-- 
1.5.6.5



More information about the Koha-patches mailing list