From ae9ab2c90bec6dbb9bdfe4ae966b326cf7316109 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Tue, 20 Mar 2012 14:42:21 +0100 Subject: [PATCH] Bug 7753: serials-home displays library name instead of code Signed-off-by: Paul Poulain --- koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt | 2 +- serials/serials-home.pl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt index bb0f9d381e..b4adea28db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt @@ -117,7 +117,7 @@ Serials updated : [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] - [% IF ( subscription.branchcode ) %][% subscription.branchcode %][% END %] + [% IF ( subscription.branchname ) %][% subscription.branchname %][% END %] [% IF ( subscription.callnumber ) %]([% subscription.callnumber %])[% END %] [% IF ( routing && CAN_user_serials_routing ) %] diff --git a/serials/serials-home.pl b/serials/serials-home.pl index 8a82df762e..031e3613a0 100755 --- a/serials/serials-home.pl +++ b/serials/serials-home.pl @@ -47,6 +47,7 @@ use C4::Auth; use C4::Serials; use C4::Output; use C4::Context; +use C4::Branch; my $query = new CGI; my $title = $query->param('title_filter'); @@ -99,6 +100,7 @@ if ($searched){ if ($routing) { for my $subscription ( @subscriptions) { $subscription->{routingedit} = check_routing( $subscription->{subscriptionid} ); + $subscription->{branchname} = GetBranchName ( $subscription->{branchcode} ); } } -- 2.39.5