Removed toggle variable from shelves.tmpl. Added logic for __odd__. Variable
was not defined in shelves.pl or any of the C4/VirtualShelves files.
---
.../prog/en/modules/virtualshelves/shelves.tmpl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
index 6d9e0f2..95b8cad 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
@@ -314,7 +314,7 @@ function placeHold () {
<table>
<tr><th>List Name</th><th>Contents</th><th>Sort
by</th><th>Type</th><th>Options</th></tr>
<!-- TMPL_LOOP NAME="shelveslooppriv" -->
- <!-- TMPL_IF NAME="toggle" --><tr
class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
+ <!-- TMPL_UNLESS NAME="__odd__" --><tr
class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_UNLESS -->
<td><a href="shelves.pl?<!-- TMPL_IF NAME="showprivateshelves"
-->display=privateshelves&<!-- /TMPL_IF -->viewshelf=<!-- TMPL_VAR
NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
<td><!-- TMPL_VAR NAME="count" --> item(s)</td>
<td><!-- TMPL_VAR NAME="sortfield" --></td>
@@ -362,7 +362,7 @@ function placeHold () {
<table>
<tr><th>List Name</th><th>Contents</th><th>Sort
By</th><th>Type</th><th>Options</th></tr>
<!-- TMPL_LOOP NAME="shelvesloop" -->
- <!-- TMPL_IF NAME="toggle" --><tr
class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
+ <!-- TMPL_UNLESS NAME="__odd__" --><tr
class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_UNLESS -->
<td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf"
-->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></a></td>
<td><!-- TMPL_VAR NAME="count" --> item(s)</td>
<td><!-- TMPL_VAR NAME="sortfield" --></td>
--
1.5.6.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches