[Koha-patches] [PATCH] Displaying branchnames rather than branchcodes
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Sep 3 00:03:15 CEST 2008
---
opac/opac-suggestions.pl | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl
index e1535f5..deb9fe2 100755
--- a/opac/opac-suggestions.pl
+++ b/opac/opac-suggestions.pl
@@ -19,6 +19,7 @@ use strict;
require Exporter;
use CGI;
use C4::Auth; # get_template_and_user
+use C4::Branch;
use C4::Output;
use C4::Suggestions;
@@ -95,6 +96,7 @@ if ( $op eq "delete_confirm" ) {
my $suggestions_loop =
&SearchSuggestion( $borrowernumber, $author, $title, $publishercode, $status,
$suggestedbyme );
+map{ $_->{'branchcodesuggestedby'}=GetBranchInfo($_->{'branchcodesuggestedby'})->[0]->{'branchname'}} @$suggestions_loop;
$template->param(
suggestions_loop => $suggestions_loop,
title => $title,
--
1.5.4.3
More information about the Koha-patches
mailing list