Bug 16052: Putting buttons from after MARC records have been staged into a toolbar

EDIT: Incorporating Owen Leonard's changes from Comment 6

To test:
1) Go to Tools -> Stage MARC records for import
2) Upload any file and click Stage for import once it has uploaded
3) Confirm both links are now buttons in a toolbar and work as expected
4) Notice that 'Stage MARC records' (what was once the 'Back' button)
   now takes you back to stage-marc-records.pl instead of tools-home.pl
5) Also confirm that the space between results and colon (MARC staging
   results :) is gone

Sponsored-by: Catalyst IT
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Thank you, this is a great improvement.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Aleisha 2016-03-15 00:34:31 +00:00 committed by Brendan A Gallagher
parent 66c2c42f52
commit 4419dd5c3f
1 changed files with 7 additions and 2 deletions

View File

@ -84,6 +84,13 @@ function cbUpload( status, fileid ) {
<div id="yui-main">
<div class="yui-b">
[% IF ( uploadmarc ) %]
<div id="toolbar" class="btn-toolbar">
<a class="btn btn-small" href="/cgi-bin/koha/tools/stage-marc-import.pl"><i class="fa fa-plus"></i> Stage MARC records</a>
<a class="btn btn-small" href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% import_batch_id %]"><i class="fa fa-list-ul"></i> Manage staged records</a>
</div>
[% END %]
<h1>Stage MARC records for import</h1>
[% IF ( uploadmarc ) %]
<p>MARC staging results :</p>
@ -113,8 +120,6 @@ function cbUpload( status, fileid ) {
[% IF ( label_batch ) %]
<li>New label batch created: # [% label_batch %] </li>
[% END %]
<li><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% import_batch_id %]">Manage staged records</a></li>
<li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
</ul>
[% ELSE %]
<ul>