Bugzilla – Attachment 168672 Details for
Bug 36496
Inventory results table needs an export option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36496: Add export option to inventory results table
Bug-36496-Add-export-option-to-inventory-results-t.patch (text/plain), 3.30 KB, created by
Lucas Gass (lukeg)
on 2024-07-09 16:27:11 UTC
(
hide
)
Description:
Bug 36496: Add export option to inventory results table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-07-09 16:27:11 UTC
Size:
3.30 KB
patch
obsolete
>From d079cfc0746db864fa478626583fe18069b6a531 Mon Sep 17 00:00:00 2001 >From: Eric Garcia <cubingguy714@gmail.com> >Date: Tue, 9 Jul 2024 16:04:39 +0000 >Subject: [PATCH] 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> >--- > admin/columns_settings.yml | 34 +++++++++++++++++++ > .../prog/en/modules/tools/inventory.tt | 7 ++-- > 2 files changed, 39 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 5999889ce1..da6fec4c6f 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -2272,6 +2272,40 @@ modules: > columnname: actions > cannot_be_toggled: 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_code >+ - >+ columnname: title >+ - >+ columnname: notforloan >+ - >+ columnname: lost >+ - >+ columnname: damaged >+ - >+ columnname: withdrawn >+ - >+ columnname: last_seen >+ - >+ columnname: problems >+ > pos: > pay: > invoices: >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 60c4c8e4ac..3614bdfcff 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -3,6 +3,7 @@ > [% USE AuthorisedValues %] > [% USE KohaDates %] > [% USE Branches %] >+[% USE TablesSettings %] > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >@@ -401,6 +402,7 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] > <script> > function checkForm() { > if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) { >@@ -453,7 +455,8 @@ > } > > $(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', > [% IF compareinv2barcd %] > // sort on callnumber >@@ -474,7 +477,7 @@ > openWindow(this.href,'marcview',800,600); > }); > } >- } )); >+ }, table_settings ); > > > $("#continuewithoutmarkingbutton").click(function(){ >-- >2.39.2
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 36496
:
168406
|
168671
|
168672
|
169568