Bug 7478: fix template translation problem in catalogue_out.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / catalogue_out.tt
index 404892d..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' %]
@@ -5,7 +6,7 @@
        .sql {display: none;}
 </style>
 </head>
-<body>
+<body id="rep_catalogue_out" class="rep">
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.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>
@@ -35,7 +36,7 @@
                [% IF ( mainloo.looptables ) %]
                        <h3><a name="summary" id="summary"></a>Summary</h3>
                        <table id="summary_table">
-                               <tr><th>Group</th><th>Call Number Range</th><th>Number of Items Displayed</th><th>Total Items in Group</th>
+                <tr><th>Group</th><th>Call number range</th><th>Number of items displayed</th><th>Total items in group</th>
                                </tr>
                        [% FOREACH looptable IN mainloo.looptables %]
                                <tr><td><a href="#table[% looptable.coltitle %]">[% looptable.coltitle %]</a></td>
                <table>
                        <tr>
                                <th>#</th>
-                               <th>Call Number</th>
+                <th>Call number</th>
                                <th>Barcode</th>
-                               <th>Item Details</th>
+                <th>Item details</th>
                        </tr>
                                [% IF ( looptable.looprow ) %]
                                [% FOREACH loopro IN looptable.looprow %]
-                                       <tr[% UNLESS ( loop.odd ) %] class="highlight"[% END %]>
+                                   [% UNLESS ( loop.odd ) %]<tr class="highlight">
+                                   [% ELSE %]<tr>[% END %]
+                   
                                                <td>[% loop.count %]</td>
-                                               <td>[% DEFAULT loopro.itemcallnumber="No Call Number" %]</td>
-                                               <td>[% DEFAULT loopro.barcode="No Barcode" %]</td>
-                                               <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% DEFAULT loopro.title="NO TITLE" %]</a></p>
-                                                       [% DEFAULT 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 %]
                [% END %]
        [% END %]
 [% ELSE %]
-       <h1>Items with no checkouts</h1>
+    <h1>Items with no checkouts</h1>
        <form method="post" action="/cgi-bin/koha/reports/catalogue_out.pl">
        
        <fieldset class="rows">
                <ol>
                        <li><label for="branch">Library: </label>
        <select name="Filter" id="branch">
-               <option value="">Any Library</option>
+        <option value="">Any library</option>
     [% FOREACH branchloo IN branchloop %]
         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>  
      [% END %] 
     </select></li>
       <li> 
-        <label for="documenttype">Item Type: </label><select name="Filter" id="documenttype">
-               <option value="">Any Item Type</option>
+        <label for="documenttype">Item type: </label><select name="Filter" id="documenttype">
+        <option value="">Any item type</option>
     [% FOREACH itemtypeloo IN itemtypeloop %]
         <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>  
      [% END %] 
                <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
                                                <option value ="" selected="selected">None</option>
                                                <option value ="homebranch">Library</option>
-                                               <option value ="itype">Itemtype</option>
+                        <option value ="itype">Item type</option>
                                        </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 %]