[Koha-patches] Proposed patch for bug number 6321 relative to Koha 3.2.X

Stefano Bargioni bargioni at pusc.it
Fri May 13 11:59:31 CEST 2011


In C4/Serials.pm

line 2136 must be changed into:
   my @per_list = (0, 7, 7, 14, 21, 31, 62, 93, 93, 190, 365, 730, 0, 124, 0, 0);

add at line 2299:
        if ( $subscription->{periodicity} == 13 ) {
            for ( my $i = 0 ; $i < @irreg ; $i++ ) {
                if ( $irreg[$i] == ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 ) ) {
                    ( $year, $month, $day ) = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 );
                    $tmpmonth = ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 );
                }
            }
            @resultdate = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 );
        }

In en/modules/serials/subscription-add.tmpl add at line 1236:

                <!-- TMPL_IF name="periodicity13" -->
                    <option value="13" selected="selected">1/4 months (3/year)</option>
                <!-- TMPL_ELSE -->
                    <option value="13">1/4 months (3/year)</option>
                <!-- /TMPL_IF -->

Add a translation for "1/4 month (3/year)" in po files for two lines of subscription-add.tmpl.


More information about the Koha-patches mailing list