[Koha-patches] [PATCH] Fix for Bug 4035: Today's checkouts grouped with previous checkouts
Owen Leonard
oleonard at myacpl.org
Tue Jan 12 16:29:47 CET 2010
Creating separate variable to be output to the template so that
the original issuedate can be used in date comparison.
---
circ/circulation.pl | 2 +-
.../prog/en/modules/circ/circulation.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/circ/circulation.pl b/circ/circulation.pl
index 19df3bf..78fdc0d 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -454,7 +454,7 @@ if ($borrower) {
$it->{'itemtype'} = $itemtypeinfo->{'description'};
$it->{'itemtype_image'} = $itemtypeinfo->{'imageurl'};
$it->{'dd'} = format_date($it->{'date_due'});
- $it->{'issuedate'} = format_date($it->{'issuedate'});
+ $it->{'displaydate'} = format_date($it->{'issuedate'});
$it->{'od'} = ( $it->{'date_due'} lt $todaysdate ) ? 1 : 0 ;
($it->{'author'} eq '') and $it->{'author'} = ' ';
$it->{'renew_failed'} = $renew_failed{$it->{'itemnumber'}};
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
index 4ab1126..25eea7a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl
@@ -721,7 +721,7 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
<td>
<!-- TMPL_VAR NAME="itemtype" -->
</td>
- <td><!-- TMPL_VAR NAME="issuedate" --></td>
+ <td><!-- TMPL_VAR NAME="displaydate" --></td>
<td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
<td><!-- TMPL_VAR NAME="charge" --></td>
<td><!-- TMPL_VAR NAME="replacementprice" --></td>
--
1.6.3.3
More information about the Koha-patches
mailing list