|
Lines 233-263
elsif ( $step && $step == 3 ) {
Link Here
|
| 233 |
$template->param( 'patrons' =>$currentpatrons); |
233 |
$template->param( 'patrons' =>$currentpatrons); |
| 234 |
|
234 |
|
| 235 |
|
235 |
|
| 236 |
#Find all library records in the database and hand them to the template to display in the library dropdown box |
|
|
| 237 |
my $libraries = |
| 238 |
Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); |
| 239 |
$template->param( |
| 240 |
libraries => $libraries, |
| 241 |
group_types => [ |
| 242 |
{ |
| 243 |
categorytype => 'searchdomain', |
| 244 |
categories => [ |
| 245 |
Koha::LibraryCategories->search( |
| 246 |
{ categorytype => 'searchdomain' } |
| 247 |
) |
| 248 |
], |
| 249 |
}, |
| 250 |
{ |
| 251 |
categorytype => 'properties', |
| 252 |
categories => [ |
| 253 |
Koha::LibraryCategories->search( |
| 254 |
{ categorytype => 'properties' } |
| 255 |
) |
| 256 |
], |
| 257 |
}, |
| 258 |
] |
| 259 |
); |
| 260 |
|
| 261 |
#Find all patron categories in the database and hand them to the template to display in the patron category dropdown box |
236 |
#Find all patron categories in the database and hand them to the template to display in the patron category dropdown box |
| 262 |
my $categories = Koha::Patron::Categories->search(); |
237 |
my $categories = Koha::Patron::Categories->search(); |
| 263 |
$template->param( 'categories' => $categories, ); |
238 |
$template->param( 'categories' => $categories, ); |
|
Lines 465-495
elsif ( $step && $step == 5 ) {
Link Here
|
| 465 |
$itemtypes = Koha::ItemTypes->search(); |
440 |
$itemtypes = Koha::ItemTypes->search(); |
| 466 |
$template->param( itemtypes => $itemtypes, ); |
441 |
$template->param( itemtypes => $itemtypes, ); |
| 467 |
|
442 |
|
| 468 |
#Find all the exisiting libraries to display in a dropdown box in the template |
|
|
| 469 |
my $libraries = |
| 470 |
Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); |
| 471 |
$template->param( |
| 472 |
libraries => $libraries, |
| 473 |
group_types => [ |
| 474 |
{ |
| 475 |
categorytype => 'searchdomain', |
| 476 |
categories => [ |
| 477 |
Koha::LibraryCategories->search( |
| 478 |
{ categorytype => 'searchdomain' } |
| 479 |
) |
| 480 |
], |
| 481 |
}, |
| 482 |
{ |
| 483 |
categorytype => 'properties', |
| 484 |
categories => [ |
| 485 |
Koha::LibraryCategories->search( |
| 486 |
{ categorytype => 'properties' } |
| 487 |
) |
| 488 |
], |
| 489 |
}, |
| 490 |
] |
| 491 |
); |
| 492 |
|
| 493 |
my $input = CGI->new; |
443 |
my $input = CGI->new; |
| 494 |
my $dbh = C4::Context->dbh; |
444 |
my $dbh = C4::Context->dbh; |
| 495 |
|
445 |
|
| 496 |
- |
|
|