---
#
#  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 3 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, see <http://www.gnu.org/licenses>.

description:
  - "Sample patron types and categories. Types are currently hardcoded but you can manage categories after installation from the administration module."
  - ""
  - "Adult patron - default patron type"
  - "                PT  - Patron"
  - "                ST  - Student"
  - "                BH  - Homebound"
  - ""
  - "Child - patron with a guarantor"
  - "                K   - Kid"
  - "                J   - Juvenile"
  - "                YA  - Young Adult"
  - ""
  - "Organization - patron is an institution, not a person"
  - "                ILL - Inter-library Loan"
  - "                SC  - School"
  - "                L   - Library"
  - ""
  - "Professional - a member of an organization (organization is guarantor)"
  - "                T   - Teacher"
  - "                S   - Staff"
  - "                B   - Board"


tables:
  - categories:
      translatable: [ description ]
      multiline: []
      rows:
        #  Adult Patrons
        - categorycode: 'PT'
          description: 'Patron'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'A'
          can_be_guarantee: 0

        - categorycode: 'ST'
          description: 'Student'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'A'
          can_be_guarantee: 0

        - categorycode: 'HB'
          description: 'Home Bound'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'A'
          can_be_guarantee: 0

        #  Children
        - categorycode: 'K'
          description: 'Kid'
          enrolmentperiod: 99
          upperagelimit: 17
          dateofbirthrequired: 5
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'C'
          can_be_guarantee: 1

        - categorycode: 'J'
          description: 'Juvenile'
          enrolmentperiod: 99
          upperagelimit: 17
          dateofbirthrequired: 5
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'C'
          can_be_guarantee: 1

        - categorycode: 'YA'
          description: 'Young Adult'
          enrolmentperiod: 99
          upperagelimit: 17
          dateofbirthrequired: 5
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'C'
          can_be_guarantee: 1

        #  Professionals
        - categorycode: 'T'
          description: 'Teacher'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 0
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'P'
          can_be_guarantee: 1

        - categorycode: 'B'
          description: 'Board'
          enrolmentperiod: 99
          upperagelimit: 17
          dateofbirthrequired: 5
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'P'
          can_be_guarantee: 1

        #  Institutional
        - categorycode: 'IL'
          description: 'Inter-Library Loan'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'I'
          can_be_guarantee: 0

        - categorycode: 'SC'
          description: 'School'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'I'
          can_be_guarantee: 0

        - categorycode: 'L'
          description: 'Library'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 1
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'I'
          can_be_guarantee: 0

        #  Staff
        - categorycode: 'S'
          description: 'Staff'
          enrolmentperiod: 99
          upperagelimit: 999
          dateofbirthrequired: 18
          finetype: ~
          bulk: ~
          enrolmentfee: '0.000000'
          overduenoticerequired: 0
          issuelimit: ~
          reservefee: '0.000000'
          category_type: 'S'
          can_be_guarantee: 0
