Bug 20972: If ISBN has 10 numbers only the first 9 numbers are used

If ISBN has 10 numbers only the first 9 numbers are being added to the Edifact-message (PIA+5+3540556753:IB')

This is caused by wrong positioning of capturing parentheses in a regular expression.

Sponsored-by: Gothenburg University Library
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
xljoha 2018-06-21 09:58:55 +02:00 committed by Martin Renvoize
parent 3b9a81e394
commit b9bd93e920
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ sub additional_product_id {
$product_id = $1;
$product_code = 'EN';
}
elsif ( $isbn_field =~ m/(\d{9})[Xx\d]/ ) {
elsif ( $isbn_field =~ m/(\d{9}[Xx\d])/ ) {
$product_id = $1;
$product_code = 'IB';
}