Koha/admin
Salvador Zaragoza Rubio 689bc19154 Bug 5478 - Automate MARC framework import/export
Module to Import/Export a Framework structure to CSV/Excel-xml/ODS/SQL in Intranet Administration - MARC Frameworks section.
    There are two new links: "Export" to export to a format; and "Import" to import from a file.
    The data exported/imported is the one stored in the MySQL tables marc_tag_structure, marc_subfield_structure.

    Exported works as follows:
    1) CSV: As this format only allows one worksheet, the data from the tables is splitted with a row with #-# cells or with the
    names of the fields of the next MySQL table. Each row has as much cells as fields has the MySQL table. The first row contains the
    field names, the remaining holds the data.
    2) Excel: Excel xml 2003 format. Each MySQL table has its own worksheet in the spreadsheet. Rows and cells data as CSV.
    3) ODS: OpenDocument Spreadsheet compressed format, creates a temporary directory to generate the files needed to create the zip file.
    Each MySQL table has its own worksheet in the spreadsheet. Rows and cells data as CSV.
    4) SQL: Text file, the first row for each table is a delete and the remaining are inserts.

    Importing reads the rows from the spreadsheet/text-file as follows:
    1) CSV: Each row inserts or updates the associated MySQL table for this framework. At the end of the importing for a MySQL table, deletes the rows in the database that don't possess a correspondence with the spreadsheet.
    2) Excel: Imports each worksheet to the associated MySQL table. Works as the CSV for each worksheet.
    3) ODS: Creates a temporary directory to decompress and read the content.xml. This file has the data needed to import.
    Works as the CSV for each worksheet.
    4) Executes the SQL file.
    If the file imported has a different frameworkcode that the framework importing, the framecode is changed along the process.

    The Csv format will be the default.
    It uses perl module Archive::Zip or zip/unzip system command to process ODS files.
    To parse the sql files when importing it uses SQL::Statement or homemade parsing.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-01 21:17:33 +13:00
..
admin-home.pl Bug 2505: Enabled warnings in admin-home.pl and roadtype.pl. 2009-09-06 09:13:14 -04:00
aqbudget_owner_search.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
aqbudgetperiods.pl Bug 4500 - remove commas from price formatting 2010-12-12 20:16:06 +13:00
aqbudgets.pl Fix for Bug 4913 - Budget pages should show currency name instead of symbol 2010-11-15 15:13:55 +13:00
aqcontract.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
aqplan.pl Fix for Bug 4913 - Budget pages should show currency name instead of symbol 2010-11-15 15:13:55 +13:00
auth_subfields_structure.pl Bug 5462: modified intranet scripts to match templates 2011-02-03 09:57:24 +00:00
auth_tag_structure.pl Use placeholders in sql 2011-02-28 08:41:38 +13:00
authorised_values.pl Bug 5462: more dash fixing for variable names within scripts 2011-02-03 09:57:45 +00:00
authtypes.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
biblio_framework.pl Fix for Bug 4424, MARC Framework deletion incorrectly reports usage count 2010-04-29 20:59:29 -04:00
branch_transfer_limits.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
branches.pl Bug 5462: modified intranet scripts to match templates 2011-02-03 09:57:24 +00:00
categorie.pl Bug 5547: Hide Lost Items dev 2011-03-30 20:20:05 +13:00
check_budget_parent.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
check_parent_total.pl bug4438/MT5496 budget Exceeds total allocation 2011-03-14 20:45:58 +13:00
checkmarc.pl Bug 3768 (Bibliographic Framework Test) 2010-05-17 08:26:21 -04:00
cities.pl Fix for Bug 5004, Don't block deletion of cities when instances exist in borrowers table 2010-11-19 09:28:33 +13:00
classsources.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
clone-rules.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
currency.pl bug 4333 followup - fix an uninitialized value warning 2010-04-30 05:50:45 -04:00
env_tz_test.pl Bug 2617: Add strict (and warnings), partial fix. 2009-03-11 08:36:55 -05:00
fieldmapping.pl Fix for Bug 4261 - keyword mapping should show which framework the map is for 2010-11-01 20:34:36 +13:00
import_export_framework.pl Bug 5478 - Automate MARC framework import/export 2011-04-01 21:17:33 +13:00
item_circulation_alerts.pl bug 3581: fix staff permission for item circ alerts 2009-09-06 09:46:39 -04:00
itemtypes.pl Fix for Bug 5650, item type page key wrong 2011-01-26 19:50:49 +13:00
koha2marclinks.pl Using only default framework for koha2marclinks 2010-03-16 21:27:20 -04:00
marc_subfields_structure.pl Bug 5462: modified intranet scripts to match templates 2011-02-03 09:57:24 +00:00
marctagstructure.pl Bug 5462: modified intranet scripts to match templates 2011-02-03 09:57:24 +00:00
matching-rules.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
patron-attr-types.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
preferences.pl Fix for Bug 4963, sys prefs need date hints and/or picker 2010-11-02 15:17:40 +13:00
printers.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00
roadtype.pl Another bug 5004 fix, this time for road types 2010-11-19 09:29:48 +13:00
smart-rules.pl Bug 5548: Hard Due Dates Circ Rule 2011-03-30 20:35:45 +13:00
stopwords.pl Fix FSF address in directory admin/ 2010-03-16 20:17:50 -04:00
systempreferences.pl Bug 5548: Hard Due Dates Circ Rule 2011-03-30 20:35:45 +13:00
z3950servers.pl Bug 2505 - Add commented use warnings where missing in the admin/ directory 2010-04-21 20:20:11 +12:00