Module:Check isxn: Difference between revisions

Content deleted Content added
testing
Undid revision 674386007 by Frietjes (talk)
Line 66:
local temp = 0;
if isbn_str:match( "^97[89]%d*$" ) == nil then return false; end -- isbn13 begins with 978 or 979; ismn begins with 979
return is_valid_isxn_13 (isbn_str) and '' or 'test'error_string;
end
end
Line 123:
 
function p.check_isbn(frame)
return check_issncheck_isbn(frame.args[1] or frame:getParent().args[1], frame.args['error'] or frame:getParent().args['error'] or 'error')
end
 
function p.check_ismn(frame)
return check_issncheck_ismn(frame.args[1] or frame:getParent().args[1], frame.args['error'] or frame:getParent().args['error'] or 'error')
end