@@ -, +, @@ uploads - Go to Tools -> Upload. - If necessary, upload multiple files with the same category. - Use the "Search uploads by category" form to find those uploads. - In the table of uploads, confirm that table settings and other DataTable controls work correctly, including the option to show the "Date added" column. - Go to Administration -> Table settings -> Tools -> upload. - Change the settings for the uploads table. - Return to Uploads and confirm that your changes are reflected in the display of the uploads table. --- admin/columns_settings.yml | 22 +++++++++++++++++++ .../prog/en/modules/tools/upload.tt | 8 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -1582,6 +1582,28 @@ modules: cannot_be_toggled: 1 cannot_be_modified: 1 + upload: + uploadresults: + columns: + - + columnname: filename + - + columnname: size + - + columnname: hashvalue + - + columnname: date + is_hidden: 1 + - + columnname: category + - + columnname: public + - + columnname: temporary + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 pos: pay: invoices: --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -1,6 +1,7 @@ [% USE raw %] [% USE Asset %] [% USE Koha %] +[% USE KohaDates %] [% USE TablesSettings %] [% USE AuthorisedValues %] [% SET footerjs = 1 %] @@ -197,6 +198,7 @@ Filename Size Hashvalue + Date added Category [% IF !plugin %]Public[% END %] [% IF !plugin %]Temporary[% END %] @@ -209,6 +211,7 @@ [% record.filename | html %] [% record.filesize | html %] [% record.hashvalue | html %] + [% record.dtcreated | $KohaDates %] [% AuthorisedValues.GetByCode( 'UPLOAD', record.uploadcategorycode ) | html %] @@ -451,8 +454,11 @@ [% END %] window.close(); } + var columns_settings = [% TablesSettings.GetColumns( 'tools', 'upload', 'uploadresults', 'json' ) | $raw %]; $(document).ready(function() { - KohaTable("uploadresults",{}); + KohaTable("uploadresults",{ + }, columns_settings); + [% IF msg %] ShowAlerts( [% msg | html %] ); [% END %] --