Lines 104-110
if ( $op eq 'show' ) {
Link Here
|
104 |
my @patron_attributes_values; |
104 |
my @patron_attributes_values; |
105 |
my @patron_attributes_codes; |
105 |
my @patron_attributes_codes; |
106 |
my $patron_attribute_types = C4::Members::AttributeTypes::GetAttributeTypes_hashref('all'); |
106 |
my $patron_attribute_types = C4::Members::AttributeTypes::GetAttributeTypes_hashref('all'); |
107 |
my $patron_categories = C4::Members::GetBorrowercategoryList; |
107 |
my @patron_categories = Koha::Patron::Categories->search({}, {order_by => ['description']}); |
108 |
for ( values %$patron_attribute_types ) { |
108 |
for ( values %$patron_attribute_types ) { |
109 |
my $attr_type = C4::Members::AttributeTypes->fetch( $_->{code} ); |
109 |
my $attr_type = C4::Members::AttributeTypes->fetch( $_->{code} ); |
110 |
my $options = $attr_type->authorised_value_category |
110 |
my $options = $attr_type->authorised_value_category |
Lines 118-125
if ( $op eq 'show' ) {
Link Here
|
118 |
|
118 |
|
119 |
my $category_code = $_->{category_code}; |
119 |
my $category_code = $_->{category_code}; |
120 |
my ( $category_lib ) = map { |
120 |
my ( $category_lib ) = map { |
121 |
( defined $category_code and $_->{categorycode} eq $category_code ) ? $_->{description} : () |
121 |
( defined $category_code and $_->categorycode eq $category_code ) ? $_->description : () |
122 |
} @$patron_categories; |
122 |
} @patron_categories; |
123 |
push @patron_attributes_codes, |
123 |
push @patron_attributes_codes, |
124 |
{ |
124 |
{ |
125 |
attribute_code => $_->{code}, |
125 |
attribute_code => $_->{code}, |
Lines 144-152
if ( $op eq 'show' ) {
Link Here
|
144 |
my @branches_option; |
144 |
my @branches_option; |
145 |
push @branches_option, { value => $_->{value}, lib => $_->{branchname} } for @$branches; |
145 |
push @branches_option, { value => $_->{value}, lib => $_->{branchname} } for @$branches; |
146 |
unshift @branches_option, { value => "", lib => "" }; |
146 |
unshift @branches_option, { value => "", lib => "" }; |
147 |
my $categories = GetBorrowercategoryList; |
|
|
148 |
my @categories_option; |
147 |
my @categories_option; |
149 |
push @categories_option, { value => $_->{categorycode}, lib => $_->{description} } for @$categories; |
148 |
push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories; |
150 |
unshift @categories_option, { value => "", lib => "" }; |
149 |
unshift @categories_option, { value => "", lib => "" }; |
151 |
my $bsort1 = GetAuthorisedValues("Bsort1"); |
150 |
my $bsort1 = GetAuthorisedValues("Bsort1"); |
152 |
my @sort1_option; |
151 |
my @sort1_option; |
153 |
- |
|
|