Lines 96-125
if ( $op eq 'add_form' ) {
Link Here
|
96 |
} |
96 |
} |
97 |
} |
97 |
} |
98 |
elsif ( $op eq 'add' ) { |
98 |
elsif ( $op eq 'add' ) { |
99 |
my $parameters = { |
99 |
add_opac_new( |
100 |
title => $title, |
100 |
{ |
101 |
new => $new, |
101 |
title => $title, |
102 |
lang => $lang, |
102 |
new => $new, |
103 |
expirationdate => $expirationdate, |
103 |
lang => $lang, |
104 |
timestamp => $timestamp, |
104 |
expirationdate => $expirationdate, |
105 |
number => $number, |
105 |
timestamp => $timestamp, |
106 |
branchcode => $branchcode, |
106 |
number => $number, |
107 |
}; |
107 |
branchcode => $branchcode, |
108 |
add_opac_new( $parameters ); |
108 |
} |
|
|
109 |
); |
109 |
print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); |
110 |
print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); |
110 |
} |
111 |
} |
111 |
elsif ( $op eq 'edit' ) { |
112 |
elsif ( $op eq 'edit' ) { |
112 |
my $parameters = { |
113 |
upd_opac_new( |
113 |
idnew => $id, |
114 |
{ |
114 |
title => $title, |
115 |
idnew => $id, |
115 |
new => $new, |
116 |
title => $title, |
116 |
lang => $lang, |
117 |
new => $new, |
117 |
expirationdate => $expirationdate, |
118 |
lang => $lang, |
118 |
timestamp => $timestamp, |
119 |
expirationdate => $expirationdate, |
119 |
number => $number, |
120 |
timestamp => $timestamp, |
120 |
branchcode => $branchcode, |
121 |
number => $number, |
121 |
}; |
122 |
branchcode => $branchcode, |
122 |
upd_opac_new( $parameters ); |
123 |
} |
|
|
124 |
); |
123 |
print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); |
125 |
print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); |
124 |
} |
126 |
} |
125 |
elsif ( $op eq 'del' ) { |
127 |
elsif ( $op eq 'del' ) { |
126 |
- |
|
|