From 4d424fd4ef4ae47f03a05fbf3e1a67bcf6125cd1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 17 Dec 2010 10:34:59 -0500 Subject: [PATCH] Fix for Bug 3262 - OPAC needs syspref to show homebranch on detail page Revised version of Liz Rea's fix adding homebranch by default. This revision displays the homebranch name instead of branchcode. --- catalogue/detail.pl | 2 ++ .../prog/en/modules/catalogue/detail.tmpl | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index abf71ad..e32170c 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -139,6 +139,8 @@ my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw); my $authvalcode_items_damaged = GetAuthValCode('items.damaged', $fw); foreach my $item (@items) { + $item->{homebranch} = GetBranchName($item->{homebranch}); + # can place holds defaults to yes $norequests = 0 unless ( ( $item->{'notforloan'} > 0 ) || ( $item->{'itemnotforloan'} > 0 ) ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index db6fe31..d925eef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -215,7 +215,8 @@ function verify_images() { - + + @@ -242,7 +243,8 @@ function verify_images() { - +
Item typeLocationCurrent LocationHome Library Collection Call Number Status + -- 1.7.1