Bug 29648: Course reserve detail - normal
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 16 Dec 2021 12:09:38 +0000 (13:09 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 27 Apr 2022 21:20:44 +0000 (11:20 -1000)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt

index 2fa35b1..e05b869 100644 (file)
@@ -643,6 +643,8 @@ modules:
 
     reserves:
       course_reserves_table:
+        default_display_length: 20
+        default_sort_order: 0
         columns:
             -
               columnname: title
index 9fec9e7..fbd03d4 100644 (file)
     [% INCLUDE 'datatables.inc' %]
     [% INCLUDE 'columns_settings.inc' %]
     <script>
-        var columns_settings = [% TablesSettings.GetColumns( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %];
+        var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %];
         $(document).ready(function(){
             var rtable = KohaTable("course_reserves_table", {
                 "sPaginationType": "full",
                 "bAutoWidth": false,
-            }, columns_settings );
+            }, table_settings );
 
             $(".delete_item").click(function(){
                 return confirmDelete(_("Are you sure you want to remove this item from the course?"));