Lines 196-202
if ( $op eq 'add_form' ) {
Link Here
|
196 |
$row_data{liblibrarian} = CGI::escapeHTML( $data->{'liblibrarian'} ); |
196 |
$row_data{liblibrarian} = CGI::escapeHTML( $data->{'liblibrarian'} ); |
197 |
$row_data{libopac} = CGI::escapeHTML( $data->{'libopac'} ); |
197 |
$row_data{libopac} = CGI::escapeHTML( $data->{'libopac'} ); |
198 |
$row_data{seealso} = CGI::escapeHTML( $data->{'seealso'} ); |
198 |
$row_data{seealso} = CGI::escapeHTML( $data->{'seealso'} ); |
|
|
199 |
$row_data{repeatable} = $data->{'repeatable'} ? 1 : 0; |
200 |
$row_data{mandatory} = $data->{'mandatory'} ? 1 : 0; |
199 |
$row_data{important} = $data->{'important'} ? 1 : 0; |
201 |
$row_data{important} = $data->{'important'} ? 1 : 0; |
|
|
202 |
$row_data{isurl} = $data->{'isurl'} ? 1 : 0; |
200 |
$row_data{kohafield} = { |
203 |
$row_data{kohafield} = { |
201 |
id => "kohafield$i", |
204 |
id => "kohafield$i", |
202 |
values => \@kohafields, |
205 |
values => \@kohafields, |
Lines 217-244
if ( $op eq 'add_form' ) {
Link Here
|
217 |
values => \@authtypes, |
220 |
values => \@authtypes, |
218 |
default => $data->{'authtypecode'}, |
221 |
default => $data->{'authtypecode'}, |
219 |
}; |
222 |
}; |
220 |
$row_data{repeatable} = CGI::checkbox( |
|
|
221 |
-name => "repeatable$i", |
222 |
-checked => $data->{'repeatable'} ? 'checked' : '', |
223 |
-value => 1, |
224 |
-label => '', |
225 |
-id => "repeatable$i" |
226 |
); |
227 |
$row_data{mandatory} = CGI::checkbox( |
228 |
-name => "mandatory$i", |
229 |
-checked => $data->{'mandatory'} ? 'checked' : '', |
230 |
-value => 1, |
231 |
-label => '', |
232 |
-id => "mandatory$i" |
233 |
); |
234 |
$row_data{hidden} = CGI::escapeHTML( $data->{hidden} ); |
223 |
$row_data{hidden} = CGI::escapeHTML( $data->{hidden} ); |
235 |
$row_data{isurl} = CGI::checkbox( |
|
|
236 |
-name => "isurl$i", |
237 |
-id => "isurl$i", |
238 |
-checked => $data->{'isurl'} ? 'checked' : '', |
239 |
-value => 1, |
240 |
-label => '' |
241 |
); |
242 |
$row_data{row} = $i; |
224 |
$row_data{row} = $i; |
243 |
$row_data{link} = CGI::escapeHTML( $data->{'link'} ); |
225 |
$row_data{link} = CGI::escapeHTML( $data->{'link'} ); |
244 |
push( @loop_data, \%row_data ); |
226 |
push( @loop_data, \%row_data ); |
Lines 268-294
if ( $op eq 'add_form' ) {
Link Here
|
268 |
default => "$data->{'kohafield'}", |
250 |
default => "$data->{'kohafield'}", |
269 |
}; |
251 |
}; |
270 |
$row_data{hidden} = ""; |
252 |
$row_data{hidden} = ""; |
271 |
$row_data{repeatable} = CGI::checkbox( |
|
|
272 |
-name => "repeatable$i", |
273 |
-id => "repeatable$i", |
274 |
-checked => '', |
275 |
-value => 1, |
276 |
-label => '' |
277 |
); |
278 |
$row_data{mandatory} = CGI::checkbox( |
279 |
-name => "mandatory$i", |
280 |
-id => "mandatory$i", |
281 |
-checked => '', |
282 |
-value => 1, |
283 |
-label => '' |
284 |
); |
285 |
$row_data{isurl} = CGI::checkbox( |
286 |
-name => "isurl$i", |
287 |
-id => "isurl$i", |
288 |
-checked => '', |
289 |
-value => 1, |
290 |
-label => '' |
291 |
); |
292 |
$row_data{value_builder} = { |
253 |
$row_data{value_builder} = { |
293 |
id => "value_builder$i", |
254 |
id => "value_builder$i", |
294 |
values => \@value_builder, |
255 |
values => \@value_builder, |