@@ -, +, @@ libraries --- opac/opac-memberentry.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/opac/opac-memberentry.pl +++ a/opac/opac-memberentry.pl @@ -63,12 +63,17 @@ if ( $action eq q{} ) { my $mandatory = GetMandatoryFields($action); +my $branches = GetBranchesLoop(); +if ( my @libraries_to_display = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList') ) { + $branches = [ map { my $b = $_; grep( /^$b->{branchcode}$/, @libraries_to_display ) ? $b : () } @$branches ]; +} + $template->param( action => $action, hidden => GetHiddenFields( $mandatory, 'registration' ), mandatory => $mandatory, member_titles => GetTitles() || undef, - branches => GetBranchesLoop(), + branches => $branches, OPACPatronDetails => C4::Context->preference('OPACPatronDetails'), ); --