[Koha-patches] [PATCH] [SIGNED-OFF] Reimplemented fix for bug 5556, OPAC does not display the type of authority

Owen Leonard oleonard at myacpl.org
Thu Dec 30 18:07:11 CET 2010


Formatting Janusz's suggested changes as a patch.

Signed-off-by: Owen Leonard <oleonard at myacpl.org>
---
 .../modules/opac-authoritiessearchresultlist.tmpl  |    2 +-
 opac/opac-authorities-home.pl                      |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl
index 012ef9f..a87f162 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl
@@ -51,7 +51,7 @@
 					<td><a href="opac-authoritiesdetail.pl?authid=<!-- TMPL_VAR NAME="authid" -->"><!-- TMPL_VAR NAME="summary" --></a></td>
 
 						<td>
-					<!-- TMPL_VAR NAME="authtype" -->
+					<!-- TMPL_VAR NAME="authtypetext" -->
 						</td>
 					<!-- TMPL_UNLESS name="isEDITORS" -->
 						<td>
diff --git a/opac/opac-authorities-home.pl b/opac/opac-authorities-home.pl
index 104dff2..292d0a8 100755
--- a/opac/opac-authorities-home.pl
+++ b/opac/opac-authorities-home.pl
@@ -141,6 +141,7 @@ if ( $op eq "do_search" ) {
         to             => $to,
         numbers        => \@numbers,
         authtypecode   => $authtypecode,
+        authtypetext   => $authtypes->{$authtypecode}{'authtypetext'},
         isEDITORS      => $authtypecode eq 'EDITORS',
     );
 
-- 
1.7.3



More information about the Koha-patches mailing list