[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE Branches %] [% USE KohaDates %] [% USE Price %] [% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% 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 %] › Patron categories › Administration › Koha [% 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. days
  8. years
  9. years
  10. Required
  11. Select All libraries if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value.
  12. Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])
  13. Choose whether patrons of this category be blocked from public catalog actions such as renewing and placing holds when their cards have expired.
  14. [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
  15. Choose whether patrons of this category by default are reminded if they try to borrow an item they borrowed before.
  16. [% END %]
  17. 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.
  18. 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 %]
Password expiration: [% category.password_expiry_days | html %] days
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 %]
Can be guarantee[% IF category.can_be_guarantee %]Yes[% ELSE %]No[% 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.password_expiry_days) %] [% ELSE %] [% END %] [% 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 Password expiration Age required Upper age limit Enrollment fee Overdue Lost items Hold feeMessagingLibrary limitationsCheck previous checkout?Can be guarantee 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.password_expiry_days | html %] days-[% 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 %] [% NEXT IF !Koha.Preference( 'ILLModule' ) && prefs.message_name.match('^Ill_') %] [% FOREACH transport IN prefs.transports %] [% IF ( transport.transport ) %] [% IF ( prefs.Item_Due ) %]Item due [% ELSIF ( prefs.Advance_Notice ) %]Advance notice [% ELSIF ( prefs.Hold_Filled ) %]Hold filled [% ELSIF ( prefs.Item_Check_in ) %]Item check-in [% ELSIF ( prefs.Item_Checkout ) %]Item checkout [% ELSIF ( prefs.Ill_ready ) %]Interlibrary loan ready [% ELSIF ( prefs.Ill_unavailable ) %]Interlibrary loan unavailable [% ELSIF ( prefs.Auto_Renewals ) %]Auto renewal [% ELSIF ( prefs.Hold_Reminder ) %]Hold reminder [% ELSE %]Unknown [% END %]: [% transport.transport | html %]
[% ELSE %]None
[% END %] [% END %] [% END %] [% ELSE %] None [% END %]
[% SET library_limits = category.library_limits %] [% IF library_limits.count > 0 %] [% library_str = "" %] [% FOREACH library IN library_limits %] [%- IF loop.first -%] [% library_str = library.branchname _ " (" _ library.branchcode _ ")" %] [% ELSE %] [% library_str = library_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %] [% END %] [% END %] [% IF library_limits.count > 1 %] [% library_limits.count | html %] library limitations [% ELSE %] [% library_limits.count | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] [% SWITCH category.checkprevcheckout %] [% CASE 'yes' %] Yes [% CASE 'no' %] No [% CASE 'inherit' %] Inherit [% END %] [% IF category.can_be_guarantee %] Yes [% ELSE %] no [% 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' %]