Bugzilla – Attachment 157511 Details for
Bug 34913
Upgrade DataTables from 1.10.18 to 1.13.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34913: Move item groups table to kohaTable
Bug-34913-Move-item-groups-table-to-kohaTable.patch (text/plain), 3.21 KB, created by
Jonathan Druart
on 2023-10-20 12:53:30 UTC
(
hide
)
Description:
Bug 34913: Move item groups table to kohaTable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-20 12:53:30 UTC
Size:
3.21 KB
patch
obsolete
>From 65059bac3ae6b90f02d5db7a7b3689dec20f9933 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 20 Oct 2023 14:53:13 +0200 >Subject: [PATCH] Bug 34913: Move item groups table to kohaTable > >--- > .../prog/en/modules/catalogue/detail.tt | 38 +++++++++---------- > 1 file changed, 17 insertions(+), 21 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 03792fe8b9a..6cff823afa3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -2216,22 +2216,24 @@ > > [% IF Koha.Preference('EnableItemGroups') %] > // Load item groups table >- var itemGroupsTable = KohaTable("items-group-table", { >- "autoWidth": false, >- "dom": '<"top pager"ilp>t<"bottom pager"ip>r', >- "columns": [ >+ var itemGroupsTable = $("#items-group-table").kohaTable({ >+ autoWidth: false, >+ dom: '<"top pager"ilp>t<"bottom pager"ip>r', >+ columns: [ > { >- "data": function( oObj ) { >- return oObj.display_order; >- }, >+ data: "display_order", >+ title: _("Display order"), >+ searchable: true, >+ orderable: true, > }, > { >- "data": function( oObj ) { >- return oObj.description; >- }, >+ data: "description", >+ title: _("Description"), >+ searchable: true, >+ orderable: true, > }, > { >- "data": function( oObj ) { >+ data: function( oObj ) { > [% IF CAN_user_editcatalogue_manage_item_groups %] > return `<button class='item-group-edit btn btn-default btn-xs' data-item-group-id='${oObj.item_group_id}'> > <i class="fa-solid fa-pencil" aria-hidden="true"></i> ${_("Edit")} >@@ -2244,18 +2246,12 @@ > return ""; > [% END %] > }, >+ searchable: false, >+ orderable: false, > }, > ], >- "paginate": false, >- "processing": true, >- "serverSide": false, >- "ajax": `/api/v1/biblios/${biblionumber}/item_groups?_per_page=-1`, >- "sAjaxDataProp": "", >- "fnServerData": function ( sSource, aoData, fnCallback ) { >- $.getJSON( sSource, aoData, function (json) { >- fnCallback(json) >- } ); >- }, >+ paginate: false, >+ ajax: { url: `/api/v1/biblios/${biblionumber}/item_groups?_per_page=-1` }, > }); > > // Create new item groups >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34913
:
156480
|
157511
|
157725
|
157726
|
157729
|
158229
|
161575