|
Lines 61-68
my $dbh = C4::Context->dbh;
Link Here
|
| 61 |
|
61 |
|
| 62 |
my $shelf = Koha::Virtualshelves->find( $shelfid ); |
62 |
my $shelf = Koha::Virtualshelves->find( $shelfid ); |
| 63 |
if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { |
63 |
if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { |
| 64 |
|
64 |
if ( $email ) { |
| 65 |
if ( $email ) { |
|
|
| 66 |
my $comment = $query->param('comment'); |
65 |
my $comment = $query->param('comment'); |
| 67 |
|
66 |
|
| 68 |
my ( $template2, $borrowernumber, $cookie ) = get_template_and_user( |
67 |
my ( $template2, $borrowernumber, $cookie ) = get_template_and_user( |
|
Lines 180-193
END_OF_BODY
Link Here
|
| 180 |
); |
179 |
); |
| 181 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
180 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
| 182 |
|
181 |
|
| 183 |
|
182 |
} else { |
| 184 |
}else{ |
|
|
| 185 |
$template->param( shelfid => $shelfid, |
183 |
$template->param( shelfid => $shelfid, |
| 186 |
url => "/cgi-bin/koha/opac-sendshelf.pl", |
184 |
url => "/cgi-bin/koha/opac-sendshelf.pl", |
| 187 |
); |
185 |
); |
| 188 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
186 |
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; |
| 189 |
} |
187 |
} |
| 190 |
|
|
|
| 191 |
} else { |
188 |
} else { |
| 192 |
$template->param( invalidlist => 1, |
189 |
$template->param( invalidlist => 1, |
| 193 |
url => "/cgi-bin/koha/opac-sendshelf.pl", |
190 |
url => "/cgi-bin/koha/opac-sendshelf.pl", |
| 194 |
- |
|
|