From 437188f444e7b1563a268a0f643d1dcc94259e41 Mon Sep 17 00:00:00 2001 From: Jane Wagner Date: Tue, 16 Jun 2009 12:28:06 -0400 Subject: [PATCH] Revision to my earlier patch for displaying the user name on checked-out items My earlier patch (using the new syspref OPACShowCheckoutName mistakenly displayed the Koha borrower number instead of the patron barcode number in the OPAC display; this revises the script/template to use barcode. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +- opac/opac-detail.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 5ad188b325..70de3f9947 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -330,7 +330,7 @@ - Checked out to ID# + Checked out to Checked out diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index be8428d55f..679a48b6ee 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -238,6 +238,7 @@ foreach ( @$reviews ) { $_->{surname} = $borrowerData->{'surname'}; $_->{firstname} = $borrowerData->{'firstname'}; $_->{userid} = $borrowerData->{'userid'}; + $_->{cardnumber} = $borrowerData->{'cardnumber'}; $_->{datereviewed} = format_date($_->{datereviewed}); if ($borrowerData->{'borrowernumber'} eq $borrowernumber) { $_->{your_comment} = 1; -- 2.39.5