[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] [% USE scalar %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( attribute_type_form ) %] [% IF ( edit_attribute_type ) %] Modify patron attribute type › [% ELSE %] Add patron attribute type › [% END %] [% END %] [% IF ( delete_attribute_type_form ) %] Confirm deletion of patron attribute type "[% code | html %]" › [% END %] Patron attribute types › Administration › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %]
[% IF ( WARNING_extended_attributes_off ) %]
Because the 'ExtendedPatronAttributes` system preference is currently not enabled, extended patron attributes cannot be given to patron records.
Go to the ExtendedPatronAttributes system preference if you wish to enable this feature.
[% END %] [% IF ( attribute_type_form ) %] [% IF ( edit_attribute_type ) %]

Modify patron attribute type

[% ELSE %]

Add patron attribute type

[% END %] [% IF ( duplicate_code_error ) %]
Could not add patron attribute type "[% duplicate_code_error | html %]" — one with that code already exists.
[% END %]
  1. [% IF attribute_type %] Patron attribute type code: [% attribute_type.code |html %] [% ELSE %] Required [% END %]
  2. Required
  3. [% IF attribute_type AND attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %]
  4. [% ELSE %]
  5. [% END %] [% IF attribute_type %] [% IF attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %] [% ELSIF attribute_type.repeatable %] [% ELSE %] [% END %] [% ELSE %] [% END %] Check to let a patron record have multiple values of this attribute.
  6. [% IF attribute_type AND not can_be_set_to_unique %]
  7. [% ELSE %]
  8. [% END %] [% IF attribute_type %] [% IF attribute_type.unique_id %] [% ELSIF can_be_set_to_unique %] [% ELSE %] [% END %] [% ELSE %] [% END %] If checked, attribute will be a unique identifier — if a value is given to a patron record, the same value cannot be given to a different record.
  9. [% IF attribute_type AND attribute_type.opac_display %] [% ELSE %] [% END %] Check to display this attribute on a patron's details page in the OPAC.
  10. [% IF attribute_type AND attribute_type.opac_editable %] [% ELSE %] [% END %] Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above, does not work during self-registration if PatronSelfRegistrationVerifyByEmail is set.)
  11. [% IF attribute_type AND attribute_type.staff_searchable %] [% ELSE %] [% END %] Check to make this attribute staff_searchable in the staff patron search.
  12. [% IF attribute_type AND attribute_type.mandatory %] [% ELSE %] [% END %] Check to make this attribute mandatory when creating or editing a patron.
  13. [% IF attribute_type AND attribute_type.display_checkout %] [% ELSE %] [% END %] Check to show this attribute in the brief information panel in the patron's record (staff interface).
  14. [% IF Koha.Preference('Pseudonymization') %]
  15. [% IF attribute_type AND attribute_type.keep_for_pseudonymization %] [% ELSE %] [% END %] Check to make this attribute copied to the patron's pseudonymized attributes.
  16. [% END %]
  17. If one is selected, the patron record input page will only allow values to be chosen from the authorized value list. However, an authorized value list is not enforced during batch patron import.
  18. Select "All libraries" if this attribute type should always be displayed. Otherwise select libraries you want to associate with this value.
  19. Choose one to limit this attribute to one patron type. Please leave blank if you want these attributes to be available for all types of patrons.
  20. [% PROCESS 'av-build-dropbox.inc' name="class", category="PA_CLASS" default=attribute_type.class empty=1 %]
    [% IF ( CAN_user_parameters_manage_auth_values ) %] Group attributes types with a block title (based on authorized values category 'PA_CLASS') [% ELSE %] Group attributes types with a block title (based on authorized values category 'PA_CLASS') [% END %]
Cancel
[% END %] [% IF ( delete_attribute_type_form ) %]

Confirm deletion of patron attribute type '[% code | html %]' ([% description | html %])?

[% END %] [% IF ( display_list ) %]

Patron attribute types

[% IF ( added_attribute_type ) %]
Added patron attribute type "[% added_attribute_type | html %]"
[% END %] [% IF ( edited_attribute_type ) %]
Modified patron attribute type "[% edited_attribute_type | html %]"
[% END %] [% IF ( deleted_attribute_type ) %]
Deleted patron attribute type "[% deleted_attribute_type | html %]"
[% END %] [% IF ( ERROR_delete_in_use ) %]
Could not delete patron attribute type "[% ERROR_delete_in_use | html %]" — it is in use by [% ERROR_num_patrons | html %] patron records
[% END %] [% IF ( ERROR_delete_not_found ) %]
Could not delete patron attribute type "[% ERROR_delete_not_found | html %]" — it was already absent from the database.
[% END %] [% IF ( available_attribute_types ) %] [% FOREACH attribute IN available_attribute_types %] [% IF attribute.class %]

[% attribute.lib | html %]

[% END %] [% FOREACH item IN attribute.items %] [% ELSE %] [% item.authorised_value_category | html %] [% END %] [% END %]
Code Description Library limitation Authorized value category Mandatory Actions
[% item.code | html %] [% item.description | html %] [% SET libraries = item.library_limits %] [% IF ( libraries && libraries.count > 0 ) %] [% branches_str = "" %] [% FOREACH branch IN libraries %] [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %] [% END %] [% IF libraries.count > 1 %] [% libraries.count | html %] library limitations [% ELSE %] [% libraries.count | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] [% IF ( CAN_user_parameters_manage_auth_values ) %] [% item.authorised_value_category | html %] [% IF ( item.mandatory ) -%] Yes [% ELSE -%] No [% END %] Edit Delete
[% END %] [% ELSE %]

There are no saved patron attribute types.

[% END %]
[% pagination_bar | $raw %]
[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]