fixing singlebranchmode display issues
authorJoshua Ferraro <jmf@liblime.com>
Thu, 20 Mar 2008 13:58:52 +0000 (09:58 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 20 Mar 2008 14:01:07 +0000 (09:01 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl

index 5cfc276..dadd8d8 100644 (file)
         <input type="hidden" name="item_types_selected" value="1">
         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
         <h3>Place a hold on <span class="title"><!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></h3>
-            <p><strong>For:</strong> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_LOOP --></p>
+            <p><strong>For:</strong> <!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
+            <!-- TMPL_IF NAME="singleBranchMode" -->
+             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branchcode" -->"/>
+            <!-- /TMPL_IF -->
+            <!-- /TMPL_LOOP --></p>
             <p><strong>Priority:</strong><!-- TMPL_VAR Name="fixedRank" --> out of ?</p> 
+            <!-- TMPL_UNLESS NAME="singleBranchMode" -->
             <p>Pick up from:<select name="branch" id="branch">
                     <!-- TMPL_LOOP NAME="CGIbranch" -->
                         <!-- TMPL_IF name="selected" -->
@@ -80,6 +85,7 @@
                     <!-- /TMPL_LOOP -->
             </select>
             </p>
+            <!-- /TMPL_UNLESS -->
                        <!-- TMPL_IF NAME="forloan" -->
             <p> <label for="requestany">Place a hold on the next available copy </label>
             <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
             <tr>
                    <!-- TMPL_IF NAME="item-level_itypes" -->
                 <th>Hold</th>
-                <th>Item type</th>
+                <!-- TMPL_IF NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_IF -->
                 <!-- /TMPL_IF -->
                 <th>Barcode</th>
+                <!-- TMPL_UNLESS NAME="singleBranchMode" -->
                 <th>Home Library</th>
                 <th>Last Location</th>
-                <th>Call number</th>
+                <!-- /TMPL_UNLESS -->
+                <th>Call Number</th>
                 <th>Information</th>
             </tr>
         <!-- TMPL_LOOP Name="itemloop" -->
 
             <!-- TMPL_IF NAME="item-level_itypes" -->
             <td>
-            <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="itypename" -->" title="<!-- TMPL_VAR NAME="itypename" -->"/>
+            <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->">
             </td>
             <!-- /TMPL_IF -->
 
             <td>
                     <!-- TMPL_VAR NAME="barcode" -->
             </td>
+            <!-- TMPL_UNLESS NAME="singleBranchMode" -->
             <td>
             <!-- TMPL_VAR NAME="homebranchname" -->
             </td>
             <td>
             <!-- TMPL_VAR NAME="holdingbranchname" -->
             </td>
+            <!-- /TMPL_UNLESS -->
             <td>
             <!-- TMPL_VAR NAME="itemcallnumber" -->
             </td>
 <!-- /TMPL_LOOP --></td></tr>
 
 <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="singleBranchMode" -->
+        <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->">
+        <!-- TMPL_ELSE -->
         <tr><th>Pick up From: </th><td><!-- TMPL_VAR NAME="branchname" --><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"></td></tr>
+        <!-- /TMPL_IF -->
 </table>
 </div>
 <p><input type="submit" value="Finish and Place Reservation" class="submit" onclick="this.value='Please wait...'; this.disabled=true; this.form.submit();"></p>