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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials/subscription_daily_choice.inc (-4 / +8 lines)
Lines 1-7 Link Here
1
<p><em>
2
    If there is a day (or more) in the week where issues are never
3
    published, you can check corresponding boxes below.
4
</em></p>
5
[% daily_choice = [ {name => 'monday', value => 1}, {name => 'tuesday', value => 2}, {name => 'wednesday', value => 3}, {name => 'thursday', value => 4}, {name => 'friday', value => 5}, {name => 'saturday', value => 6}, {name => 'sunday', value => 7} ] %]
1
[% daily_choice = [ {name => 'monday', value => 1}, {name => 'tuesday', value => 2}, {name => 'wednesday', value => 3}, {name => 'thursday', value => 4}, {name => 'friday', value => 5}, {name => 'saturday', value => 6}, {name => 'sunday', value => 7} ] %]
6
2
7
[% BLOCK days %]
3
[% BLOCK days %]
Lines 31-33 Link Here
31
    [% END %]
27
    [% END %]
32
    <label for="[% day.name | html %]" class="inline">[% PROCESS days d=day.name %]</label>
28
    <label for="[% day.name | html %]" class="inline">[% PROCESS days d=day.name %]</label>
33
[% END %]
29
[% END %]
30
<p>
31
    <em>Check days in the above list in order to keep them unpublished
32
    troughout upcoming renewals (permanent irregularities).</em>
33
</p>
34
<p>
35
    <em>Or check days in the "Not published" column below to set
36
    unpublished days for this subscription only.</em>
37
</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials/subscription_monthly_choice.inc (-4 / +8 lines)
Lines 1-7 Link Here
1
<p><em>
2
    If there is a month (or more) in the year where issues are never
3
    published, you can check corresponding boxes below.
4
</em></p>
5
[% monthly_choice = [ {name => 'january', value => 1}, {name => 'february', value => 2}, {name => 'march', value => 3}, {name => 'april', value => 4}, {name => 'may', value => 5}, {name => 'june', value => 6}, {name => 'july', value => 7}, {name => 'august', value => 8}, {name => 'september', value => 9}, {name => 'october', value => 10}, {name => 'november', value => 11}, {name => 'december', value =>12} ] %]
1
[% monthly_choice = [ {name => 'january', value => 1}, {name => 'february', value => 2}, {name => 'march', value => 3}, {name => 'april', value => 4}, {name => 'may', value => 5}, {name => 'june', value => 6}, {name => 'july', value => 7}, {name => 'august', value => 8}, {name => 'september', value => 9}, {name => 'october', value => 10}, {name => 'november', value => 11}, {name => 'december', value =>12} ] %]
6
2
7
[% BLOCK months %]
3
[% BLOCK months %]
Lines 36-38 Link Here
36
    [% END %]
32
    [% END %]
37
    <label for="[% month.name | html %]" class="inline">[% PROCESS months m=month.name %]</label>
33
    <label for="[% month.name | html %]" class="inline">[% PROCESS months m=month.name %]</label>
38
[% END %]
34
[% END %]
35
<p>
36
    <em>Check months in the above list in order to keep them unpublished
37
    troughout upcoming renewals (permanent irregularities).</em>
38
</p>
39
<p>
40
    <em>Or check months in the "Not published" column below to set
41
    unpublished months for this subscription only.</em>
42
</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials/subscription_weekly_choice.inc (-3 / +7 lines)
Lines 8-14 Link Here
8
            <ul class="dropdown-menu week-columns">
8
            <ul class="dropdown-menu week-columns">
9
                [% FOREACH p IN predictions_loop %]
9
                [% FOREACH p IN predictions_loop %]
10
                    <li>
10
                    <li>
11
                        <a href="#" class="small">
11
                        <a class="small" href="JavaScript:Void(0);">
12
                            [% IF permanent_irreg.grep( p.dow ).0 == p.dow %]
12
                            [% IF permanent_irreg.grep( p.dow ).0 == p.dow %]
13
                                <input type="checkbox" name="permanent_irregularity" value="[% p.dow | html %]" data-dow="[% p.dow | html %]" class="skip" checked="checked"/>
13
                                <input type="checkbox" name="permanent_irregularity" value="[% p.dow | html %]" data-dow="[% p.dow | html %]" class="skip" checked="checked"/>
14
                            [% ELSE %]
14
                            [% ELSE %]
Lines 23-28 Link Here
23
    </div>
23
    </div>
24
</div>
24
</div>
25
<p>
25
<p>
26
    <em>Choice the week(s) in the year where issues are never
26
    <em>Check weeks in the above list in order to keep them unpublished
27
    published.</em>
27
    troughout upcoming renewals (permanent irregularities).</em>
28
</p>
29
<p>
30
    <em>Or check weeks in the "Not published" column below to set
31
    unpublished weeks for this subscription only.</em>
28
</p>
32
</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (-1 lines)
Lines 4-10 Link Here
4
  <p><em>End date is not consistent with subscription length.</em></p>
4
  <p><em>End date is not consistent with subscription length.</em></p>
5
[% END %]
5
[% END %]
6
[% IF (ask_for_irregularities) %]
6
[% IF (ask_for_irregularities) %]
7
    <p><em>Please check issues that are NOT published (irregularities)</em></p>
8
    [% IF (show_irregularity_options) %]
7
    [% IF (show_irregularity_options) %]
9
        <script>
8
        <script>
10
        //<![CDATA[
9
        //<![CDATA[
(-)a/koha-tmpl/intranet-tmpl/prog/js/showpredictionpattern.js (-1 / +1 lines)
Lines 29-35 function Check_permanent_irregularities() { Link Here
29
    }
29
    }
30
}
30
}
31
$(document).ready(function(){
31
$(document).ready(function(){
32
    $("#displayexample").on("change",".skip",function(){
32
    $("#displayexample").on("change",".skip",function(e){
33
        Check_boxes( $(this).data("dow"));
33
        Check_boxes( $(this).data("dow"));
34
    });
34
    });
35
});
35
});
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription.js (-2 lines)
Lines 65-71 function testPredictionPattern() { Link Here
65
        url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
65
        url:"/cgi-bin/koha/serials/showpredictionpattern.pl",
66
        data: ajaxData,
66
        data: ajaxData,
67
        success: function(data) {
67
        success: function(data) {
68
console.log(data);
69
            showPredictionPatternTest( data );
68
            showPredictionPatternTest( data );
70
            patternneedtobetested = 0;
69
            patternneedtobetested = 0;
71
        }
70
        }
72
- 

Return to bug 17656