Lines 285-291
elsif ( $op eq 'add_validate' ) {
Link Here
|
285 |
my $maxlength = $maxlength[$i] ? $maxlength[$i] : 9999; |
285 |
my $maxlength = $maxlength[$i] ? $maxlength[$i] : 9999; |
286 |
|
286 |
|
287 |
if (defined($liblibrarian) && $liblibrarian ne "") { |
287 |
if (defined($liblibrarian) && $liblibrarian ne "") { |
288 |
unless ( C4::Context->config('demo') or C4::Context->config('demo') eq 1 ) { |
288 |
my $is_demo = C4::Context->config('demo') || ''; |
|
|
289 |
if ( $is_demo ne '1' ) { |
289 |
if (marc_subfield_structure_exists($tagfield, $tagsubfield, $frameworkcode)) { |
290 |
if (marc_subfield_structure_exists($tagfield, $tagsubfield, $frameworkcode)) { |
290 |
$sth_update->execute( |
291 |
$sth_update->execute( |
291 |
$tagfield, |
292 |
$tagfield, |
Lines 376-382
elsif ( $op eq 'delete_confirm' ) {
Link Here
|
376 |
} |
377 |
} |
377 |
elsif ( $op eq 'delete_confirmed' ) { |
378 |
elsif ( $op eq 'delete_confirmed' ) { |
378 |
my $dbh = C4::Context->dbh; |
379 |
my $dbh = C4::Context->dbh; |
379 |
unless ( C4::Context->config('demo') or C4::Context->config('demo') eq 1 ) { |
380 |
my $is_demo = C4::Context->config('demo') || ''; |
|
|
381 |
if ( $is_demo ne '1' ) { |
380 |
my $sth = |
382 |
my $sth = |
381 |
$dbh->prepare( |
383 |
$dbh->prepare( |
382 |
"delete from marc_subfield_structure where tagfield=? and tagsubfield=? and frameworkcode=?" |
384 |
"delete from marc_subfield_structure where tagfield=? and tagsubfield=? and frameworkcode=?" |
383 |
- |
|
|