|
Lines 35-40
my $cgi = new CGI;
Link Here
|
| 35 |
my $action = $cgi->param('action') || ''; |
35 |
my $action = $cgi->param('action') || ''; |
| 36 |
my $course_id = $cgi->param('course_id') || ''; |
36 |
my $course_id = $cgi->param('course_id') || ''; |
| 37 |
my $barcode = $cgi->param('barcode') || ''; |
37 |
my $barcode = $cgi->param('barcode') || ''; |
|
|
38 |
my $return = $cgi->param('return') || ''; |
| 38 |
|
39 |
|
| 39 |
my $item = GetBiblioFromItemNumber( undef, $barcode ); |
40 |
my $item = GetBiblioFromItemNumber( undef, $barcode ); |
| 40 |
|
41 |
|
|
Lines 73-78
if ( $action eq 'lookup' ) {
Link Here
|
| 73 |
locations => GetAuthorisedValues('LOC'), |
74 |
locations => GetAuthorisedValues('LOC'), |
| 74 |
itypes => GetItemTypes( style => 'array' ), |
75 |
itypes => GetItemTypes( style => 'array' ), |
| 75 |
branches => GetBranchesLoop(), |
76 |
branches => GetBranchesLoop(), |
|
|
77 |
return => $return, |
| 76 |
); |
78 |
); |
| 77 |
|
79 |
|
| 78 |
} elsif ( $action eq 'add' ) { |
80 |
} elsif ( $action eq 'add' ) { |
|
Lines 90-95
if ( $action eq 'lookup' ) {
Link Here
|
| 90 |
staff_note => $cgi->param('staff_note'), |
92 |
staff_note => $cgi->param('staff_note'), |
| 91 |
public_note => $cgi->param('public_note'), |
93 |
public_note => $cgi->param('public_note'), |
| 92 |
); |
94 |
); |
|
|
95 |
|
| 96 |
if ( $return ) { |
| 97 |
print $cgi->redirect("/cgi-bin/koha/course_reserves/course-details.pl?course_id=$return"); |
| 98 |
exit; |
| 99 |
} |
| 93 |
} |
100 |
} |
| 94 |
|
101 |
|
| 95 |
output_html_with_http_headers $cgi, $cookie, $template->output; |
102 |
output_html_with_http_headers $cgi, $cookie, $template->output; |