[Koha-bugs] [Bug 32392] Ability to skip forward serial issues when receiving double (or more) issue
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 4 15:34:21 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32392
--- Comment #7 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Do not understand why we add this to serial-EDIT here ?
+ $("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;
+ }
+ });
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list