[% 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' %]
[% END %]
[% IF op == 'delete_confirm' %]
[% END %]
[% IF op == 'list' %]
Patron categories
[% IF searchfield %] You Searched for [% searchfield | html %] [% END %] [% IF categories%]Code | Category name | Type | Enrollment period | Age required | Upper age limit | Enrollment fee | Overdue | Lost items | Hold fee | [% IF ( EnhancedMessagingPreferences ) %]Messaging | [% END %]Library limitations | [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]Check previous checkout? | [% END %]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 %] | [% IF (category.dateofbirthrequired) %][% category.dateofbirthrequired | html %] years | [% ELSE %]- | [% END %] [% IF (category.upperagelimit) %][% category.upperagelimit | html %] years | [% ELSE %]- | [% END %] [% IF (category.enrolmentfee > 0) %][% category.enrolmentfee | $Price %] | [% ELSE %]- | [% END %][% IF ( category.overduenoticerequired ) %]Yes[% ELSE %]No[% END %] | [% IF ( category.hidelostitems ) %]Hidden[% ELSE %]Shown[% END %] | [% IF (category.reservefee > 0) %][% category.reservefee | $Price %] | [% ELSE %]- | [% END %] [% IF Koha.Preference('EnhancedMessagingPreferences') %]
[% 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
[% ELSE %]Unknown
[% END %]:
[% transport.transport | html %] [% ELSE %]None [% END %] [% END %] [% END %] [% ELSE %] None [% END %] |
[% 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 %] | [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %][% SWITCH category.checkprevcheckout %] [% CASE 'yes' %] Yes [% CASE 'no' %] No [% CASE 'inherit' %] Inherit [% END %] | [% 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 |
No categories have been defined. Create a new category.
[% END %]
[% END %]