Bug 12446: (follow-up) Fix patron categories sample data
[koha.git] / installer / data / mysql / en / optional / patron_categories.yml
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
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20 description:
21   - "Sample patron types and categories. Types are currently hardcoded but you can manage categories after installation from the administration module."
22   - ""
23   - "Adult patron - default patron type"
24   - "                PT  - Patron"
25   - "                ST  - Student"
26   - "                BH  - Homebound"
27   - ""
28   - "Child - patron with a guarantor"
29   - "                K   - Kid"
30   - "                J   - Juvenile"
31   - "                YA  - Young Adult"
32   - ""
33   - "Organization - patron is an institution, not a person"
34   - "                ILL - Inter-library Loan"
35   - "                SC  - School"
36   - "                L   - Library"
37   - ""
38   - "Professional - a member of an organization (organization is guarantor)"
39   - "                T   - Teacher"
40   - "                S   - Staff"
41   - "                B   - Board"
42
43
44 tables:
45   - categories:
46       translatable: [ description ]
47       multiline: []
48       rows:
49         #  Adult Patrons
50         - categorycode: 'PT'
51           description: 'Patron'
52           enrolmentperiod: 99
53           upperagelimit: 999
54           dateofbirthrequired: 18
55           finetype: ~
56           bulk: ~
57           enrolmentfee: '0.000000'
58           overduenoticerequired: 1
59           issuelimit: ~
60           reservefee: '0.000000'
61           category_type: 'A'
62           can_be_guarantee: 0
63
64         - categorycode: 'ST'
65           description: 'Student'
66           enrolmentperiod: 99
67           upperagelimit: 999
68           dateofbirthrequired: 18
69           finetype: ~
70           bulk: ~
71           enrolmentfee: '0.000000'
72           overduenoticerequired: 1
73           issuelimit: ~
74           reservefee: '0.000000'
75           category_type: 'A'
76           can_be_guarantee: 0
77
78         - categorycode: 'HB'
79           description: 'Home Bound'
80           enrolmentperiod: 99
81           upperagelimit: 999
82           dateofbirthrequired: 18
83           finetype: ~
84           bulk: ~
85           enrolmentfee: '0.000000'
86           overduenoticerequired: 1
87           issuelimit: ~
88           reservefee: '0.000000'
89           category_type: 'A'
90           can_be_guarantee: 0
91
92         #  Children
93         - categorycode: 'K'
94           description: 'Kid'
95           enrolmentperiod: 99
96           upperagelimit: 17
97           dateofbirthrequired: 5
98           finetype: ~
99           bulk: ~
100           enrolmentfee: '0.000000'
101           overduenoticerequired: 1
102           issuelimit: ~
103           reservefee: '0.000000'
104           category_type: 'C'
105           can_be_guarantee: 1
106
107         - categorycode: 'J'
108           description: 'Juvenile'
109           enrolmentperiod: 99
110           upperagelimit: 17
111           dateofbirthrequired: 5
112           finetype: ~
113           bulk: ~
114           enrolmentfee: '0.000000'
115           overduenoticerequired: 1
116           issuelimit: ~
117           reservefee: '0.000000'
118           category_type: 'C'
119           can_be_guarantee: 1
120
121         - categorycode: 'YA'
122           description: 'Young Adult'
123           enrolmentperiod: 99
124           upperagelimit: 17
125           dateofbirthrequired: 5
126           finetype: ~
127           bulk: ~
128           enrolmentfee: '0.000000'
129           overduenoticerequired: 1
130           issuelimit: ~
131           reservefee: '0.000000'
132           category_type: 'C'
133           can_be_guarantee: 1
134
135         #  Professionals
136         - categorycode: 'T'
137           description: 'Teacher'
138           enrolmentperiod: 99
139           upperagelimit: 999
140           dateofbirthrequired: 18
141           finetype: ~
142           bulk: ~
143           enrolmentfee: '0.000000'
144           overduenoticerequired: 0
145           issuelimit: ~
146           reservefee: '0.000000'
147           category_type: 'P'
148           can_be_guarantee: 1
149
150         - categorycode: 'B'
151           description: 'Board'
152           enrolmentperiod: 99
153           upperagelimit: 17
154           dateofbirthrequired: 5
155           finetype: ~
156           bulk: ~
157           enrolmentfee: '0.000000'
158           overduenoticerequired: 1
159           issuelimit: ~
160           reservefee: '0.000000'
161           category_type: 'P'
162           can_be_guarantee: 1
163
164         #  Institutional
165         - categorycode: 'IL'
166           description: 'Inter-Library Loan'
167           enrolmentperiod: 99
168           upperagelimit: 999
169           dateofbirthrequired: 18
170           finetype: ~
171           bulk: ~
172           enrolmentfee: '0.000000'
173           overduenoticerequired: 1
174           issuelimit: ~
175           reservefee: '0.000000'
176           category_type: 'I'
177           can_be_guarantee: 0
178
179         - categorycode: 'SC'
180           description: 'School'
181           enrolmentperiod: 99
182           upperagelimit: 999
183           dateofbirthrequired: 18
184           finetype: ~
185           bulk: ~
186           enrolmentfee: '0.000000'
187           overduenoticerequired: 1
188           issuelimit: ~
189           reservefee: '0.000000'
190           category_type: 'I'
191           can_be_guarantee: 0
192
193         - categorycode: 'L'
194           description: 'Library'
195           enrolmentperiod: 99
196           upperagelimit: 999
197           dateofbirthrequired: 18
198           finetype: ~
199           bulk: ~
200           enrolmentfee: '0.000000'
201           overduenoticerequired: 1
202           issuelimit: ~
203           reservefee: '0.000000'
204           category_type: 'I'
205           can_be_guarantee: 0
206
207         #  Staff
208         - categorycode: 'S'
209           description: 'Staff'
210           enrolmentperiod: 99
211           upperagelimit: 999
212           dateofbirthrequired: 18
213           finetype: ~
214           bulk: ~
215           enrolmentfee: '0.000000'
216           overduenoticerequired: 0
217           issuelimit: ~
218           reservefee: '0.000000'
219           category_type: 'S'
220           can_be_guarantee: 0