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

(-)a/admin/marc_subfields_structure.pl (+1 lines)
Lines 276-281 if ( $op eq 'add_form' ) { Link Here
276
        my %row_data;    # get a fresh hash for the row data
276
        my %row_data;    # get a fresh hash for the row data
277
        $row_data{'new_subfield'} = 1;
277
        $row_data{'new_subfield'} = 1;
278
        $row_data{'subfieldcode'} = '';
278
        $row_data{'subfieldcode'} = '';
279
        $row_data{'maxlength'} = 9999;
279
280
280
        $row_data{tab} = CGI::scrolling_list(
281
        $row_data{tab} = CGI::scrolling_list(
281
            -name   => 'tab',
282
            -name   => 'tab',
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 7875-7880 $DBversion = "3.15.00.010"; Link Here
7875
if(CheckVersion($DBversion)) {
7875
if(CheckVersion($DBversion)) {
7876
    $dbh->do("ALTER TABLE deleteditems DROP COLUMN marc");
7876
    $dbh->do("ALTER TABLE deleteditems DROP COLUMN marc");
7877
    print "Upgrade to $DBversion done (Bug 6331: remove obsolete column in deleteditems.marc)\n";
7877
    print "Upgrade to $DBversion done (Bug 6331: remove obsolete column in deleteditems.marc)\n";
7878
    SetVersion ($DBversion);
7879
}
7880
7881
7882
$DBversion = "3.15.00.XXX";
7883
if(CheckVersion($DBversion)) {
7884
    $dbh->do("UPDATE marc_subfield_structure SET maxlength=9999 WHERE maxlength IS NULL OR maxlength=0;");
7885
    print "Upgrade to $DBversion done (Bug 8018: new subfields have a default max length of zero)\n";
7878
    SetVersion($DBversion);
7886
    SetVersion($DBversion);
7879
}
7887
}
7880
7888
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/marc_subfields_structure.tt (-2 / +1 lines)
Lines 69-75 To edit the subfields associated with the tag, click 'Subfields' to the right of Link Here
69
<ul>
69
<ul>
70
	<li>Max length
70
	<li>Max length
71
<ul>
71
<ul>
72
	<li>Define the max characters to fill.</li>
72
    <li>Set the max characters allowed for the subfield. If empty or 0, it defaults to 9999.</li>
73
</ul>
73
</ul>
74
</li>
74
</li>
75
</ul>
75
</ul>
76
- 

Return to bug 8018