From 1d49315432efba0ade0e6ea4eefd30c2c674e63e Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 13 Sep 2006 16:34:28 +0000 Subject: [PATCH] fix for #1066 : Intranet detail screen shows 'on issue to' for waiting items I've added a reservestatus TMPL_VAR that can be used to show reserve status in a specific area. I'm not 100% happy with this fix, because it's still untranslatable ("waiting" is hardcoded). --- C4/Search.pm | 7 ++++--- koha-tmpl/intranet-tmpl/default/en/catalogue/detail.tmpl | 5 +++-- koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 6dba9983ad..dfb59019df 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1338,9 +1338,10 @@ sub ItemInfo { if ($datedue eq ''){ # $datedue="Available"; my ($restype,$reserves)=C4::Reserves2::CheckReserves($data->{'itemnumber'}); - if ($restype) { - $datedue=$restype; - } + $data->{reservestatus} = $restype; +# if ($restype) { +# $datedue=$restype; +# } } $isth->finish; #get branch information..... diff --git a/koha-tmpl/intranet-tmpl/default/en/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/default/en/catalogue/detail.tmpl index 96b26b1ae3..b45859a211 100644 --- a/koha-tmpl/intranet-tmpl/default/en/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/catalogue/detail.tmpl @@ -141,7 +141,7 @@ - + On issue to "> @@ -155,7 +155,8 @@ - + + Reserve &item=&bib=&bi="> diff --git a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl index 0b90f9b123..3cc678244b 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-detail.tmpl @@ -137,7 +137,7 @@ - + On loan @@ -147,7 +147,8 @@ - + + Reserve -- 2.39.5