From 75762a63e940040d3d9bcc26566b0079000078a8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 16 Dec 2010 06:42:51 -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. Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- catalogue/detail.pl | 2 ++ .../intranet-tmpl/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 abf71adf9c..e32170c8c8 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 db6fe31706..d925eefef6 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 + -- 2.39.5