http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2889 Summary: templates should use loop_context_vars __odd__ Product: Koha Version: HEAD Platform: PC OS/Version: All Status: NEW Severity: minor Priority: P3 Component: Templates AssignedTo: oleonard@myacpl.org ReportedBy: galen.charlton@liblime.com QAContact: koha-bugs@lists.koha.org CC: joe.atzberger@liblime.com When styling a table to use different shading for alternating rows, templates should test the H::T::Pro loop context variable __odd__ instead of checking the value of a toggle variable set by a script. For example: <!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS --> instead of <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --> To make this cleanup for a given script, both the script and the template should be modified. As of 2008-12-31, affected scripts are: acqui/spent.pl acqui/booksellers.pl acqui/parcel.pl admin/authorised_values.pl admin/aqbudget.pl admin/branches.pl admin/marc_subfields_structure.pl admin/authtypes.pl admin/auth_subfields_structure.pl admin/currency.pl admin/koha2marclinks.pl admin/letter.pl admin/itemtypes.pl admin/cities.pl admin/aqbookfund.pl admin/auth_tag_structure.pl admin/stopwords.pl admin/smart-rules.pl admin/marctagstructure.pl admin/z3950servers.pl admin/roadtype.pl admin/categorie.pl admin/biblio_framework.pl C4/SIP/ILS/Patron.pm cataloguing/addbooks.pl cataloguing/z3950_search.pl labels/pcard-member-search.pl members/boraccount.pl members/moremember.pl members/member.pl opac/opac-user.pl reports/reservereport.pl serials/distributedto.pl serials/acqui-search-result.pl tools/overduerules.pl ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.