Bugzilla – Attachment 98415 Details for
Bug 24583
Rewrite mandatory installation files to YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24583: Rewrite mandatory/class_sources to YAML
Bug-24583-Rewrite-mandatoryclasssources-to-YAML.patch (text/plain), 7.02 KB, created by
Bernardo Gonzalez Kriegel
on 2020-02-04 23:49:11 UTC
(
hide
)
Description:
Bug 24583: Rewrite mandatory/class_sources to YAML
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-02-04 23:49:11 UTC
Size:
7.02 KB
patch
obsolete
>From f3a95aef8244cab56a55d93574d4441dc9273353 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 4 Feb 2020 19:58:09 -0300 >Subject: [PATCH] Bug 24583: Rewrite mandatory/class_sources to YAML > >YAML version of mandatory class_sources > >To test: >1) Same test plan of first patch, only check tables > class_sort_rules, class_split_rules and class_sources >--- > .../data/mysql/en/mandatory/class_sources.sql | 41 -------- > .../data/mysql/en/mandatory/class_sources.txt | 1 - > .../data/mysql/en/mandatory/class_sources.yml | 98 +++++++++++++++++++ > 3 files changed, 98 insertions(+), 42 deletions(-) > delete mode 100644 installer/data/mysql/en/mandatory/class_sources.sql > delete mode 100644 installer/data/mysql/en/mandatory/class_sources.txt > create mode 100644 installer/data/mysql/en/mandatory/class_sources.yml > >diff --git a/installer/data/mysql/en/mandatory/class_sources.sql b/installer/data/mysql/en/mandatory/class_sources.sql >deleted file mode 100644 >index 3ef8caad36..0000000000 >--- a/installer/data/mysql/en/mandatory/class_sources.sql >+++ /dev/null >@@ -1,41 +0,0 @@ >--- >--- Default classification sources and filing rules >--- for Koha. >--- >--- Copyright (C) 2007 LiblimeA >--- Copyright 2018 Koha Development Team >--- >--- 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., >--- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >- >--- class sorting (filing) rules >-INSERT INTO `class_sort_rules` (`class_sort_rule`, `description`, `sort_routine`) VALUES >- ('dewey', 'Default filing rules for DDC', 'Dewey'), >- ('lcc', 'Default filing rules for LCC', 'LCC'), >- ('generic', 'Generic call number filing rules', 'Generic'); >--- splitting rules >-INSERT INTO `class_split_rules` (`class_split_rule`, `description`, `split_routine`) VALUES >- ('dewey', 'Default splitting rules for DDC', 'Dewey'), >- ('lcc', 'Default splitting rules for LCC', 'LCC'), >- ('generic', 'Generic call number splitting rules', 'Generic'); >- >--- classification schemes or sources >-INSERT INTO `class_sources` (`cn_source`, `description`, `used`, `class_sort_rule`, `class_split_rule`) VALUES >- ('ddc', 'Dewey Decimal Classification', 1, 'dewey', 'dewey'), >- ('lcc', 'Library of Congress Classification', 1, 'lcc', 'lcc'), >- ('udc', 'Universal Decimal Classification', 0, 'generic', 'generic'), >- ('sudocs', 'SuDoc Classification (U.S. GPO)', 0, 'generic', 'generic'), >- ('anscr', 'ANSCR (Sound Recordings)', 0, 'generic', 'generic'), >- ('z', 'Other/Generic Classification Scheme', 0, 'generic', 'generic'); >diff --git a/installer/data/mysql/en/mandatory/class_sources.txt b/installer/data/mysql/en/mandatory/class_sources.txt >deleted file mode 100644 >index 67487771b3..0000000000 >--- a/installer/data/mysql/en/mandatory/class_sources.txt >+++ /dev/null >@@ -1 +0,0 @@ >-Default classification sources and filing rules >diff --git a/installer/data/mysql/en/mandatory/class_sources.yml b/installer/data/mysql/en/mandatory/class_sources.yml >new file mode 100644 >index 0000000000..6bd9a812e8 >--- /dev/null >+++ b/installer/data/mysql/en/mandatory/class_sources.yml >@@ -0,0 +1,98 @@ >+--- >+# >+# Copyright 2020 Koha Development Team >+# >+# 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., >+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >+# >+ >+description: >+ - "Default classification sources and filing rules for Koha." >+ >+tables: >+ # class sorting (filing) rules >+ - class_sort_rules: >+ translatable: [ description ] >+ multiline: [] >+ rows: >+ - class_sort_rule: "dewey" >+ description: "Default filing rules for DDC" >+ sort_routine: "Dewey" >+ >+ - class_sort_rule: "lcc" >+ description: "Default filing rules for LCC" >+ sort_routine: "LCC" >+ >+ - class_sort_rule: "generic" >+ description: "Generic call number filing rules" >+ sort_routine: "Generic" >+ >+ # splitting rules >+ - class_split_rules: >+ translatable: [ description ] >+ multiline: [] >+ rows: >+ - class_split_rule: "dewey" >+ description: "Default splitting rules for DDC" >+ split_routine: "Dewey" >+ >+ - class_split_rule: "lcc" >+ description: "Default splitting rules for LCC" >+ split_routine: "LCC" >+ >+ - class_split_rule: "generic" >+ description: "Generic call number splitting rules" >+ split_routine: "Generic" >+ >+ # classification schemes or sources >+ - class_sources: >+ translatable: [ description ] >+ multiline: [] >+ rows: >+ - cn_source: "ddc" >+ description: "Dewey Decimal Classification" >+ used: 1 >+ class_sort_rule: "dewey" >+ class_split_rule: "dewey" >+ >+ - cn_source: "lcc" >+ description: "Library of Congress Classification" >+ used: 1 >+ class_sort_rule: "lcc" >+ class_split_rule: "lcc" >+ >+ - cn_source: "udc" >+ description: "Universal Decimal Classification" >+ used: 0 >+ class_sort_rule: "generic" >+ class_split_rule: "generic" >+ >+ - cn_source: "sudocs" >+ description: "SuDoc Classification (U.S. GPO)" >+ used: 0 >+ class_sort_rule: "generic" >+ class_split_rule: "generic" >+ >+ - cn_source: "anscr" >+ description: "ANSCR (Sound Recordings)" >+ used: 0 >+ class_sort_rule: "generic" >+ class_split_rule: "generic" >+ >+ - cn_source: "z" >+ description: "Other/Generic Classification Scheme" >+ used: 0 >+ class_sort_rule: "generic" >+ class_split_rule: "generic" >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24583
:
98414
|
98415
|
98416
|
98417
|
98418
|
99397
|
99398
|
99399
|
99400
|
99401
|
100195
|
100346
|
100347
|
100348
|
100349
|
100350
|
100351
|
100389
|
100391