Reimplemented fix for bug 5556, OPAC does not display the type of authority
authorOwen Leonard <oleonard@myacpl.org>
Thu, 30 Dec 2010 17:07:11 +0000 (12:07 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 3 Jan 2011 08:56:06 +0000 (21:56 +1300)
Formatting Janusz's suggested changes as a patch.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tmpl
opac/opac-authorities-home.pl

index 012ef9f..a87f162 100644 (file)
@@ -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>
index 104dff2..292d0a8 100755 (executable)
@@ -141,6 +141,7 @@ if ( $op eq "do_search" ) {
         to             => $to,
         numbers        => \@numbers,
         authtypecode   => $authtypecode,
+        authtypetext   => $authtypes->{$authtypecode}{'authtypetext'},
         isEDITORS      => $authtypecode eq 'EDITORS',
     );