From 378e919059801d8074fc24fb038fe16af748910c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 20 Jun 2008 17:53:20 -0500 Subject: [PATCH] bug 2002: show item's in transit status in OPAC holds list If item is in transit, show that status in the OPAC user's hold list rather than "waiting to be pulled". Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 7 ++++++- opac/opac-user.pl | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl index 68d3b9e147..98d8cabf57 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl @@ -319,7 +319,12 @@ $.tablesorter.addParser({ Item in transit to " /> - Item waiting to be pulled + + Item in transit from since + + + Item waiting to be pulled + diff --git a/opac/opac-user.pl b/opac/opac-user.pl index f21869c65d..bbcebf7d84 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -221,6 +221,13 @@ foreach my $res (@reserves) { } # set found to 1 if reserve is waiting for patron pickup $res->{'found'} = 1 if $res->{'found'} eq 'W'; + } else { + my ($transfertwhen, $transfertfrom, $transfertto) = GetTransfers( $res->{'itemnumber'} ); + if ($transfertwhen) { + $res->{intransit} = 1; + $res->{datesent} = format_date($transfertwhen); + $res->{frombranch} = GetBranchName($transfertfrom); + } } push @waiting, $res; $wcount++; -- 2.39.5