Jump to content

Module:Format ISBN and Module:Format ISBN/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
No edit summary
 
No edit summary
 
Line 137: Line 137:
end
end


if 13 == #isbn_str and flags.out10 and isbn_str:match ('^978') then -- if isbn13 but we want an isbn10 output; only for GS1 prefix of 978
if 13 == #isbn_str and flags.out10 then -- if isbn13 but we want an isbn10 output
flags.isbn10_check_digit = (convert_to_isbn10 (isbn_str)):sub (-1); -- calculate and extract the isbn10 check digit for later
flags.isbn10_check_digit = (convert_to_isbn10 (isbn_str)):sub (-1); -- calculate and extract the isbn10 check digit for later
end
end