Bugzilla – Attachment 15797 Details for
Bug 9040
uninitialized value in concatenation error in Opac-detail.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9040 - uninitialized value in concatenation error in Opac-detail.tt
0001-Bug-9040-uninitialized-value-in-concatenation-erro.patch (text/plain), 3.80 KB, created by
Nuño López Ansótegui
on 2013-03-01 10:46:21 UTC
(
hide
)
Description:
Bug 9040 - uninitialized value in concatenation error in Opac-detail.tt
Filename:
MIME Type:
Creator:
Nuño López Ansótegui
Created:
2013-03-01 10:46:21 UTC
Size:
3.80 KB
patch
obsolete
>From 84d21ea70b0fcd0f3558f3ae556c67f7e2c2aacb Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Nu=C3=B1o=20L=C3=B3pez=20Ans=C3=B3tegui?= <nunyo@masmedios.com> >Date: Fri, 22 Feb 2013 09:56:06 +0100 >Subject: [PATCH] Bug 9040 - uninitialized value in concatenation error in Opac-detail.tt > >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 4 ++-- > opac/opac-detail.pl | 5 +++-- > 2 files changed, 5 insertions(+), 4 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..a685d17 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 ) %]<th id="item_copy">Copy</th>[% END %] > <th id="item_status">Status</th> > [% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %] >- <th id="item_datedue">Date due</th> >+ [% IF ( itemdata_datedue ) %]<th id="item_datedue">Date due</th>[% END %] > [% IF ( OPACShowBarcode ) %]<th>Barcode</th>[% END %] > [% IF holds_count.defined %] > <th>Item holds</th> >@@ -1480,7 +1480,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] > <td class="status">[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> > [% IF ( itemdata_itemnotes ) %]<td class="notes">[% ITEM_RESULT.itemnotes %]</td>[% END %] >- <td class="date_due">[% ITEM_RESULT.datedue | $KohaDates %]</td> >+ [% IF ( itemdata_datedue ) %]<td class="date_due">[% IF ITEM_RESULT.datedue %][% ITEM_RESULT.datedue | $KohaDates %]</td>[% END %] > [% IF ( OPACShowBarcode ) %]<td class="barcode">[% ITEM_RESULT.barcode %]</td>[% END %] > [% IF holds_count.defined || show_priority %] > <td class="holds_count"> >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index bb9cbd5..90a86f3 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -531,7 +531,7 @@ for my $itm (@items) { > > # get collection code description, too > my $ccode = $itm->{'ccode'}; >- $itm->{'ccode'} = $collections->{$ccode} if ( defined($collections) && exists( $collections->{$ccode} ) ); >+ $itm->{'ccode'} = $collections->{$ccode} if ( defined($ccode) && defined($collections) && exists( $collections->{$ccode} ) ); > my $copynumber = $itm->{'copynumber'}; > $itm->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumbers) && defined($copynumber) && exists( $copynumbers->{$copynumber} ) ); > if ( defined $itm->{'location'} ) { >@@ -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.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9040
:
15605
|
15748
|
15797
|
15799