View | Details | Raw Unified | Return to bug 6657
Collapse All | Expand All

(-)a/C4/Biblio.pm (-4 / +1 lines)
Lines 2515-2527 sub TransformHtmlToMarc { Link Here
2515
2515
2516
    # creating a new record
2516
    # creating a new record
2517
    my $record = MARC::Record->new();
2517
    my $record = MARC::Record->new();
2518
    my $i      = 0;
2519
    my @fields;
2518
    my @fields;
2520
    my ($biblionumbertagfield, $biblionumbertagsubfield) = (-1, -1);
2519
    my ($biblionumbertagfield, $biblionumbertagsubfield) = (-1, -1);
2521
    ($biblionumbertagfield, $biblionumbertagsubfield) =
2520
    ($biblionumbertagfield, $biblionumbertagsubfield) =
2522
        &GetMarcFromKohaField( "biblio.biblionumber", '' ) if $isbiblio;
2521
        &GetMarcFromKohaField( "biblio.biblionumber", '' ) if $isbiblio;
2523
#FIXME This code assumes that the CGI params will be in the same order as the fields in the template; this is no absolute guarantee!
2522
#FIXME This code assumes that the CGI params will be in the same order as the fields in the template; this is no absolute guarantee!
2524
    while ( $params[$i] ) {    # browse all CGI params
2523
    for (my $i = 0; $params[$i]; $i++ ) {    # browse all CGI params
2525
        my $param    = $params[$i];
2524
        my $param    = $params[$i];
2526
        my $newfield = 0;
2525
        my $newfield = 0;
2527
2526
Lines 2585-2591 sub TransformHtmlToMarc { Link Here
2585
            }
2584
            }
2586
            push @fields, $newfield if ($newfield);
2585
            push @fields, $newfield if ($newfield);
2587
        }
2586
        }
2588
        $i++;
2589
    }
2587
    }
2590
2588
2591
    $record->append_fields(@fields);
2589
    $record->append_fields(@fields);
2592
- 

Return to bug 6657