Bugzilla – Attachment 159617 Details for
Bug 32392
Ability to skip forward serial issues when receiving double (or more) issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32392: Fix QA issues
Bug-32392-Fix-QA-issues.patch (text/plain), 5.06 KB, created by
Kevin Carnes
on 2023-12-06 13:25:07 UTC
(
hide
)
Description:
Bug 32392: Fix QA issues
Filename:
MIME Type:
Creator:
Kevin Carnes
Created:
2023-12-06 13:25:07 UTC
Size:
5.06 KB
patch
obsolete
>From 300444347a966f2425384d2078e173c83152d9a1 Mon Sep 17 00:00:00 2001 >From: Kevin Carnes <kevin.carnes@ub.lu.se> >Date: Wed, 6 Dec 2023 14:22:22 +0100 >Subject: [PATCH] Bug 32392: Fix QA issues > >--- > C4/Serials.pm | 4 ++-- > .../includes/modals/serials_skip_issues.inc | 4 ++-- > .../prog/en/modules/serials/serials-edit.tt | 22 +------------------ > serials/serials-collection.pl | 2 +- > 4 files changed, 6 insertions(+), 26 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index b8dcbb8f15..0d50a6d9d4 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -834,7 +834,7 @@ sub GetNextSeq { > > my ( $newlastvalue1, $newlastvalue2, $newlastvalue3, > $newinnerloop1, $newinnerloop2, $newinnerloop3 ); >- my $count = $count_forward ? $count_forward : 1; >+ my $count = $count_forward || 1; > > if ($subscription->{'skip_serialseq'}) { > my @irreg = split /;/, $subscription->{'irregularity'}; >@@ -1072,7 +1072,7 @@ sub ModSerialStatus { > > return unless ($serialid); > >- my $count = $count_forward ? $count_forward : 1; >+ my $count = $count_forward || 1; > > #It is a usual serial > # 1st, get previous status : >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/serials_skip_issues.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/serials_skip_issues.inc >index 7a6860a781..b07685dae0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/serials_skip_issues.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/serials_skip_issues.inc >@@ -8,12 +8,12 @@ > <ol> > <li> > <label for="nbissues" class="required">How many issues do you want to skip?</label> >- <input type="text" pattern="^\d+$" size="10" id="skip_issues" name="skip_issues" required="required" /> >+ <input type="text" pattern="^\d$" size="10" id="skip_issues" name="skip_issues" required="required" /> > </li> > </ol> > <input type="hidden" name="op" value="gennext" /> > >- [%# subscriptionidlist is used from serials-collection, subscriptionid is used from serils-edit %] >+ [%# subscriptionidlist is used from serials-collection, subscriptionid is used from serials-edit %] > <input type="hidden" name="subscriptionid" value="[% subscriptionidlist || subscriptionid | html %]" /> > </fieldset> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >index e5d8bd3868..6a73e879fd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >@@ -12,26 +12,6 @@ > $('#multi_receiving').on('show', function () { > $(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML); > }); >- >- $("form").on("submit", function(){ >- let issues = $('input[name="skip_issues"]').val() ? $('input[name="skip_issues"]').val() : ''; >- let too_many = _("Choose a value between 0-10 in issues to skip!"); >- let no_number = _("Not a number in skip issues!"); >- >- if ( issues == '' || ( issues.match(/^\d+$/) && issues <= 10 ) ) { >- return true; >- } >- else if ( issues.match(/^\d+$/) && issues > 10 ) { >- alert(too_many); >- return false; >- } else if ( !issues.match(/^\d+$/) ) { >- alert(no_number); >- return false; >- } >- else { >- return false; >- } >- }); > }); > > function popup(subscriptionid) { >@@ -354,7 +334,7 @@ $(document).ready(function() { > [% END %] > [% END %] > <tr> >- <td colspan="6">Skip issues:<input type="checkbox" id="toggle_skip_issues"> <input id="skip_issues" type="text" pattern="^\d+$" name="skip_issues" class="collapse" value="1" disabled required="required"/></td> >+ <td colspan="6">Skip issues:<input type="checkbox" id="toggle_skip_issues"> <input id="skip_issues" type="text" pattern="^\d$" name="skip_issues" class="collapse" value="1" disabled required="required"/></td> > </tr> > [% FOREACH newserialloo IN newserialloop %] > [% UNLESS ( newserialloo.subscriptionexpired ) %] >diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl >index 34061e3ab9..f3cdc174e2 100755 >--- a/serials/serials-collection.pl >+++ b/serials/serials-collection.pl >@@ -47,7 +47,7 @@ my ($template, $loggedinuser, $cookie) > my $biblionumber = $query->param('biblionumber'); > my @subscriptionid = $query->multi_param('subscriptionid'); > my $skip_issues = $query->param('skip_issues') || 0; >-my $count_forward = int $skip_issues + 1; >+my $count_forward = $skip_issues + 1; > > @subscriptionid= uniq @subscriptionid; > @subscriptionid= sort @subscriptionid; >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32392
:
148948
|
148949
|
159617
|
159618
|
165083
|
165084
|
165085
|
165729
|
165730
|
165731