Bug 13744: Fix datatables paging on 'Holds to pull' report
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 21 Feb 2015 19:40:31 +0000 (20:40 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 7 Mar 2015 20:10:28 +0000 (21:10 +0100)
The paging of the datatables on the 'holds to pull' report
page is broken without this patch.

To test:
- Make sure that some holds are placed on available items
  in your installation
- Go to the circulation start page
- Open the 'holds to pull' report
- Verify that the patch fixes the paging on the result table

Also: Fixes "None" in the filter pull downs to be translatable.
Signed-off-by: Nicole <nicole@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt

index c596ab3..1cf144e 100644 (file)
@@ -14,7 +14,8 @@ $(document).ready(function() {
         { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
         { "sType": "title-string", "aTargets" : [ "title-string" ] },
         { "sType": "string", "aTargets": [ "string-sort" ] } //Target columns that use <br> separators and pull-down menus.
-    ]
+    ],
+    "sPaginationType": "full_numbers"
   }));
   holdst.fnAddFilters("filter");
   [%# add separateData function to cleanse jQuery select lists by breaking apart strings glued with BR tags and then de-duplicating any repeated library codes %]
@@ -36,7 +37,7 @@ $(document).ready(function() {
   [%# add SeparateData function into createSelect function, so that it does the createSelect on clean data %]
   function createSelect( data ) {
       data = separateData(data);
-      var r='<select style="width:99%"><option value="">None</option>', i, len=data.length;
+      var r='<select style="width:99%"><option value="">' + _("None") + '</option>', i, len=data.length;
       for ( i=0 ; i<len ; i++ ) {
           r += '<option value="'+data[i]+'">'+data[i]+'</option>';
       }