View | Details | Raw Unified | Return to bug 24583
Collapse All | Expand All

(-)a/installer/data/mysql/en/mandatory/class_sources.sql (-41 lines)
Lines 1-41 Link Here
1
-- 
2
-- Default classification sources and filing rules
3
-- for Koha.
4
--
5
-- Copyright (C) 2007 LiblimeA
6
-- Copyright 2018 Koha Development Team
7
--
8
-- This file is part of Koha.
9
--
10
-- Koha is free software; you can redistribute it and/or modify it under the
11
-- terms of the GNU General Public License as published by the Free Software
12
-- Foundation; either version 2 of the License, or (at your option) any later
13
-- version.
14
-- 
15
-- Koha is distributed in the hope that it will be useful, but WITHOUT ANY
16
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
17
-- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
18
-- 
19
-- You should have received a copy of the GNU General Public License along
20
-- with Koha; if not, write to the Free Software Foundation, Inc.,
21
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
23
-- class sorting (filing) rules
24
INSERT INTO `class_sort_rules` (`class_sort_rule`, `description`, `sort_routine`) VALUES
25
                               ('dewey', 'Default filing rules for DDC', 'Dewey'),
26
                               ('lcc', 'Default filing rules for LCC', 'LCC'),
27
                               ('generic', 'Generic call number filing rules', 'Generic');
28
-- splitting rules
29
INSERT INTO `class_split_rules` (`class_split_rule`, `description`, `split_routine`) VALUES
30
                               ('dewey', 'Default splitting rules for DDC', 'Dewey'),
31
                               ('lcc', 'Default splitting rules for LCC', 'LCC'),
32
                               ('generic', 'Generic call number splitting rules', 'Generic');
33
34
-- classification schemes or sources
35
INSERT INTO `class_sources` (`cn_source`, `description`, `used`, `class_sort_rule`, `class_split_rule`) VALUES
36
                            ('ddc', 'Dewey Decimal Classification', 1, 'dewey', 'dewey'),
37
                            ('lcc', 'Library of Congress Classification', 1, 'lcc', 'lcc'),
38
                            ('udc', 'Universal Decimal Classification', 0, 'generic', 'generic'),
39
                            ('sudocs', 'SuDoc Classification (U.S. GPO)', 0, 'generic', 'generic'),
40
                            ('anscr', 'ANSCR (Sound Recordings)', 0, 'generic', 'generic'),
41
                            ('z', 'Other/Generic Classification Scheme', 0, 'generic', 'generic');
(-)a/installer/data/mysql/en/mandatory/class_sources.txt (-1 lines)
Line 1 Link Here
1
Default classification sources and filing rules
(-)a/installer/data/mysql/en/mandatory/class_sources.yml (-1 / +98 lines)
Line 0 Link Here
0
- 
1
---
2
#
3
#  Copyright 2020 Koha Development Team
4
#
5
#  This file is part of Koha.
6
#
7
#  Koha is free software; you can redistribute it and/or modify it under the
8
#  terms of the GNU General Public License as published by the Free Software
9
#  Foundation; either version 2 of the License, or (at your option) any later
10
#  version.
11
#
12
#  Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
#
16
#  You should have received a copy of the GNU General Public License along
17
#  with Koha; if not, write to the Free Software Foundation, Inc.,
18
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
#
20
21
description:
22
  - "Default classification sources and filing rules for Koha."
23
24
tables:
25
  # class sorting (filing) rules
26
  - class_sort_rules:
27
      translatable: [ description ]
28
      multiline: []
29
      rows:
30
        - class_sort_rule: "dewey"
31
          description: "Default filing rules for DDC"
32
          sort_routine: "Dewey"
33
34
        - class_sort_rule: "lcc"
35
          description: "Default filing rules for LCC"
36
          sort_routine: "LCC"
37
38
        - class_sort_rule: "generic"
39
          description: "Generic call number filing rules"
40
          sort_routine: "Generic"
41
42
  # splitting rules
43
  - class_split_rules:
44
      translatable: [ description ]
45
      multiline: []
46
      rows:
47
        - class_split_rule: "dewey"
48
          description: "Default splitting rules for DDC"
49
          split_routine: "Dewey"
50
51
        - class_split_rule: "lcc"
52
          description: "Default splitting rules for LCC"
53
          split_routine: "LCC"
54
55
        - class_split_rule: "generic"
56
          description: "Generic call number splitting rules"
57
          split_routine: "Generic"
58
59
  # classification schemes or sources
60
  - class_sources:
61
      translatable: [ description ]
62
      multiline: []
63
      rows:
64
        - cn_source: "ddc"
65
          description: "Dewey Decimal Classification"
66
          used: 1
67
          class_sort_rule: "dewey"
68
          class_split_rule: "dewey"
69
70
        - cn_source: "lcc"
71
          description: "Library of Congress Classification"
72
          used: 1
73
          class_sort_rule: "lcc"
74
          class_split_rule: "lcc"
75
76
        - cn_source: "udc"
77
          description: "Universal Decimal Classification"
78
          used: 0
79
          class_sort_rule: "generic"
80
          class_split_rule: "generic"
81
82
        - cn_source: "sudocs"
83
          description: "SuDoc Classification (U.S. GPO)"
84
          used: 0
85
          class_sort_rule: "generic"
86
          class_split_rule: "generic"
87
88
        - cn_source: "anscr"
89
          description: "ANSCR (Sound Recordings)"
90
          used: 0
91
          class_sort_rule: "generic"
92
          class_split_rule: "generic"
93
94
        - cn_source: "z"
95
          description: "Other/Generic Classification Scheme"
96
          used: 0
97
          class_sort_rule: "generic"
98
          class_split_rule: "generic"

Return to bug 24583