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 (+5 lines)
Lines 119-124 $(document).ready(function() { Link Here
119
            <main>
119
            <main>
120
                [% INCLUDE 'messages.inc' %]
120
                [% INCLUDE 'messages.inc' %]
121
121
122
                <div id="toolbar" class="btn-toolbar">
123
                    <div class="btn-group"><input type="button" value="Generate next" href="#generate_next" class="btn btn-default btn-sm" data-bs-toggle="modal" /></div>
124
                    [% INCLUDE 'modals/generate_next.inc' referrer="serials-edit" %]
125
                </div>
126
122
<h1>Serial edition <em>[% bibliotitle | html %]</em>
127
<h1>Serial edition <em>[% bibliotitle | html %]</em>
123
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
128
    [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
124
    [% IF ( callnumber ) %] callnumber: [% callnumber | html %][% END %]</h1>
129
    [% IF ( callnumber ) %] callnumber: [% callnumber | html %][% END %]</h1>
(-)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