From 4fc065269fd42be217881a3c9451f4aea0e04fb9 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 14 Apr 2025 20:15:56 +0000 Subject: [PATCH] Bug 39633: Use column names to get table settings 1. Cataloging > Inventory 2. Run the tool without uploaded barcodes 3. Table loads and you see all the DataTable controls ( Table settings, etc ) 4. Run the tool while uploading at least 1 barcode 5. No DataTable controls 6. APPLY PATCH 7. Try steps 1 -4 again, making sure everything now works. Signed-off-by: Sam --- .../prog/en/modules/tools/inventory.tt | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index 4b028bafde..2c57ed762f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -307,19 +307,19 @@ [% UNLESS uploadedbarcodesflag %] - Seen + Seen [% END %] - Barcode - Call number - Library - Collection - Title - Not for loan - Lost - Damaged - Withdrawn - Last seen - Problems + Barcode + Call number + Library + Collection + Title + Not for loan + Lost + Damaged + Withdrawn + Last seen + Problems @@ -462,9 +462,10 @@ var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %]; inventorydt = $("#inventoryt").kohaTable({ "pagingType": 'full_numbers', - [% IF compareinv2barcd %] + "bKohaColumnsUseNames": true, + [% IF uploadedbarcodesflag %] // sort on callnumber - "order": [[ 1, "asc" ]], + "order": [[ 2, "asc" ]], [% ELSE %] // first column contains checkboxes "columnDefs": [ -- 2.39.5