Bug 38009: Add a generate next button in serials receive page
Adds a generate next button to the serials receive page (serials-edit.pl) that works similar to the button on the serials collection page.
To test:
1. Go to Staff Client > Serials
2. Find an existing subscription or create a new one
3. Go to the Serials collection page for your serial e.g. /cgi-bin/koha/serials/serials-collection.pl?subscriptionid=1
4. Click on the "Generate next" button and notice that the table adds
another row
5. Click on the "Receive" button at the top of the page
6. Notice that the page also shows the issues like the rows in the
previous page
7. Apply patch
8. Repeat steps 1-5
9. Notice that the page also has a "Generate next" button at the top
10. Check that the button generates a new issue row on the page
Sponsored-by: Pymble Ladies' College
Signed-off-by: esther <esther@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7b1a348ac9)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
8362e6b7c5
commit
acab81737a
|
|
@ -11,6 +11,7 @@
|
|||
<legend>Do you really want to generate next serial?</legend>
|
||||
<input type="hidden" name="op" value="cud-gennext" />
|
||||
<input type="hidden" name="subscriptionid" value="[% subscriptionidlist || subscriptionid | html %]" />
|
||||
<input type="hidden" name="referrer" value="[% referrer | html %]" />
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -132,6 +132,9 @@
|
|||
<main>
|
||||
[% INCLUDE 'messages.inc' %]
|
||||
|
||||
<div class="btn-group"><input type="button" value="Generate next" href="#generate_next" class="btn btn-default btn-sm" data-bs-toggle="modal" /></div>
|
||||
[% INCLUDE 'modals/generate_next.inc' referrer="serials-edit" %]
|
||||
|
||||
<h1
|
||||
>Serial edition <em>[% bibliotitle | html %]</em> [% IF location %]([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
|
||||
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ my $biblionumber = $query->param('biblionumber');
|
|||
my @subscriptionid = $query->multi_param('subscriptionid');
|
||||
my $skip_issues = $query->param('skip_issues') || 0;
|
||||
my $count_forward = $skip_issues + 1;
|
||||
my $referrer = $query->param('referrer');
|
||||
|
||||
@subscriptionid = uniq @subscriptionid;
|
||||
@subscriptionid = sort @subscriptionid;
|
||||
|
|
@ -117,7 +118,12 @@ if ( $op eq 'cud-gennext' && @subscriptionid ) {
|
|||
last if $nbissues == 1;
|
||||
last if HasSubscriptionExpired($subscriptionid) > 0;
|
||||
}
|
||||
print $query->redirect( '/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=' . $subscriptionid );
|
||||
if ( $referrer eq "serials-edit" ) {
|
||||
print $query->redirect(
|
||||
'/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=' . $subscriptionid . '&serstatus=1,3' );
|
||||
} else {
|
||||
print $query->redirect( '/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=' . $subscriptionid );
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue