Lines 58-64
sub GetURL {
Link Here
|
58 |
|
58 |
|
59 |
sub all { |
59 |
sub all { |
60 |
my ( $self, $params ) = @_; |
60 |
my ( $self, $params ) = @_; |
61 |
my $selected = $params->{selected} || (); |
61 |
my $selected = $params->{selected} // (); |
62 |
my $unfiltered = $params->{unfiltered} || 0; |
62 |
my $unfiltered = $params->{unfiltered} || 0; |
63 |
my $search_params = $params->{search_params} || {}; |
63 |
my $search_params = $params->{search_params} || {}; |
64 |
my $do_not_select_my_library = $params->{do_not_select_my_library} || 0; # By default we select the library of the logged in user if no selected passed |
64 |
my $do_not_select_my_library = $params->{do_not_select_my_library} || 0; # By default we select the library of the logged in user if no selected passed |
Lines 70-76
sub all {
Link Here
|
70 |
my @selected = |
70 |
my @selected = |
71 |
ref $selected eq 'Koha::Libraries' |
71 |
ref $selected eq 'Koha::Libraries' |
72 |
? $selected->get_column('branchcode') |
72 |
? $selected->get_column('branchcode') |
73 |
: $selected; |
73 |
: ( $selected // () ); |
74 |
|
74 |
|
75 |
my $libraries = $unfiltered |
75 |
my $libraries = $unfiltered |
76 |
? Koha::Libraries->search( $search_params, { order_by => ['branchname'] } )->unblessed |
76 |
? Koha::Libraries->search( $search_params, { order_by => ['branchname'] } )->unblessed |
77 |
- |
|
|