Lines 32-37
use Koha::Patron::Modifications;
Link Here
|
32 |
use C4::Scrubber; |
32 |
use C4::Scrubber; |
33 |
use Email::Valid; |
33 |
use Email::Valid; |
34 |
use Koha::DateUtils; |
34 |
use Koha::DateUtils; |
|
|
35 |
use Koha::Libraries; |
35 |
use Koha::Patron::Images; |
36 |
use Koha::Patron::Images; |
36 |
use Koha::Token; |
37 |
use Koha::Token; |
37 |
|
38 |
|
Lines 65-74
if ( $action eq q{} ) {
Link Here
|
65 |
|
66 |
|
66 |
my $mandatory = GetMandatoryFields($action); |
67 |
my $mandatory = GetMandatoryFields($action); |
67 |
|
68 |
|
|
|
69 |
my @libraries = Koha::Libraries->search; |
70 |
if ( my @libraries_to_display = split '\|', C4::Context->preference('PatronSelfRegistrationLibraryList') ) { |
71 |
@libraries = map { my $b = $_; my $branchcode = $_->branchcode; grep( /^$branchcode$/, @libraries_to_display ) ? $b : () } @libraries; |
72 |
} |
73 |
|
68 |
$template->param( |
74 |
$template->param( |
69 |
action => $action, |
75 |
action => $action, |
70 |
hidden => GetHiddenFields( $mandatory, 'registration' ), |
76 |
hidden => GetHiddenFields( $mandatory, 'registration' ), |
71 |
mandatory => $mandatory, |
77 |
mandatory => $mandatory, |
|
|
78 |
libraries => \@libraries, |
72 |
OPACPatronDetails => C4::Context->preference('OPACPatronDetails'), |
79 |
OPACPatronDetails => C4::Context->preference('OPACPatronDetails'), |
73 |
); |
80 |
); |
74 |
|
81 |
|
75 |
- |
|
|