[% USE Koha %] [% USE KohaDates %] [% USE Price %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Patron categories › [% IF op == 'add_form' %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] [% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patrons-admin-search.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this patron category. Perhaps it already exists. [% CASE 'error_on_insert' %] An error occurred when inserting this patron category. The patron category might already exist. [% CASE 'error_on_delete' %] An error occurred when deleting this patron category. Check the logs. [% CASE 'success_on_update' %] Patron category updated successfully. [% CASE 'success_on_insert' %] Patron category inserted successfully. [% CASE 'success_on_delete' %] Patron category deleted successfully. [% CASE 'already_exists' %] This patron category already exists. [% CASE %] [% m.code %] [% END %]
[% END %] [% IF op == 'add_form' %]
[% IF category %]

Modify category [% categorycode |html %]

[% ELSE %]

New category

[% END %]
    [% IF category %]
  1. Category code: [% categorycode |html %]
  2. [% ELSE %]
  3. Required
  4. [% END %]
  5. Required
  6. Choose one
    1. months
    2. Cannot have "months" and "until date" at the same time
  7. years
  8. years
  9. Required
  10. Select All branches if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
  11. Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired.
  12. Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob batch_anonymise.pl which should be set up by your system administrator.
[% IF ( EnhancedMessagingPreferences ) %]

Default messaging preferences for this patron category

[% INCLUDE 'messaging-preference-form.inc' %]
[% END %]
[% END %] [% IF op == 'delete_confirm' %]
[% IF patrons_in_category > 0 %] Category [% categorycode |html %] is in use. Deletion not possible! [% ELSE %] Confirm deletion of category [% categorycode |html %] [% END %] [% IF patrons_in_category > 0 %]
This category is used [% patrons_in_category %] times. Deletion not possible
[% END %]
Category code: [% category.categorycode |html %]
Description: [% category.description |html %]
Enrollment period: [% IF category.enrolmentperiod %] [% category.enrolmentperiod %] months [% ELSE %] until [% category.enrolmentperioddate | $KohaDates %] [% END %]
Age required: [% category.dateofbirthrequired %] years
Upperage limit: [% category.upperagelimit %] years
Enrollment fee: [% category.enrolmentfee | $Price %]
Receives overdue notices: [% IF category. overduenoticerequired %]Yes[% ELSE %]No[% END %]
Lost items in staff client[% IF category.hidelostitems %]Hidden by default[% ELSE %]Shown[% END %]
Hold fee: [% category.reservefee | $Price %]
Default privacy: [% SWITCH category.default_privacy %] [% CASE 'default' %] Default [% CASE 'never' %] Never [% CASE 'forever' %] Forever [% END %]
[% IF patrons_in_category > 0 %] [% ELSE %] Cancel [% END %]
[% END %] [% IF op == 'list' %]

Patron category administration

[% IF searchfield %] You Searched for [% searchfield %] [% END %] [% IF categories%] [% IF ( EnhancedMessagingPreferences ) %] [% END %] [% FOREACH category IN categories %] [% IF Koha.Preference('EnhancedMessagingPreferences') %] [% END %] [% END %]
Code Category name Type Enrollment period Age required Upper age limit Enrollment fee Overdue Lost items Hold feeMessagingBranches limitations Default privacy    
[% category.categorycode |html %] [% category.description |html %] [% SWITCH category.category_type %] [% CASE 'A' %]Adult [% CASE 'C' %]Child [% CASE 'P' %]Prof. [% CASE 'I' %]Org. [% CASE 'S' %]Staff [% CASE 'X' %]Statistical [% END %] [% IF ( category.enrolmentperiod ) %] [% category.enrolmentperiod %] months [% ELSE %] until [% category.enrolmentperioddate | $KohaDates %] [% END %] [% category.dateofbirthrequired %] years [% category.upperagelimit %] years [% category.enrolmentfee | $Price %] [% IF ( category.overduenoticerequired ) %]Yes[% ELSE %]No[% END %] [% IF ( category.hidelostitems ) %]Hidden[% ELSE %]Shown[% END %] [% category.reservefee | $Price %] [% SET default_messaging = category.default_messaging %] [% IF default_messaging.size %] [% FOREACH prefs IN default_messaging %] [% FOREACH transport IN prefs.transports %] [% IF ( transport.transport ) %] [% IF ( prefs.Item_Due ) %]Item due [% ELSIF ( prefs.Advance_Notice ) %]Advance notice [% ELSIF ( prefs.Upcoming_Events ) %]Upcoming events [% ELSIF ( prefs.Hold_Filled ) %]Hold filled [% ELSIF ( prefs.Item_Check_in ) %]Item check-in [% ELSIF ( prefs.Item_Checkout ) %]Item checkout [% ELSE %]Unknown [% END %]: [% transport.transport %]
[% ELSE %]None
[% END %] [% END %] [% END %] [% ELSE %] None [% END %]
[% SET branch_limitations = category.branch_limitations %] [% IF branch_limitations.size > 0 %] [% branches_str = "" %] [% FOREACH branch IN branch_limitations %] [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] [% END %] [% IF branch_limitations.size > 1 %] [% branch_limitations.size %] branches limitations [% ELSE %] [% branch_limitations.size %] branch limitation [% END %] [% ELSE %] No limitation [% END %] [% SWITCH category.default_privacy %] [% CASE 'default' %] Default [% CASE 'never' %] Never [% CASE 'forever' %] Forever [% END %] Edit Delete
[% ELSE %]
No categories have been defined. Create a new category.
[% END %] [% END %]
[% INCLUDE 'admin-menu.inc' %]
[% INCLUDE 'intranet-bottom.inc' %]