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

(-)a/C4/Items.pm (-3 / +1 lines)
Lines 2574-2579 sub PrepareItemrecordDisplay { Link Here
2574
                $subfield_data{subfield}      = $subfield;
2574
                $subfield_data{subfield}      = $subfield;
2575
                $subfield_data{countsubfield} = $cntsubf++;
2575
                $subfield_data{countsubfield} = $cntsubf++;
2576
                $subfield_data{kohafield}     = $tagslib->{$tag}->{$subfield}->{'kohafield'};
2576
                $subfield_data{kohafield}     = $tagslib->{$tag}->{$subfield}->{'kohafield'};
2577
                $subfield_data{id}            = "tag_".$tag."_subfield_".$subfield."_".int(rand(1000000));
2577
2578
2578
                #        $subfield_data{marc_lib}=$tagslib->{$tag}->{$subfield}->{lib};
2579
                #        $subfield_data{marc_lib}=$tagslib->{$tag}->{$subfield}->{lib};
2579
                $subfield_data{marc_lib}   = $tagslib->{$tag}->{$subfield}->{lib};
2580
                $subfield_data{marc_lib}   = $tagslib->{$tag}->{$subfield}->{lib};
Lines 2712-2719 sub PrepareItemrecordDisplay { Link Here
2712
                            my $extended_param = plugin_parameters( $dbh, $temp, $tagslib, $subfield_data{id}, undef );
2713
                            my $extended_param = plugin_parameters( $dbh, $temp, $tagslib, $subfield_data{id}, undef );
2713
                            my ( $function_name, $javascript ) = plugin_javascript( $dbh, $temp, $tagslib, $subfield_data{id}, undef );
2714
                            my ( $function_name, $javascript ) = plugin_javascript( $dbh, $temp, $tagslib, $subfield_data{id}, undef );
2714
                            $subfield_data{random}     = int(rand(1000000));    # why do we need 2 different randoms?
2715
                            $subfield_data{random}     = int(rand(1000000));    # why do we need 2 different randoms?
2715
                            my $index_subfield = int(rand(1000000));
2716
                            $subfield_data{id} = "tag_".$tag."_subfield_".$subfield."_".$index_subfield;
2717
                            $subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255"
2716
                            $subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255"
2718
                                onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');"
2717
                                onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');"
2719
                                 onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" />
2718
                                 onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" />
2720
- 

Return to bug 7451