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