Bug 9261: (follow-up) QA improvements and GPL version change
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 13 Nov 2013 11:05:11 +0000 (12:05 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 15 Nov 2013 00:24:24 +0000 (00:24 +0000)
This patch:

- changes the GPL version from 2 to 3.
- uses the datatables.inc file
- removes the single pixel before and after the DT (modifying the sDom
  value).

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt
members/purchase-suggestions.pl

index c0344ac..ea34d50 100644 (file)
@@ -8,15 +8,14 @@
 </title>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
+[% INCLUDE 'datatables.inc' %]
 <script type="text/javascript">
     $(document).ready(function() {
         $("#suggestions").dataTable($.extend(true, {}, dataTablesDefaults, {
             'bPaginate': false,
             'bFilter': false,
             'bInfo': false,
+            'sDom': 't'
         } ));
     });
 </script>
@@ -44,7 +43,8 @@
                     <a class="btn" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="icon-plus"></i> New purchase suggestion</a>
                 </div>
 
-                <table id="suggestions">
+                [% IF suggestions %]
+                  <table id="suggestions">
                     <thead>
                         <tr>
                           <th>Summary</th>
                             </tr>
                         [% END %]
                     </tbody>
-                </table>
+                  </table>
+                [% ELSE %]
+                  There is no purchase suggestion for this patron.
+                [% END %]
             </div>
         </div>
     </div>
index 52feafe..d071425 100755 (executable)
@@ -1,21 +1,21 @@
 #!/usr/bin/perl
 
-# Copyright 2012 ByWater Solutions
-#
 # This file is part of Koha.
 #
-# Koha is free software; you can redistribute it and/or modify it under the
-# terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
+# Copyright 2012 ByWater Solutions
+#
+# Koha is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
 #
-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+# Koha is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
 #
-# You should have received a copy of the GNU General Public License along with
-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
-# Suite 330, Boston, MA  02111-1307 USA
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
 
 use Modern::Perl;