From 69a6c1236891cf1f762316bb8b26b3de6647a015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C3=B1o=20L=C3=B3pez=20Ans=C3=B3tegui?= Date: Fri, 22 Feb 2013 09:56:06 +0100 Subject: [PATCH] Bug 9040 - uninitialized value in concatenation error in Opac-detail.tt Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 4 ++-- opac/opac-detail.pl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index cd58cb5..485f426 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -1450,7 +1450,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( itemdata_copynumber ) %]Copy[% END %] Status [% IF ( itemdata_itemnotes ) %]Notes[% END %] - Date due + [% IF ( itemdata_datedue ) %]Date due[% END %] [% IF ( OPACShowBarcode ) %]Barcode[% END %] [% IF holds_count.defined %] Item holds @@ -1480,7 +1480,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% IF ( itemdata_copynumber ) %][% ITEM_RESULT.copynumber %][% END %] [% INCLUDE 'item-status.inc' item = ITEM_RESULT %] [% IF ( itemdata_itemnotes ) %][% ITEM_RESULT.itemnotes %][% END %] - [% ITEM_RESULT.datedue | $KohaDates %] + [% IF ( itemdata_datedue ) %][% ITEM_RESULT.datedue | $KohaDates %][% END %] [% IF ( OPACShowBarcode ) %][% ITEM_RESULT.barcode %][% END %] [% IF holds_count.defined || show_priority %] diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index bb9cbd5..5faa606 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -541,7 +541,7 @@ for my $itm (@items) { $itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} ); $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{'description'}; } - foreach (qw(ccode enumchron copynumber itemnotes uri)) { + foreach (qw(ccode enumchron copynumber itemnotes uri datedue)) { $itemfields{$_} = 1 if ($itm->{$_}); } @@ -610,6 +610,7 @@ my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($bib itemdata_uri => $itemfields{uri}, itemdata_copynumber => $itemfields{copynumber}, itemdata_itemnotes => $itemfields{itemnotes}, + itemdata_datedue => $itemfields{datedue}, authorised_value_images => $biblio_authorised_value_images, subtitle => $subtitle, OpacStarRatings => C4::Context->preference("OpacStarRatings"), -- 1.7.10.4