Koha/koha-tmpl/intranet-tmpl/prog/en/modules/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
..
preferences Bug 5959: Add search link for analytics to serial records 2011-04-01 20:23:30 +13:00
admin-home.tmpl Bug 5530: Fixing a link to systempreferences.pl instead of preferences.pl 2010-12-21 21:19:23 +13:00
aqbudget_owner_search.tmpl Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
aqbudgetperiods.tmpl Bug 5741 - Extra comma causes JavaScript error in Internet Explorer 2011-02-20 20:29:07 +13:00
aqbudgets.tmpl Bug 5964 : Translation problem on aqbudgets.tmpl 2011-03-30 19:42:53 +13:00
aqcontract.tmpl Fix for Bug 4909 - extra > in path on contracts pages 2010-06-25 13:19:39 -04:00
aqplan.tmpl Fix for Bug 5679 - funds planning showing strange borders 2011-02-14 10:24:44 +13:00
auth_subfields_structure.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
auth_tag_structure.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
authorised_values.tmpl Fix for Bug 5650, item type page key wrong 2011-01-26 19:50:49 +13:00
authtypes.tmpl Bug 5462: both intranet and opac seem to be 'clean', still need to make relevant changes in scripts 2011-02-03 09:57:00 +00:00
biblio_framework.tmpl Bug 5478 - Automate MARC framework import/export 2011-04-01 21:17:33 +13:00
branch_transfer_limits.tmpl (MT #1654) followup : Adding jquery.tablesorter and jquery.tablesorter.pager support for branch_transfer_limits.pl 2010-12-21 21:18:12 +13:00
branches.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
categorie.tmpl Bug 5547: Hide Lost Items dev 2011-03-30 20:20:05 +13:00
checkmarc.tmpl Bug 5119: Misspelled word correspounding 2010-10-17 13:47:33 -04:00
cities.tmpl (MT #1654) followup : Adding jquery.tablesorter and jquery.tablesorter.pager support for cities.pl 2010-12-21 21:18:12 +13:00
classsources.tmpl Markup corrections 2010-07-16 08:21:59 -04:00
clone-rules.tmpl
currency.tmpl Bug 5118: Misspelled word: Currencey 2010-10-17 13:47:12 -04:00
fieldmapping.tmpl Fix for Bug 4261 - keyword mapping should show which framework the map is for 2010-11-01 20:34:36 +13:00
item_circulation_alerts.tmpl
itemtypes.tmpl Fix for Bug 5650, item type page key wrong 2011-01-26 19:50:49 +13:00
koha2marclinks.tmpl bug 4291 - template edits to koha to marc mapping 2010-03-16 21:27:19 -04:00
marc_subfields_structure.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
marctagstructure.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
matching-rules.tmpl Fix for Bug 5006 - Invalid XHTML in record matching rules template 2011-01-07 09:57:11 +13:00
patron-attr-types.tmpl bug 5326 fix link to old prefs editor on patron attributes 2010-11-02 14:55:17 +13:00
preferences.tmpl Fix for Bug 5689 - System preference notifications are not translatable 2011-02-04 13:29:43 +13:00
printers.tmpl
roadtype.tmpl
smart-rules.tmpl Bug 5548: Hard Due Dates Circ Rule 2011-03-30 20:35:45 +13:00
stopwords.tmpl
systempreferences.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00
z3950servers.tmpl Bug 5462: fixed dashes (replaced with _) and fullstops (removed) for variable names 2011-02-03 09:54:50 +00:00