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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/generate_next.inc (+1 lines)
Lines 11-16 Link Here
11
                        <legend>Do you really want to generate next serial?</legend>
11
                        <legend>Do you really want to generate next serial?</legend>
12
                        <input type="hidden" name="op" value="cud-gennext" />
12
                        <input type="hidden" name="op" value="cud-gennext" />
13
                        <input type="hidden" name="subscriptionid" value="[% subscriptionidlist || subscriptionid | html %]" />
13
                        <input type="hidden" name="subscriptionid" value="[% subscriptionidlist || subscriptionid | html %]" />
14
                        <input type="hidden" name="referrer" value="[% referrer %]" />
14
                    </fieldset>
15
                    </fieldset>
15
                </div>
16
                </div>
16
17
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (+3 lines)
Lines 125-130 $(document).ready(function() { Link Here
125
125
126
    [% INCLUDE 'modals/serials_multi_receiving.inc' %]
126
    [% INCLUDE 'modals/serials_multi_receiving.inc' %]
127
127
128
<div class="btn-group"><input type="button" value="Generate next" href="#generate_next" class="btn btn-default btn-sm" data-bs-toggle="modal" /></div>
129
[% INCLUDE 'modals/generate_next.inc' referrer="serials-edit" %]
130
128
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html | html_line_break %]</p>[% END %]
131
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html | html_line_break %]</p>[% END %]
129
<form method="post" name="f" class="noEnterSubmit" action="serials-edit.pl" id="serials_edit">
132
<form method="post" name="f" class="noEnterSubmit" action="serials-edit.pl" id="serials_edit">
130
    [% INCLUDE 'csrf-token.inc' %]
133
    [% INCLUDE 'csrf-token.inc' %]
(-)a/serials/serials-collection.pl (-2 / +7 lines)
Lines 48-53 my $biblionumber = $query->param('biblionumber'); Link Here
48
my @subscriptionid = $query->multi_param('subscriptionid');
48
my @subscriptionid = $query->multi_param('subscriptionid');
49
my $skip_issues = $query->param('skip_issues') || 0;
49
my $skip_issues = $query->param('skip_issues') || 0;
50
my $count_forward = $skip_issues + 1;
50
my $count_forward = $skip_issues + 1;
51
my $referrer = $query->param('referrer');
51
52
52
@subscriptionid= uniq @subscriptionid;
53
@subscriptionid= uniq @subscriptionid;
53
@subscriptionid= sort @subscriptionid;
54
@subscriptionid= sort @subscriptionid;
Lines 104-110 if($op eq 'cud-gennext' && @subscriptionid){ Link Here
104
        last if $nbissues == 1;
105
        last if $nbissues == 1;
105
        last if HasSubscriptionExpired($subscriptionid) > 0;
106
        last if HasSubscriptionExpired($subscriptionid) > 0;
106
    }
107
    }
107
    print $query->redirect('/cgi-bin/koha/serials/serials-collection.pl?subscriptionid='.$subscriptionid);
108
    if ($referrer eq "serials-edit") {
109
        print $query->redirect('/cgi-bin/koha/serials/serials-edit.pl?subscriptionid='.$subscriptionid.'&serstatus=1,3');
110
    }
111
    else {
112
        print $query->redirect('/cgi-bin/koha/serials/serials-collection.pl?subscriptionid='.$subscriptionid);
113
    }
108
    exit;
114
    exit;
109
}
115
}
110
116
111
- 

Return to bug 38009