From cffc8c0cc0450f2023c1451fcd33b830d31742c8 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Sun, 13 Mar 2016 21:57:58 +0000 Subject: [PATCH] Bug 16052: Putting buttons from after MARC records have been staged into a toolbar 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 more 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 --- .../prog/en/includes/stage-marc-records-toolbar.inc | 4 ++++ .../intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/stage-marc-records-toolbar.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/stage-marc-records-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/stage-marc-records-toolbar.inc new file mode 100644 index 0000000..410acdd --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/stage-marc-records-toolbar.inc @@ -0,0 +1,4 @@ +
+ Manage staged records + Stage more MARC records +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt index 67a07f4..69bcea5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt @@ -84,9 +84,13 @@ function cbUpload( status, fileid ) {
+[% IF ( uploadmarc ) %] +[% INCLUDE 'stage-marc-records-toolbar.inc' %] +[% END %] +

Stage MARC records for import

[% IF ( uploadmarc ) %] -

MARC staging results :

+

MARC staging results:

    [% SWITCH (record_type) %] [% CASE 'biblio' %] @@ -113,8 +117,6 @@ function cbUpload( status, fileid ) { [% IF ( label_batch ) %]
  • New label batch created: # [% label_batch %]
  • [% END %] -
  • Manage staged records
  • -
  • Back
[% ELSE %]
    -- 1.7.10.4