Bug 36496: Add export option to inventory results table

To test:
1. Apply patch and restart_all
2. Cataloging -> Inventory -> Submit
3. In the inventory report notice options to export at the top of the table

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>

Updated column name from collection_code to collection in table settings.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Eric Garcia 2024-07-09 16:04:39 +00:00 committed by Katrin Fischer
parent 91095d93ef
commit 64bdbfe70a
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 39 additions and 2 deletions

View file

@ -2276,6 +2276,40 @@ modules:
columnname: actions columnname: actions
cannot_be_toggled: 1 cannot_be_toggled: 1
cannot_be_modified: 1 cannot_be_modified: 1
inventory:
inventoryt:
default_display_length: 20
columns:
-
columnname: seen
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: barcode
-
columnname: call_number
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: library
-
columnname: collection
-
columnname: title
-
columnname: notforloan
-
columnname: lost
-
columnname: damaged
-
columnname: withdrawn
-
columnname: last_seen
-
columnname: problems
pos: pos:
pay: pay:
invoices: invoices:

View file

@ -3,6 +3,7 @@
[% USE AuthorisedValues %] [% USE AuthorisedValues %]
[% USE KohaDates %] [% USE KohaDates %]
[% USE Branches %] [% USE Branches %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %] [% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %] [% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'doc-head-open.inc' %]
@ -401,6 +402,7 @@
[% MACRO jsinclude BLOCK %] [% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %] [% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %] [% INCLUDE 'calendar.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script> <script>
function checkForm() { function checkForm() {
if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) { if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) {
@ -453,7 +455,8 @@
} }
$(document).ready(function(){ $(document).ready(function(){
inventorydt = $('#inventoryt').dataTable($.extend(true, {}, dataTablesDefaults, { var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %];
inventorydt = KohaTable("inventoryt", {
"pagingType": 'full_numbers', "pagingType": 'full_numbers',
[% IF compareinv2barcd %] [% IF compareinv2barcd %]
// sort on callnumber // sort on callnumber
@ -474,7 +477,7 @@
openWindow(this.href,'marcview',800,600); openWindow(this.href,'marcview',800,600);
}); });
} }
} )); }, table_settings );
$("#continuewithoutmarkingbutton").click(function(){ $("#continuewithoutmarkingbutton").click(function(){