1
0
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:
Robert Haas
2010-10-19 22:24:33 -04:00
parent 691a67b922
commit 6d1af7b218
2 changed files with 325 additions and 59 deletions

View File

@ -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" */