[Koha-patches] [PATCH] Add default classification sources and filing rules to fr-FR

Frederic Demians f.demians at tamil.fr
Mon Nov 17 17:38:46 CET 2008


fr-FR install wasn't populating classication rules tables:

  * class_sort_rules
  * class_sources

This patch add default values for those tables
mandatory during installation process.
---
 .../mysql/fr-FR/1-Obligatoire/class_sources.sql    |   36 ++++++++++++++++++++
 .../mysql/fr-FR/1-Obligatoire/class_sources.txt    |    1 +
 2 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 installer/data/mysql/fr-FR/1-Obligatoire/class_sources.sql
 create mode 100644 installer/data/mysql/fr-FR/1-Obligatoire/class_sources.txt

diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.sql b/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.sql
new file mode 100644
index 0000000..9dc101e
--- /dev/null
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.sql
@@ -0,0 +1,36 @@
+-- 
+-- Default classification sources and filing rules
+-- for Koha.
+--
+-- Copyright (C) 2007 LiblimeA
+--
+-- This file is part of Koha.
+--
+-- Koha is free software; you can redistribute it and/or modify it under the
+-- terms of the GNU General Public License as published by the Free Software
+-- Foundation; either version 2 of the License, or (at your option) any later
+-- version.
+-- 
+-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+-- 
+-- You should have received a copy of the GNU General Public License along with
+-- Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+-- Suite 330, Boston, MA  02111-1307 USA
+
+-- class sorting (filing) rules
+INSERT INTO `class_sort_rules` (`class_sort_rule`, `description`, `sort_routine`) VALUES
+                               ('dewey', 'Règle de classement par défaut DCC', 'Dewey'),
+                               ('lcc', 'Régle de classement par déf. Bibliothèque du Congrès', 'LCC'),
+                               ('generic', 'Règle de classement par défaut générique', 'Generic');
+
+
+-- classification schemes or sources
+INSERT INTO `class_sources` (`cn_source`, `description`, `used`, `class_sort_rule`) VALUES
+                            ('ddc', 'Classification décimale Dewey', 1, 'dewey'),
+                            ('lcc', 'Classification de la Bibliothèque du Congrès', 1, 'lcc'),
+                            ('udc', 'Classification décimale universelle', 0, 'generic'),
+                            ('sudocs', 'SuDoc Classification (U.S. GPO)', 0, 'generic'),
+                            ('anscr', 'ANSCR (Sound Recordings)', 0, 'generic'),
+                            ('z', 'Autre schéma générique de classification', 0, 'generic');
diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.txt b/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.txt
new file mode 100644
index 0000000..4d4f29d
--- /dev/null
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/class_sources.txt
@@ -0,0 +1 @@
+Sources de classifcation et règles de classement par défaut
-- 
1.5.5.GIT




More information about the Koha-patches mailing list