From 265c0ab79b0d9076b9e52f5dd8911b1a40c81d1d Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Sun, 13 Jan 2008 01:39:10 -0600 Subject: [PATCH] display notforloanvalue correctly Not displaying Available if itemnotforloan is set (& item is not for loan) The description of the status is enough (being repaired, excluded from loan, ...) Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Items.pm | 2 +- .../intranet-tmpl/prog/en/modules/catalogue/detail.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 1c6cf324aa..0c0077a0da 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1163,7 +1163,7 @@ sub GetItemsInfo { $sthnflstatus->execute( $authorised_valuecode, $data->{itemnotforloan} ); my ($lib) = $sthnflstatus->fetchrow; - $data->{notforloan} = $lib; + $data->{notforloanvalue} = $lib; } # my stack procedures 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 59f41e868d..a8e7120c8a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -194,7 +194,7 @@ function verify_images() { - + Not for loan () @@ -218,9 +218,9 @@ function verify_images() { - + Available - + -- 2.39.5