mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Updates to contrib/isn ISBN tables.
Jan Otto, reviewed by Peter Geoghegan
This commit is contained in:
@ -573,7 +573,7 @@ ean2string(ean13 ean, bool errorOK, char *result, bool shortType)
|
||||
|
||||
/* find out what type of hyphenation is needed: */
|
||||
if (!strncmp("978-", result, search))
|
||||
{ /* ISBN */
|
||||
{ /* ISBN -13 978-range */
|
||||
/* The string should be in this form: 978-??000000000-0" */
|
||||
type = ISBN;
|
||||
TABLE = ISBN_range;
|
||||
@ -593,6 +593,13 @@ ean2string(ean13 ean, bool errorOK, char *result, bool shortType)
|
||||
TABLE = ISMN_range;
|
||||
TABLE_index = ISMN_index;
|
||||
}
|
||||
else if (!strncmp("979-", result, search))
|
||||
{ /* ISBN-13 979-range */
|
||||
/* The string should be in this form: 979-??000000000-0" */
|
||||
type = ISBN;
|
||||
TABLE = ISBN_range_new;
|
||||
TABLE_index = ISBN_index_new;
|
||||
}
|
||||
else if (*result == '0')
|
||||
{ /* UPC */
|
||||
/* The string should be in this form: 000-00000000000-0" */
|
||||
|
Reference in New Issue
Block a user