View | Details | Raw Unified | Return to bug 17855
Collapse All | Expand All

(-)a/installer/onboarding.pl (-51 lines)
Lines 218-248 elsif ( $step && $step == 3 ) { Link Here
218
    my $currentpatrons = values %currentpatrons;
218
    my $currentpatrons = values %currentpatrons;
219
    $template->param( 'patrons' => $currentpatrons );
219
    $template->param( 'patrons' => $currentpatrons );
220
220
221
#Find all library records in the database and hand them to the template to display in the library dropdown box
222
    my $libraries =
223
      Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
224
    $template->param(
225
        libraries   => $libraries,
226
        group_types => [
227
            {
228
                categorytype => 'searchdomain',
229
                categories   => [
230
                    Koha::LibraryCategories->search(
231
                        { categorytype => 'searchdomain' }
232
                    )
233
                ],
234
            },
235
            {
236
                categorytype => 'properties',
237
                categories   => [
238
                    Koha::LibraryCategories->search(
239
                        { categorytype => 'properties' }
240
                    )
241
                ],
242
            },
243
        ]
244
    );
245
246
#Find all patron categories in the database and hand them to the template to display in the patron category dropdown box
221
#Find all patron categories in the database and hand them to the template to display in the patron category dropdown box
247
    my $categories = Koha::Patron::Categories->search();
222
    my $categories = Koha::Patron::Categories->search();
248
    $template->param( 'categories' => $categories, );
223
    $template->param( 'categories' => $categories, );
Lines 456-486 elsif ( $step && $step == 5 ) { Link Here
456
    $itemtypes = Koha::ItemTypes->search();
431
    $itemtypes = Koha::ItemTypes->search();
457
    $template->param( itemtypes => $itemtypes, );
432
    $template->param( itemtypes => $itemtypes, );
458
433
459
  #Find all the exisiting libraries to display in a dropdown box in the template
460
    my $libraries =
461
      Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
462
    $template->param(
463
        libraries   => $libraries,
464
        group_types => [
465
            {
466
                categorytype => 'searchdomain',
467
                categories   => [
468
                    Koha::LibraryCategories->search(
469
                        { categorytype => 'searchdomain' }
470
                    )
471
                ],
472
            },
473
            {
474
                categorytype => 'properties',
475
                categories   => [
476
                    Koha::LibraryCategories->search(
477
                        { categorytype => 'properties' }
478
                    )
479
                ],
480
            },
481
        ]
482
    );
483
484
    my $input = CGI->new;
434
    my $input = CGI->new;
485
435
486
    my ( $template, $loggedinuser, $cookie ) =
436
    my ( $template, $loggedinuser, $cookie ) =
487
- 

Return to bug 17855