Bug 15846: Move MARC Framework JavaScript into separate file
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Feb 2016 16:19:51 +0000 (11:19 -0500)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 24 Mar 2016 19:46:04 +0000 (19:46 +0000)
commit902ea66d247f08eb717f7e696781a3ec956c91f6
tree0b08582f058f332bac685dcd72f3a2de985bb9a6
parentb0bbace4dd8c19488110bf5c06817077abaa3f1c
 Bug 15846: Move MARC Framework JavaScript into separate file

The JavaScript embedded in the MARC framework template is not
dependent on template processing to such an extent that it can't
be safely moved to a separate file. This patch does so, adding
definition of a few translatable strings to the template.

To test, apply the patch and go to Administration -> MARC frameworks.

- The table of existing frameworks should be sortable.
- The "Export" link should trigger the export modal.
- The "Import" link should trigger the import modal.
  -- Clicking "Import" without selecting a file should trigger an alert.
  -- Selecting the wrong file type should trigger an alert.
  -- Importing a file of the correct type should trigger an overwrite
     warning ("Do you really want to import...?").
  -- A progress indicator should show during the import, with correct
     values for "Importing from" and "Importing to".
  -- Importing an incorrectly-formatted file of a correct type should
     trigger an alert, "Error importing the framework..."

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised. Export and Import options work properly

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/js/biblio_framework.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt