Bugzilla – Attachment 119907 Details for
Bug 28175
Usability improvements to uploads page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28175: Usability improvements to uploads page
Bug-28175-Usability-improvements-to-uploads-page.patch (text/plain), 5.00 KB, created by
Owen Leonard
on 2021-04-20 13:00:42 UTC
(
hide
)
Description:
Bug 28175: Usability improvements to uploads page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-04-20 13:00:42 UTC
Size:
5.00 KB
patch
obsolete
>From f058ebdd459c0bf9756ba8f99e544f02e94b1c83 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 20 Apr 2021 12:13:28 +0000 >Subject: [PATCH] Bug 28175: Usability improvements to uploads page > >This patch makes a variety of changes to the uploads page in order to >improve usability: > >- Add a toolbar with an "Upload" button so that it can be accessed from > the upload results or search results views >- On views other than the "main" view, add search forms to the sidebar > - The search form markup has been modified somewhat in order to make > it work well in both the sidebar and the main body of the page. >- Show the upload category description instead of the code >- Link the upload category in search results to a search for that > category > >The "enctype" attribute has been removed from the search forms because >it is unnecessary and causes form resubmission errors in some browsers >(Firefox at least). > >To test, apply the patch and make sure you have at least one entry under >Authorized values for the category UPLOAD. > >- Go to Tools -> Upload. >- Upload a file, adding a category as you do so. >- On the upload results page, test that the "Upload file" button > returns you to the main upload page. >- On the upload results or search results view, confirm that the "Search > uploads by category" and "Search uploads by name" forms work > correctly. >- When viewing upload or search results, confirm that the category > discription is shown instead of the code. Confirm that the category is > a link to a search for other files in that category. >--- > .../intranet-tmpl/prog/en/modules/tools/upload.tt | 36 ++++++++++++++++------ > 1 file changed, 27 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >index 6c402550bc..5e38b8f605 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -2,6 +2,7 @@ > [% USE Asset %] > [% USE Koha %] > [% USE TablesSettings %] >+[% USE AuthorisedValues %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > [% IF plugin %] >@@ -111,11 +112,11 @@ > > [% BLOCK form_browse %] > [% IF uploadcategories %] >- <form method="post" id="browsefile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data"> >+ <form method="post" id="browsefile" action="/cgi-bin/koha/tools/upload.pl"> > [% PROCESS plugin_pars %] > <input type="hidden" name="op" value="browse"/> >- <fieldset class="rows"> >- <legend>Search uploads by category</legend> >+ <fieldset class="brief"> >+ <h4>Search uploads by category</h4> > <ol> > <li> > <label for="browsecategory">Category: </label> >@@ -135,11 +136,11 @@ > [% END %] > > [% BLOCK form_search %] >- <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl" enctype="multipart/form-data"> >+ <form method="post" id="searchfile" action="/cgi-bin/koha/tools/upload.pl"> > [% PROCESS plugin_pars %] > <input type="hidden" name="op" value="search"/> >- <fieldset class="rows"> >- <legend>Search uploads by name or hashvalue</legend> >+ <fieldset class="brief"> >+ <h4>Search uploads by name or hashvalue</h4> > <ol> > <li> > <label for="term">Search term: </label> >@@ -208,7 +209,9 @@ > <td>[% record.filename | html %]</td> > <td>[% record.filesize | html %]</td> > <td>[% record.hashvalue | html %]</td> >- <td>[% record.uploadcategorycode | html %]</td> >+ <td> >+ <a href="/cgi-bin/koha/tools/upload.pl?op=browse&browsecategory=[% record.uploadcategorycode | uri %]">[% AuthorisedValues.GetByCode( 'UPLOAD', record.uploadcategorycode ) | html %]</a> >+ </td> > [% IF !plugin %] > <td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td> > <td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td> >@@ -261,10 +264,19 @@ > [% PROCESS submitter %] > [% IF mode == 'new' || mode == 'deleted' %] > [% PROCESS form_new %] >- [% PROCESS form_browse %] >- [% PROCESS form_search %] >+ <div class="row"> >+ <div class="col-sm-6"> >+ [% PROCESS form_browse %] >+ </div> >+ <div class="col-sm-6"> >+ [% PROCESS form_search %] >+ </div> >+ </div> > [% PROCESS closer %] > [% ELSIF mode == 'report' %] >+ <div id="toolbar" class="btn-toolbar"> >+ <a href="/cgi-bin/koha/tools/upload.pl" class="btn btn-default">Upload file</a> >+ </div> > [% IF uploads %] > <h3>Your request gave the following results:</h3> > [% PROCESS table_results %] >@@ -282,6 +294,12 @@ > > <div class="col-sm-2 col-sm-pull-10"> > <aside> >+ [% IF mode == 'report' %] >+ [% PROCESS form_browse %] >+ [% PROCESS form_search %] >+ [% END %] >+ >+ > [% INCLUDE 'tools-menu.inc' %] > </aside> > </div> <!-- /.col-sm-2.col-sm-pull-10 --> >-- >2.11.0
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 28175
:
119907
|
120025
|
120121
|
122302
|
122581
|
122582
|
122583