Bug 32392: Fix QA issues
Signed-off-by: Stina <stina.hallin@ub.lu.se> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
cb9854dd1e
commit
d1b81e2681
|
|
@ -835,7 +835,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'};
|
||||
|
|
@ -1088,7 +1088,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 :
|
||||
|
|
|
|||
|
|
@ -9,12 +9,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="cud-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>
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
@ -356,7 +336,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 ) %]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue