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

(-)a/C4/Items.pm (-5 / +5 lines)
Lines 2780-2800 sub PrepareItemrecordDisplay { Link Here
2780
                            my $extended_param = plugin_parameters( $dbh, undef, $tagslib, $subfield_data{id}, undef );
2780
                            my $extended_param = plugin_parameters( $dbh, undef, $tagslib, $subfield_data{id}, undef );
2781
                            my ( $function_name, $javascript ) = plugin_javascript( $dbh, undef, $tagslib, $subfield_data{id}, undef );
2781
                            my ( $function_name, $javascript ) = plugin_javascript( $dbh, undef, $tagslib, $subfield_data{id}, undef );
2782
                            $subfield_data{random}     = int(rand(1000000));    # why do we need 2 different randoms?
2782
                            $subfield_data{random}     = int(rand(1000000));    # why do we need 2 different randoms?
2783
                            $subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255"
2783
                            $subfield_data{marc_value} = qq[<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255"
2784
                                onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');"
2784
                                onfocus="Focus$function_name($subfield_data{random}, '$subfield_data{id}');"
2785
                                 onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" />
2785
                                 onblur=" Blur$function_name($subfield_data{random}, '$subfield_data{id}');" />
2786
                                <a href="#" class="buttonDot" onclick="Clic$function_name('$subfield_data{id}'); return false;" title="Tag Editor">...</a>
2786
                                <a href="#" class="buttonDot" onclick="Clic$function_name('$subfield_data{id}'); return false;" title="Tag Editor">...</a>
2787
                                $javascript];
2787
                                $javascript];
2788
                        } else {
2788
                        } else {
2789
                            warn "Plugin Failed: $plugin";
2789
                            warn "Plugin Failed: $plugin";
2790
                            $subfield_data{marc_value} = qq(<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" />); # supply default input form
2790
                            $subfield_data{marc_value} = qq(<input tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" />); # supply default input form
2791
                        }
2791
                        }
2792
                }
2792
                }
2793
                elsif ( $tag eq '' ) {       # it's an hidden field
2793
                elsif ( $tag eq '' ) {       # it's an hidden field
2794
                    $subfield_data{marc_value} = qq(<input type="hidden" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" value="$defaultvalue" />);
2794
                    $subfield_data{marc_value} = qq(<input type="hidden" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" />);
2795
                }
2795
                }
2796
                elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) {   # FIXME: shouldn't input type be "hidden" ?
2796
                elsif ( $tagslib->{$tag}->{$subfield}->{'hidden'} ) {   # FIXME: shouldn't input type be "hidden" ?
2797
                    $subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" value="$defaultvalue" />);
2797
                    $subfield_data{marc_value} = qq(<input type="text" tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" value="$defaultvalue" />);
2798
                }
2798
                }
2799
                elsif ( length($defaultvalue) > 100
2799
                elsif ( length($defaultvalue) > 100
2800
                            or (C4::Context->preference("marcflavour") eq "UNIMARC" and
2800
                            or (C4::Context->preference("marcflavour") eq "UNIMARC" and
Lines 2803-2809 sub PrepareItemrecordDisplay { Link Here
2803
                                  500 <= $tag && $tag < 600                     )
2803
                                  500 <= $tag && $tag < 600                     )
2804
                          ) {
2804
                          ) {
2805
                    # oversize field (textarea)
2805
                    # oversize field (textarea)
2806
                    $subfield_data{marc_value} = qq(<textarea tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255">$defaultvalue</textarea>\n");
2806
                    $subfield_data{marc_value} = qq(<textarea tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255">$defaultvalue</textarea>\n");
2807
                } else {
2807
                } else {
2808
                    $subfield_data{marc_value} = "<input type=\"text\" name=\"field_value\" value=\"$defaultvalue\" size=\"50\" maxlength=\"255\" />";
2808
                    $subfield_data{marc_value} = "<input type=\"text\" name=\"field_value\" value=\"$defaultvalue\" size=\"50\" maxlength=\"255\" />";
2809
                }
2809
                }
(-)a/cataloguing/additem.pl (-1 / +1 lines)
Lines 154-160 sub generate_subfield_form { Link Here
154
	    my $input = new CGI;
154
	    my $input = new CGI;
155
	    $value = $input->param('barcode');
155
	    $value = $input->param('barcode');
156
	}
156
	}
157
        my $attributes_no_value = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="$subfield_data{maxlength}" );
157
        my $attributes_no_value = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="$subfield_data{maxlength}" );
158
        my $attributes_no_value_textarea = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" rows="5" cols="64" );
158
        my $attributes_no_value_textarea = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" rows="5" cols="64" );
159
        my $attributes          = qq($attributes_no_value value="$value" );
159
        my $attributes          = qq($attributes_no_value value="$value" );
160
        
160
        
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-4 / +8 lines)
Lines 50-56 Link Here
50
           <div class="yui-b">
50
           <div class="yui-b">
51
             [% IF ( batch_details ) %]
51
             [% IF ( batch_details ) %]
52
                  <h1>Add orders from [% comments %]
52
                  <h1>Add orders from [% comments %]
53
                    ([% file_name %] staged on [% upload_timestamp %])
53
                    ([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %])
54
                  </h1>
54
                  </h1>
55
               <div>
55
               <div>
56
                   <form action="[% scriptname %]" method="post" name="import_biblios">
56
                   <form action="[% scriptname %]" method="post" name="import_biblios">
Lines 121-127 Link Here
121
           </div>
121
           </div>
122
        [% IF ( import_batch_id ) %]
122
        [% IF ( import_batch_id ) %]
123
            <div class="yui-b">
123
            <div class="yui-b">
124
            <h2>Import All</h2>
124
            <h2>Import all</h2>
125
            <p>Import all the lines in the basket with the following parameters:</p>
125
            <p>Import all the lines in the basket with the following parameters:</p>
126
            <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
126
            <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
127
                    <input type="hidden" name="op" value="import_records"/>
127
                    <input type="hidden" name="op" value="import_records"/>
Lines 146-159 Link Here
146
                    <div id="itemblock">
146
                    <div id="itemblock">
147
                        <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
147
                        <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
148
                            <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
148
                            <div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
149
149
                                [% IF (iteminformatio.mandatory) %]
150
                                <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
150
                                    <label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
151
                                [% ELSE %]
152
                                    <label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
153
                                [% END %]
151
                                [% iteminformatio.marc_value %]
154
                                [% iteminformatio.marc_value %]
152
                                <input type="hidden" name="itemid" value="1" />
155
                                <input type="hidden" name="itemid" value="1" />
153
                                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
156
                                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
154
                                <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
157
                                <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
155
                                <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
158
                                <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
156
                                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
159
                                <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
160
                                [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
157
                            </div></li>
161
                            </div></li>
158
                        [% END %]
162
                        [% END %]
159
                        </ol>
163
                        </ol>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-5 / +12 lines)
Lines 236-243 $(document).ready(function() { Link Here
236
        <div id="item[% item.serialid %][% item.countitems %]" class="items">
236
        <div id="item[% item.serialid %][% item.countitems %]" class="items">
237
        <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
237
        <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
238
               <div class="subfield_line" style="[% iteminformatio.hidden %]" id="subfield[% item.serialid %][% item.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
238
               <div class="subfield_line" style="[% iteminformatio.hidden %]" id="subfield[% item.serialid %][% item.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
239
                              
239
                [% IF (iteminformatio.mandatory) %]
240
                <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
240
                    <label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
241
                [% ELSE %]
242
                    <label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
243
                [% END %]
241
                [% iteminformatio.marc_value %]
244
                [% iteminformatio.marc_value %]
242
                <input type="hidden" name="itemid" value="[% item.itemid %]" />
245
                <input type="hidden" name="itemid" value="[% item.itemid %]" />
243
                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
246
                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
Lines 249-255 $(document).ready(function() { Link Here
249
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
252
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
250
                    </a>
253
                    </a>
251
                [% END %]
254
                [% END %]
252
        
255
                [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
253
            </div></li>
256
            </div></li>
254
        [% END %]</ol></div><!-- /iteminformation -->
257
        [% END %]</ol></div><!-- /iteminformation -->
255
        
258
        
Lines 344-351 $(document).ready(function() { Link Here
344
        <div id="item[% newserialloo.serialid %][% newserialloo.countitems %]" class="items">
347
        <div id="item[% newserialloo.serialid %][% newserialloo.countitems %]" class="items">
345
        <ol>[% FOREACH iteminformatio IN newserialloo.iteminformation %]<li>
348
        <ol>[% FOREACH iteminformatio IN newserialloo.iteminformation %]<li>
346
               <div class="subfield_line" style="[% iteminformatio.hidden %]" id="subfield[% newserialloo.serialid %][% newserialloo.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
349
               <div class="subfield_line" style="[% iteminformatio.hidden %]" id="subfield[% newserialloo.serialid %][% newserialloo.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
347
   
350
                [% IF (iteminformatio.mandatory) %]
348
                <label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
351
                    <label class="required">[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
352
                [% ELSE %]
353
                    <label>[% iteminformatio.subfield %] - [% iteminformatio.marc_lib %]</label>
354
                [% END %]
349
                [% iteminformatio.marc_value %]
355
                [% iteminformatio.marc_value %]
350
                <input type="hidden" name="itemid" value="[% newserialloo.itemid %]" />
356
                <input type="hidden" name="itemid" value="[% newserialloo.itemid %]" />
351
                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
357
                <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield %]" />
Lines 357-362 $(document).ready(function() { Link Here
357
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
363
                        <img src="[% interface %]/[% theme %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
358
                    </a>
364
                    </a>
359
                [% END %]
365
                [% END %]
366
                [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
360
        </div>
367
        </div>
361
       </li>[% END %]</ol>
368
       </li>[% END %]</ol>
362
        
369
        
(-)a/tools/batchMod.pl (-2 / +1 lines)
Lines 331-337 foreach my $tag (sort keys %{$tagslib}) { Link Here
331
	$subfield_data{visibility} = "display:none;" if (($tagslib->{$tag}->{$subfield}->{hidden} > 4) || ($tagslib->{$tag}->{$subfield}->{hidden} < -4));
331
	$subfield_data{visibility} = "display:none;" if (($tagslib->{$tag}->{$subfield}->{hidden} > 4) || ($tagslib->{$tag}->{$subfield}->{hidden} < -4));
332
    # testing branch value if IndependentBranches.
332
    # testing branch value if IndependentBranches.
333
333
334
	my $attributes_no_value = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="67" maxlength="255" );
334
    my $attributes_no_value = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" size="50" maxlength="255" );
335
	my $attributes          = qq($attributes_no_value value="$value" );
335
	my $attributes          = qq($attributes_no_value value="$value" );
336
336
337
	if ( $tagslib->{$tag}->{$subfield}->{authorised_value} ) {
337
	if ( $tagslib->{$tag}->{$subfield}->{authorised_value} ) {
338
- 

Return to bug 10661