From aa2f3486f50eede84617be14dc0beb65079e81f9 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 3 Sep 2008 00:03:15 +0200 Subject: [PATCH] Displaying branchnames rather than branchcodes Signed-off-by: Galen Charlton --- opac/opac-suggestions.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 4001694249..23a8fcabfa 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -19,6 +19,7 @@ use strict; 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, -- 2.39.5