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
aqbudget_owner_search.pl
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
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
biblio_framework.pl
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
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
clone-rules.pl
currency.pl
env_tz_test.pl
fieldmapping.pl
import_export_framework.pl Bug 5478 - Automate MARC framework import/export 2011-04-01 21:17:33 +13:00
item_circulation_alerts.pl
itemtypes.pl Fix for Bug 5650, item type page key wrong 2011-01-26 19:50:49 +13:00
koha2marclinks.pl
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
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
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
systempreferences.pl Bug 5548: Hard Due Dates Circ Rule 2011-03-30 20:35:45 +13:00
z3950servers.pl