Lines 36-41
my $index = $input->param('index'); # MARC editor input field id
Link Here
|
36 |
my $term = $input->param('term'); |
36 |
my $term = $input->param('term'); |
37 |
my $id = $input->param('id'); |
37 |
my $id = $input->param('id'); |
38 |
my $msg = $input->param('msg'); |
38 |
my $msg = $input->param('msg'); |
|
|
39 |
my $browsecategory = $input->param('browsecategory'); |
39 |
|
40 |
|
40 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
41 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
41 |
{ template_name => "tools/upload.tt", |
42 |
{ template_name => "tools/upload.tt", |
Lines 58-63
if ( $op eq 'new' ) {
Link Here
|
58 |
); |
59 |
); |
59 |
output_html_with_http_headers $input, $cookie, $template->output; |
60 |
output_html_with_http_headers $input, $cookie, $template->output; |
60 |
|
61 |
|
|
|
62 |
} elsif ( $op eq 'browse' ) { |
63 |
my $uploads; |
64 |
if ($browsecategory){ |
65 |
$uploads = Koha::UploadedFiles->search({ |
66 |
uploadcategorycode => $browsecategory, |
67 |
$plugin? ( public => 1 ): (), |
68 |
})->unblessed; |
69 |
} |
70 |
|
71 |
$template->param( |
72 |
mode => 'report', |
73 |
msg => $msg, |
74 |
uploads => $uploads, |
75 |
); |
76 |
output_html_with_http_headers $input, $cookie, $template->output; |
77 |
|
61 |
} elsif ( $op eq 'search' ) { |
78 |
} elsif ( $op eq 'search' ) { |
62 |
my $uploads; |
79 |
my $uploads; |
63 |
if( $id ) { # might be a comma separated list |
80 |
if( $id ) { # might be a comma separated list |
64 |
- |
|
|