html indenting for readability & adding bgcolor for even records
authortipaul <tipaul>
Fri, 28 Nov 2003 14:53:16 +0000 (14:53 +0000)
committertipaul <tipaul>
Fri, 28 Nov 2003 14:53:16 +0000 (14:53 +0000)
koha-tmpl/opac-tmpl/default/en/opac-searchresults.tmpl
koha-tmpl/opac-tmpl/default/fr/opac-searchresults.tmpl

index d5ca11c..98df962 100644 (file)
@@ -27,9 +27,9 @@
     </TMPL_IF>
     <TMPL_LOOP NAME="numbers">
        <TMPL_IF NAME="highlight">
-           <img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>-highlight.gif> 
+           <img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>-highlight.gif>
        <TMPL_ELSE>
-           <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="startfrom"><TMPL_LOOP NAME="FORMINPUTS">&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>><img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>.gif border=0></a> 
+           <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="startfrom"><TMPL_LOOP NAME="FORMINPUTS">&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>><img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>.gif border=0></a>
        </TMPL_IF>
     </TMPL_LOOP>
     <TMPL_IF NAME="displaynext">
 <!-- Search Results Table -->
 <TMPL_IF NAME="numrecords">
 
-<!-- If we have a subject table -->
-    <TMPL_IF NAME="subjectsearch">
-    <table border=0 cellspacing=0 cellpadding=2>
-    <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
-    <th>Subject</th></tr>
-       <TMPL_LOOP NAME=SEARCH_RESULTS>
-       <tr>
-       <td><a href=/cgi-bin/koha/opac-searchresults.pl?&subjectitems=<TMPL_VAR NAME=subject ESCAPE=URL>><TMPL_VAR NAME=subject></a></td>
-       </tr>
-       </TMPL_LOOP>
-    <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif><td colspan=4>
-    &nbsp;</td></tr>
-    </table>
-    
-<!-- Else we have a list of items -->    
-    <TMPL_ELSE>
-
-
-    <table border=0 cellspacing=0 cellpadding=2 width=90%>
-    <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
-           <th align=left>Title</th><th align=left>Author</th><th>&copy;</th><th>Item Count</th><th>Location</th><th>&nbsp</th>
-    </tr>
-
-
-
-<!-- Actual Search Results -->
-
-    <TMPL_LOOP NAME="SEARCH_RESULTS">
-      <tr>
-      <td><a href=/cgi-bin/koha/opac-detail.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>><TMPL_VAR NAME="title"></a></td>
-      <td><a href=/cgi-bin/koha/opac-searchresults.pl?author=<TMPL_VAR NAME="author" ESCAPE=URL>><TMPL_VAR NAME="author"></a></td>
-      <td align=center> <TMPL_VAR NAME="copyrightdate"> </td>
-      <td align=center> <TMPL_VAR NAME="itemcount"> </td>
-      <td> <TMPL_VAR NAME="location"> </td>
-      <td>
-<TMPL_UNLESS NAME="norequests"><a href=/cgi-bin/koha/opac-reserve.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>>Request</a>
-<TMPL_ELSE>
-Not Reservable
-</TMPL_UNLESS>
-</td> 
-      </tr>
-    </TMPL_LOOP>
-
-
-
-    <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif><td colspan=6>
-       <table border=0 cellpadding=0 cellspacing=0 width=100%>
-       <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif><td align=left>
-       <TMPL_IF NAME="displayprev">
-           <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="prevstartfrom"><TMPL_LOOP NAME=FORMINPUTS>&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>>Previous Records</a>
+       <!-- If we have a subject table -->
+               <TMPL_IF NAME="subjectsearch">
+               <table border=0 cellspacing=0 cellpadding=2>
+                       <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
+                               <th>Subject</th>
+                       </tr>
+                       <TMPL_LOOP NAME=SEARCH_RESULTS>
+                               <tr>
+                                       <td><a href=/cgi-bin/koha/opac-searchresults.pl?&subjectitems=<TMPL_VAR NAME=subject ESCAPE=URL>><TMPL_VAR NAME=subject></a></td>
+                               </tr>
+                       </TMPL_LOOP>
+                       <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
+                               <td colspan=4>
+                                       &nbsp;
+                               </td>
+                       </tr>
+               </table>
+
+       <!-- Else we have a list of items -->
        <TMPL_ELSE>
-           &nbsp;
-       </TMPL_IF>
 
 
-       </td><td align=right>
-       <TMPL_IF NAME="displaynext">
-           <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="nextstartfrom"><TMPL_LOOP NAME=FORMINPUTS>&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>>Next Records</a>
-       <TMPL_ELSE>
-           &nbsp;
+       <table border=0 cellspacing=0 cellpadding=2 width=90%>
+       <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
+               <th align=left>Title</th>
+               <th align=left>Author</th>
+               <th>&copy;</th>
+               <th>Item Count</th>
+               <th>Location</th>
+               <th>&nbsp</th>
+       </tr>
+
+
+       <!-- Actual Search Results -->
+               <TMPL_LOOP NAME="SEARCH_RESULTS">
+                       <tr>
+                               <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><a href=/cgi-bin/koha/opac-detail.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>><TMPL_VAR NAME="title"></a></td>
+                               <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><a href=/cgi-bin/koha/opac-searchresults.pl?author=<TMPL_VAR NAME="author" ESCAPE=URL>><TMPL_VAR NAME="author"></a></td>
+                               <td  <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF> align=center> <TMPL_VAR NAME="copyrightdate"> </td>
+                               <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF> align=center> <TMPL_VAR NAME="itemcount"> </td>
+                               <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>> <TMPL_VAR NAME="location"> </td>
+                               <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>>
+                                       <TMPL_UNLESS NAME="norequests">
+                                               <a href=/cgi-bin/koha/opac-reserve.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>>Request</a>
+                                       <TMPL_ELSE>
+                                               Not Reservable
+                                       </TMPL_UNLESS>
+                               </td>
+                       </tr>
+               </TMPL_LOOP>
+
+
+               <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
+                       <td colspan=6>
+                       <table border=0 cellpadding=0 cellspacing=0 width=100%>
+                               <tr bgcolor=#99cccc background=<TMPL_VAR NAME="themelang">/images/background-opac.gif>
+                                       <td align=left>
+                                               <TMPL_IF NAME="displayprev">
+                                                       <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="prevstartfrom"><TMPL_LOOP NAME=FORMINPUTS>&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>>Previous Records</a>
+                                               <TMPL_ELSE>
+                                                       &nbsp;
+                                               </TMPL_IF>
+                                       </td>
+                                       <td align=right>
+                                               <TMPL_IF NAME="displaynext">
+                                                       <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="nextstartfrom"><TMPL_LOOP NAME=FORMINPUTS>&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>>Next Records</a>
+                                               <TMPL_ELSE>
+                                                       &nbsp;
+                                               </TMPL_IF>
+                                       </td>
+                               </tr>
+                       </table>
+                       </td>
+               </tr>
+               </table>
        </TMPL_IF>
-       </td></tr>
-       </table>
-    </td></tr>
-    </table>
-    </TMPL_IF>
 
-    <br>
-    Results <TMPL_VAR NAME="startfrom"> through <TMPL_VAR NAME="endat"> of <TMPL_VAR NAME="numrecords"> records.
-    <hr>
+       <br>
+       Results <TMPL_VAR NAME="startfrom"> through <TMPL_VAR NAME="endat"> of <TMPL_VAR NAME="numrecords"> records.
+       <hr>
 
 
 <TMPL_ELSE>
-Sorry, there were no results <br>
+       Sorry, there were no results <br>
 </TMPL_IF>
-    Try another <a href=/cgi-bin/koha/opac-search.pl>search</a>
-
 
+Try another <a href=/cgi-bin/koha/opac-search.pl>search</a>
 <TMPL_INCLUDE NAME="opac-bottom.inc">
index 4d45a9e..83e6978 100755 (executable)
@@ -19,7 +19,7 @@
     </TMPL_IF>
     <TMPL_LOOP NAME="numbers">
        <TMPL_IF NAME="highlight">
-           <img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>-highlight.gif> 
+           <img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>-highlight.gif>
        <TMPL_ELSE>
            <a href=/cgi-bin/koha/opac-searchresults.pl?startfrom=<TMPL_VAR NAME="startfrom"><TMPL_LOOP NAME="FORMINPUTS">&<TMPL_VAR NAME="field">=<TMPL_VAR NAME="value" ESCAPE=URL></TMPL_LOOP>><img src=<TMPL_VAR NAME="themelang">/images/numbers/<TMPL_VAR NAME=number>.gif border=0></a> 
        </TMPL_IF>
@@ -60,7 +60,7 @@
            <th align=left>Titre</th>
            <th align=left>Auteur</th>
            <th>Ann&eacute;e</th>
-           <th>Nbre d'exemplaires</th>
+           <th>Nbre</th>
            <th>Localisation</th>
            <th>Cote</th>
            <th>&nbsp</th>
 
     <TMPL_LOOP NAME="SEARCH_RESULTS">
       <tr>
-      <td><a href=/cgi-bin/koha/opac-detail.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>><TMPL_VAR NAME="title"></a></td>
-      <td><a href=/cgi-bin/koha/opac-searchresults.pl?author=<TMPL_VAR NAME="author" ESCAPE=URL>><TMPL_VAR NAME="author"></a></td>
-      <td align=center> <TMPL_VAR NAME="copyrightdate"> </td>
-      <td align=center> <TMPL_VAR NAME="itemcount"> </td>
-      <td> <TMPL_VAR NAME="location"> </td>
-      <td><TMPL_VAR name="classification"> <TMPL_VAR name="dewey"></td>
-      <td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><a href=/cgi-bin/koha/opac-detail.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>><TMPL_VAR NAME="title"></a></td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><a href=/cgi-bin/koha/opac-searchresults.pl?author=<TMPL_VAR NAME="author" ESCAPE=URL>><TMPL_VAR NAME="author"></a></td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF> align=center> <TMPL_VAR NAME="copyrightdate"> </td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF> align=center> <TMPL_VAR NAME="itemcount"> </td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><TMPL_VAR NAME="location"></td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>><TMPL_VAR name="classification"><TMPL_VAR name="dewey"></td>
+      <td <TMPL_IF name="even">bgcolor='#ffffcc'</TMPL_IF>>
 <TMPL_UNLESS NAME="norequests"><a href=/cgi-bin/koha/opac-reserve.pl?bib=<TMPL_VAR NAME="biblionumber" ESCAPE=URL>>R&eacute;servation</a>
 <TMPL_ELSE>
 Non r&eacute;servable