empty case for myopac/holds. use of quant for plural word in i18n.
authorsenator <lebbeous@esilibrary.com>
Mon, 21 Feb 2011 21:18:33 +0000 (16:18 -0500)
committersenator <lebbeous@esilibrary.com>
Mon, 21 Feb 2011 21:18:33 +0000 (16:18 -0500)
Open-ILS/web/templates/default/opac/myopac/holds.tt2
Open-ILS/web/templates/default/opac/parts/result/table.tt2

index bdda327..8babf82 100644 (file)
                 </td>
             </tr>
         </table>
+        [% IF ctx.holds.size < 1 %]
+        <div class="opac-auto-079">
+            <big><strong>[% l('No holds found.') %]</strong></big>
+        </div>
+        [% ELSE %]
         <table id="acct_holds_main_header" cellpadding='0' cellspacing='0'
             border='0' width="100%">
             <tr>
                 [% END %]
             </tbody>
         </table>
+        [% END %]
         </form>
     </div>
-    <div id='holds_hist_table' class="hide_me">testing...</div>
 
     <span id='myopac.holds.cancel.confirm' class='hide_me'>[% l("Are you sure you wish to cancel the selected holds?") %]</span>
     <span id='myopac.holds.freeze.confirm' class='hide_me'>[% l("Are you sure you wish to suspend the selected holds?  If an item has already been selected to fulfill the hold, it will not be suspended") %]</span>
index 64d3bbc..414c8ba 100644 (file)
                                                         </tr>
                                                     </table>
                                                     <div>
-                                                        [% l('[_1] of [_2] [_3] available',
-                                                            rec.copy_counts.available, rec.copy_counts.visible,
-                                                            rec.copy_counts.visible == 1 ? 'copy' : 'copies') %]
+                                                        [% l('[_1] of [quant,_2,copy,copies] available',
+                                                            rec.copy_counts.available, rec.copy_counts.visible) %]
                                                     </div>
                                                 </span>
                                                 <div class="hide_me">