Bug 7478: fix template translation problem in catalogue_out.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
index 281fa66..1e8d011 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Branches %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Reports &rsaquo; Items with no checkouts</title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -20,7 +21,7 @@
        <h1>Items with no checkouts</h1>
        [% FOREACH mainloo IN mainloop %]
                [% IF ( mainloo.loopfilter ) %]
-                       <p>Filtered on</p>
+            <p>Filtered on:</p>
                        [% FOREACH loopfilte IN mainloo.loopfilter %]
                                [% IF ( loopfilte.err ) %]<p class="error">Error: 
                                [% ELSE %]<p>
                        </tr>
                                [% IF ( looptable.looprow ) %]
                                [% FOREACH loopro IN looptable.looprow %]
-                               [% DEFAULT
-                    loopro.itemcallnumber="No call number"
-                    loopro.barcode="No barcode"
-                                   loopro.title="NO TITLE"
-                                   loopro.author=""
-                               %]
                                    [% UNLESS ( loop.odd ) %]<tr class="highlight">
                                    [% ELSE %]<tr>[% END %]
                    
                                                <td>[% loop.count %]</td>
-                                               <td>[% loopro.itemcallnumber %]</td>
-                                               <td>[% loopro.barcode %]</td>
-                                               <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% loopro.title %]</a></p>
-                                                       [% loopro.author %]
-                                                       [% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
+                        <td>[% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber %][% ELSE %]No call number[% END %]</td>
+                        <td>[% IF ( loopro.barcode ) %][% loopro.barcode %][% ELSE %]No barcode[% END %]</td>
+                        <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% IF ( loopro.title ) %][% loopro.title %][% ELSE %]NO TITLE[% END %]</a> [% IF ( loopro.author ) %] by [% loopro.author %][% END %]</p>
+                            [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) %][% END %]
                                                </td>
                                        </tr>
                                [% END %]
                                        </select></li>
                </ol>
        </fieldset>
-       
+<!-- FIXME: Not implemented
        <fieldset class="rows">
        <legend>Output</legend>
 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
-       <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" disabled="disabled" /><!-- FIXME: Not implemented -->
+    <li><label for="outputfile">To a file: </label><input type="radio" name="output" value="file" id="outputfile" disabled="disabled" />
                <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
                <label class="inline" for="MIME">Into an application </label>
         <select name="MIME" id="MIME">
         [% CGIsepChoice %]
        </li>
 </ol>
-       </fieldset>
+    </fieldset> -->
 
        <fieldset class="action">
        <input type="submit" value="Submit" />
        <input type="hidden" name="report_name" value="[% report_name %]" />
-       <input type="hidden" name="do_it" value="1" />
+    <input type="hidden" name="do_it" value="1" />
+    <input type="hidden" name="output" value="screen" />
        </fieldset>
        </form>
 [% END %]