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

(-)a/opac/opac-memberentry.pl (-2 / +6 lines)
Lines 65-75 if ( $action eq q{} ) { Link Here
65
65
66
my $mandatory = GetMandatoryFields($action);
66
my $mandatory = GetMandatoryFields($action);
67
67
68
my $branches = GetBranchesLoop();
69
if ( my @libraries_to_display = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList') ) {
70
    $branches = [ map { my $b = $_; grep( /^$b->{branchcode}$/, @libraries_to_display ) ? $b : () } @$branches ];
71
}
72
68
$template->param(
73
$template->param(
69
    action            => $action,
74
    action            => $action,
70
    hidden            => GetHiddenFields( $mandatory, 'registration' ),
75
    hidden            => GetHiddenFields( $mandatory, 'registration' ),
71
    mandatory         => $mandatory,
76
    mandatory         => $mandatory,
72
    branches          => GetBranchesLoop(),
77
    branches          => $branches,
73
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
78
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
74
);
79
);
75
80
76
- 

Return to bug 16274