View | Details | Raw Unified | Return to bug 41060
Collapse All | Expand All

(-)a/cataloguing/value_builder/validate_issn.pl (-2 / +7 lines)
Lines 60-66 my $launcher = sub { Link Here
60
            flagsrequired => { editcatalogue => '*' },
60
            flagsrequired => { editcatalogue => '*' },
61
        }
61
        }
62
    );
62
    );
63
    my $is_valid = is_valid_checksum($issn);
63
    my $is_valid = 0;
64
    if ( $issn =~ /^\d{4}-\d{3}[\dXx]$/ ) {
65
        $is_valid = is_valid_checksum($issn);
66
    }
67
    if ( $issn eq '' ) {
68
        $is_valid = 1;
69
    }
64
    $template->param( return => $is_valid );
70
    $template->param( return => $is_valid );
65
    output_html_with_http_headers $cgi, $cookie, $template->output;
71
    output_html_with_http_headers $cgi, $cookie, $template->output;
66
};
72
};
67
- 

Return to bug 41060