Lines 196-205
if ( $op eq 'cud-show' || $op eq 'show' ) {
Link Here
|
196 |
my @categories_option; |
196 |
my @categories_option; |
197 |
push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories; |
197 |
push @categories_option, { value => $_->categorycode, lib => $_->description } for @patron_categories; |
198 |
unshift @categories_option, { value => "", lib => "" }; |
198 |
unshift @categories_option, { value => "", lib => "" }; |
199 |
my @protected_option; |
|
|
200 |
push @protected_option, { value => 1, lib => "Yes" }; |
201 |
push @protected_option, { value => 0, lib => "No" }; |
202 |
unshift @protected_option, { value => "", lib => "" }; |
203 |
my $bsort1 = GetAuthorisedValues("Bsort1"); |
199 |
my $bsort1 = GetAuthorisedValues("Bsort1"); |
204 |
my @sort1_option; |
200 |
my @sort1_option; |
205 |
push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1; |
201 |
push @sort1_option, { value => $_->{authorised_value}, lib => $_->{lib} } for @$bsort1; |
Lines 342-348
if ( $op eq 'cud-show' || $op eq 'show' ) {
Link Here
|
342 |
|
338 |
|
343 |
if ($logged_in_user->is_superlibrarian) { |
339 |
if ($logged_in_user->is_superlibrarian) { |
344 |
push @fields, { name => "password_expiration_date", type => "date" } ; |
340 |
push @fields, { name => "password_expiration_date", type => "date" } ; |
345 |
push @fields, { name => "protected", type => "select", option => \@protected_option }; |
341 |
push @fields, { name => "protected", type => "bool" }; |
346 |
} |
342 |
} |
347 |
|
343 |
|
348 |
$template->param( 'patron_attributes_codes', \@patron_attributes_codes ); |
344 |
$template->param( 'patron_attributes_codes', \@patron_attributes_codes ); |
349 |
- |
|
|