From df36b5aeb6f8601aae0e23558da98a9d6a1f0fd2 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 Signed-off-by: Jared Camins-Esakov --- 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 fb310d5279..3447454ce4 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 @@ -105,7 +105,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 ) %] 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