Bugzilla – Attachment 912 Details for
Bug 2889
templates should not use [% IF ( loop.odd ) %]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for serials acqui-search-result
0013-Bug-2889-Removed-toggle-variable-from-Serials-vendo.patch (text/plain), 2.12 KB, created by
Chris Cormack
on 2009-07-23 03:55:00 UTC
(
hide
)
Description:
Patch for serials acqui-search-result
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-07-23 03:55:00 UTC
Size:
2.12 KB
patch
obsolete
>From ca62022d88aa5aa3221753056ac2e1a261de6fb2 Mon Sep 17 00:00:00 2001 >From: Garry Collum <gcollum@gmail.com> >Date: Wed, 22 Jul 2009 23:49:16 -0400 >Subject: [PATCH] Bug 2889: Removed toggle variable from Serials vendor search. >Content-Type: text/plain; charset="utf-8" > >Removed toggle variable from acqui-search-result.pl. Added highlighting using __odd__ to acqui-search-result.tmpl. >--- > .../en/modules/serials/acqui-search-result.tmpl | 6 +++++- > serials/acqui-search-result.pl | 8 -------- > 2 files changed, 5 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl >index 2e8717d..8ee1e13 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl >@@ -27,7 +27,11 @@ function GetIt(aqbooksellerid,name) > <th>Select</th> > </tr> > <!-- TMPL_LOOP name="loop_suppliers" --> >- <tr> >+ <!-- TMPL_UNLESS name="__odd__"> >+ <tr class="highlight"> >+ <!-- TMPL_ELSE --> >+ <tr> >+ <!-- /TMPL_UNLESS --> > <td><!-- TMPL_VAR name="name" --></td> > <td><a href="#" onclick="GetIt(<!-- TMPL_VAR NAME="aqbooksellerid" -->,'<!-- TMPL_VAR escape="URL" NAME="name" -->')">Choose</a></td> > </tr> >diff --git a/serials/acqui-search-result.pl b/serials/acqui-search-result.pl >index 6066bdd..4f410bd 100755 >--- a/serials/acqui-search-result.pl >+++ b/serials/acqui-search-result.pl >@@ -63,20 +63,12 @@ my @suppliers = GetBookSeller($supplier); > my $count = scalar @suppliers; > > #build result page >-my $toggle=0; > my @loop_suppliers; > for (my $i=0; $i<$count; $i++) { > my $orders = GetPendingOrders($suppliers[$i]->{'id'}); > my $ordcount = scalar @$orders; > > my %line; >- if ($toggle==0){ >- $line{even}=1; >- $toggle=1; >- } else { >- $line{even}=0; >- $toggle=0; >- } > $line{aqbooksellerid} =$suppliers[$i]->{'id'}; > $line{name} = $suppliers[$i]->{'name'}; > $line{active} = $suppliers[$i]->{'active'}; >-- >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 2889
:
911
|
912
|
913
|
914
|
2157
|
2306
|
2307
|
30071
|
30790
|
31834
|
31858
|
31859
|
31866
|
31867