Home ›
Administration › [% IF ( display_list ) %]Patron attribute types[% ELSE %]
Patron attribute types[% END %]
[% IF ( attribute_type_form ) %]
[% IF ( edit_attribute_type ) %]
› Modify patron attribute type
@@ -68,7 +48,7 @@ function CheckAttributeTypeForm(f) {
[% IF ( WARNING_extended_attributes_off ) %]
-
Because the 'ExtendedPatronAttributes` system preference is currently not enabled, extended patron attributes cannot be given to patron records. Go
here if you wish to enable this feature.
+
Because the 'ExtendedPatronAttributes` system preference is currently not enabled, extended patron attributes cannot be given to patron records. Go
here if you wish to enable this feature.
[% END %]
[% IF ( attribute_type_form ) %]
@@ -82,7 +62,7 @@ function CheckAttributeTypeForm(f) {
— one with that code already exists.
[% END %]
-
[% END %]
[% IF ( delete_attribute_type_form ) %]
-
Confirm deletion of patron attribute type '[% code |html %]' ([% description %])?
-
-
+
+
Confirm deletion of patron attribute type '[% code |html %]' ([% description %])?
+
+
+
[% END %]
[% IF ( display_list ) %]
-
+
-
Patron Attribute Types
+
Patron attribute types
[% IF ( added_attribute_type ) %]
Added patron attribute type "[% added_attribute_type %]"
[% END %]
@@ -203,23 +238,54 @@ function CheckAttributeTypeForm(f) {
Could not delete patron attribute type "[% ERROR_delete_not_found %]"
— it was already absent from the database.
[% END %]
-[% IF ( available_attribute_types ) %]
-
- Code |
- Description |
- Actions |
-
- [% FOREACH available_attribute_type IN available_attribute_types %]
-
- [% available_attribute_type.code |html %] |
- [% available_attribute_type.description %] |
-
- Edit
- Delete
- |
-
+[% IF ( available_attribute_types ) %]
+ [% FOREACH attribute IN available_attribute_types %]
+ [% IF attribute.class %]
+ [% attribute.lib %]
+ [% END %]
+
+
+
+ Code |
+ Description |
+ Branches limitation |
+ Actions |
+
+
+
+ [% FOREACH item IN attribute.items %]
+
+ [% item.code |html %] |
+ [% item.description %] |
+
+ [% IF ( item.branches && item.branches.size > 0 ) %]
+ [% branches_str = "" %]
+ [% FOREACH branch IN item.branches %]
+ [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
+ [% END %]
+
+ [% IF item.branches.size > 1 %]
+ [% item.branches.size %] branches limitations
+ [% ELSE %]
+ [% item.branches.size %] branch limitation
+ [% END %]
+
+ [% ELSE %]
+ No limitation
+ [% END %]
+ |
+
+ Edit
+ Delete
+ |
+
+ [% END %]
+
+
[% END %]
-
[% ELSE %]
There are no saved patron attribute types.
[% END %]
+[% ELSE %]
+
There are no saved patron attribute types.
+[% END %]
[% pagination_bar %]