|
Lines 52-68
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
| 52 |
); |
52 |
); |
| 53 |
|
53 |
|
| 54 |
my $library; |
54 |
my $library; |
| 55 |
if ($branchcode) { |
55 |
$library = Koha::Libraries->find($branchcode); |
| 56 |
$library = Koha::Libraries->find($branchcode); |
56 |
my @additional_fields = Koha::AdditionalFields->search( { tablename => 'branches' } )->as_list; |
| 57 |
my @additional_fields = Koha::AdditionalFields->search( { tablename => 'branches' } )->as_list; |
57 |
my @additional_field_values; |
| 58 |
my @additional_field_values; |
58 |
@additional_field_values = $library ? $library->get_additional_field_values_for_template : (); |
| 59 |
@additional_field_values = $library ? $library->get_additional_field_values_for_template : (); |
|
|
| 60 |
|
59 |
|
| 61 |
$template->param( |
60 |
$template->param( |
| 62 |
additional_fields => \@additional_fields, |
61 |
additional_fields => \@additional_fields, |
| 63 |
additional_field_values => @additional_field_values, |
62 |
additional_field_values => @additional_field_values, |
| 64 |
); |
63 |
); |
| 65 |
} |
|
|
| 66 |
|
64 |
|
| 67 |
if ( $op eq 'add_form' ) { |
65 |
if ( $op eq 'add_form' ) { |
| 68 |
$template->param( |
66 |
$template->param( |
| 69 |
- |
|
|