|
Lines 47-56
my $dbh = C4::Context->dbh;
Link Here
|
| 47 |
if ( $op eq 'add_form' ) { |
47 |
if ( $op eq 'add_form' ) { |
| 48 |
my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); |
48 |
my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); |
| 49 |
my $framework; |
49 |
my $framework; |
|
|
50 |
my $child_frameworks; |
| 50 |
if ($frameworkcode) { |
51 |
if ($frameworkcode) { |
| 51 |
$framework = Koha::BiblioFrameworks->find($frameworkcode); |
52 |
$framework = Koha::BiblioFrameworks->find($frameworkcode); |
|
|
53 |
$child_frameworks = Koha::BiblioFrameworks->search( |
| 54 |
{ parent_frameworkcode => $frameworkcode }, |
| 55 |
{ order_by => ['frameworktext'], } |
| 56 |
); |
| 52 |
} |
57 |
} |
| 53 |
$template->param( |
58 |
$template->param( |
|
|
59 |
child_frameworks => $child_frameworks, |
| 54 |
framework => $framework, |
60 |
framework => $framework, |
| 55 |
frameworks => $frameworks, |
61 |
frameworks => $frameworks, |
| 56 |
); |
62 |
); |