Bug 19108: Fix Stored XSS in classsources.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / offline_circ / list.tt
index b155acc..2500456 100644 (file)
@@ -1,7 +1,7 @@
     [% INCLUDE "doc-head-open.inc" %]
     <title>Koha &rsaquo; Circulation &rsaquo; Offline circulation</title>
     [% INCLUDE "doc-head-close.inc" %]
-    <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
+    <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
     <script type="text/javascript">
     //<![CDATA[
         $(document).ready(function() {
                                <tr class="oc-[% operation.action %]">
                                    <td><input type="checkbox" name="operationid" value="[% operation.operationid %]" /></td>
                                        <td>[% operation.timestamp %]</td>
-                                       <td>[% operation.action %]</td>
+                            <td>
+                                [% SWITCH ( operation.action ) -%]
+                                    [%   CASE "issue" -%]
+                                        Check out
+                                    [%   CASE "return" -%]
+                                        Check in
+                                    [%   CASE "payment" -%]
+                                        Payment
+                                    [%   CASE # default case -%]
+                                        [% operation.action %]
+                                [% END -%]
+                            </td>
                                        <td>
                                            [% IF ( biblionumber ) %]
                                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% operation.biblionumber %]" title="[% operation.bibliotitle %]">[% operation.barcode %]</a>
 
         [% ELSE %]
 
-            <p>There is no pending offline operations.</p>
+            <p>There are no pending offline operations.</p>
 
         [% END %]