[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Price %] [% USE TablesSettings %] [% SET footerjs = 1 %] [% 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 '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 | html %] [% 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. Enrollment period:
    Choose one
    1. [% IF category.enrolmentperiod %] months [% ELSE %] months [% END %]
  7. years
  8. years
  9. Required
  10. Select All libraries if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
  11. Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])
  12. Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired.
  13. [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
  14. Choose whether patrons of this category by default are reminded if they try to borrow an item they borrowed before.
  15. [% END %]
  16. 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.
  17. If Yes, holds placed by patrons of this category will not be given priority
[% IF ( EnhancedMessagingPreferences ) %]

Default messaging preferences for this patron category

[% INCLUDE 'messaging-preference-form.inc' %]
[% END %]
Cancel
[% 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 | html %] times. Deletion not possible
[% END %] [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] [% END %]
Category code: [% category.categorycode | html %]
Description: [% category.description | html %]
Enrollment period: [% IF category.enrolmentperiod %] [% category.enrolmentperiod | html %] months [% ELSE %] until [% category.enrolmentperioddate | $KohaDates %] [% END %]
Age required: [% category.dateofbirthrequired | html %] years
Upperage limit: [% category.upperagelimit | html %] years
Enrollment fee: [% category.enrolmentfee | $Price %]
Receives overdue notices: [% IF category. overduenoticerequired %]Yes[% ELSE %]No[% END %]
Lost items in staff interface[% IF category.hidelostitems %]Hidden by default[% ELSE %]Shown[% END %]
Hold fee: [% category.reservefee | $Price %]
Check previous checkouts: [% SWITCH category.checkprevcheckout %] [% CASE 'yes' %] Yes [% CASE 'no' %] No [% CASE 'inherit' %] Inherit [% END %]
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 categories

[% IF searchfield %] You Searched for [% searchfield | html %] [% END %] [% IF categories%] [% IF ( EnhancedMessagingPreferences ) %] [% END %] [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] [% END %] [% FOREACH category IN categories %] [% IF (category.dateofbirthrequired) %] [% ELSE %] [% END %] [% IF (category.upperagelimit) %] [% ELSE %] [% END %] [% IF (category.enrolmentfee > 0) %] [% ELSE %] [% END %] [% IF (category.reservefee > 0) %] [% ELSE %] [% END %] [% IF Koha.Preference('EnhancedMessagingPreferences') %] [% END %] [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] [% END %] [% END %]
Code Category name Type Enrollment period Age required Upper age limit Enrollment fee Overdue Lost items Hold feeMessagingLibrary limitationsCheck previous checkout?Default privacy Exclude from local holds priority Actions
[% 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 | html %] months [% ELSE %] until [% category.enrolmentperioddate | $KohaDates %] [% END %] [% category.dateofbirthrequired | html %] years-[% category.upperagelimit | html %] 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 | html %]
[% 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 | html %] library limitations [% ELSE %] [% branch_limitations.size | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] [% SWITCH category.checkprevcheckout %] [% CASE 'yes' %] Yes [% CASE 'no' %] No [% CASE 'inherit' %] Inherit [% END %] [% SWITCH category.default_privacy %] [% CASE 'default' %] Default [% CASE 'never' %] Never [% CASE 'forever' %] Forever [% END %] [% IF category.exclude_from_local_holds_priority %] Yes [% ELSE %] No [% END %] Edit Delete
[% ELSE %]
No categories have been defined. Create a new category.
[% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% Asset.js("js/messaging-preference-form.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% Asset.js("js/categories.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]